Esempio n. 1
0
 public override byte Get(ushort index)
 {
     //We are setting the ROM to start from 0 and the RAM starts after the end of the RAM
     if (index > _rom.Size - 1)
     {
         return(_ram.Get((ushort)(_rom.Size + index)));
     }
     else
     {
         return(_rom.Get(index));
     }
 }
Esempio n. 2
0
 public MemoryUnit Get(byte address)
 {
     return(ram.Get(address));
 }