コード例 #1
0
ファイル: MemoryManager.cs プロジェクト: chazjn/Z80CPU
 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));
     }
 }
コード例 #2
0
 public MemoryUnit Get(byte address)
 {
     return(ram.Get(address));
 }