Пример #1
0
        /// <summary>
        /// Writes program data to the memory
        /// </summary>
        /// <param name="cbData">The program to write</param>
        public void WriteProgram(ProgramBlock cbData)
        {
            // Load all the parts of the program to the memory
            for (ProgramBlock.BlockContainer cur = cbData.GetFirst(); cur != null; cur = cbData.GetNext())
            {
                Write(cur.iAddress, cur.theBlock, false);
            }

            // +0x100 just to be sure
            HeapManager = new VAX11HeapManager((uint)cbData.Size + 0x100, Settings.Simulator.iSP - Settings.Simulator.iStackSize);
        }