Exemple #1
0
 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;
 }
Exemple #2
0
 public Stack(MemoryBus memory, ushort topOfStack)
 {
     Memory     = memory;
     TopOfStack = topOfStack;
 }