public Core(Flash programMemory, Ram ram) : this() { MemoryBus = new MemoryBus(); MemoryBus.AddMap(0, 32, new RegisterMemory(this)); MemoryBus.AddMap(0x60, ram.Size, ram); Stack = new Stack(MemoryBus, (ushort)(0x60 + ram.Size - 1)); ProgramMemory = programMemory; }
public Stack(MemoryBus memory, ushort topOfStack) { Memory = memory; TopOfStack = topOfStack; }