コード例 #1
0
 public StackPointer(IProcessorBase processor, IRegister register, uint stackMemoryStart, uint stackSize)
 {
     this.processor        = processor;
     this.register         = register;
     this.stackMemoryStart = stackMemoryStart;
     this.stackSize        = stackSize;
 }
コード例 #2
0
        public Computer(IProcessorBase processor, IMemory memory, IMemory rom = null)
        {
            Ports       = new Dictionary <ushort, PeripheralPortHandler>();
            peripherals = new LinkedList <Peripherals.IPeripheral>();

            this.rom               = rom;
            this.Processor         = processor;
            this.Processor.Context = this;

            this.physicalMemory = new RAMMemory(this, memory);

            this.Processor.Initialize();

            powerStatus = false;
        }
コード例 #3
0
 public ProgramCounter(IProcessorBase processor, Register <T> register)
 {
     this.processor = processor;
     this.register  = register;
 }