Esempio n. 1
0
 public void write(uint24 addr, byte data)
 {
     Page p = page[(uint)addr >> 8];
     p.access.write(p.offset + (uint)addr, data);
 }
Esempio n. 2
0
 public byte read(uint24 addr)
 {
     #if CHEAT_SYSTEM
     if (Cheat.cheat.active() && Cheat.cheat.exists((uint)addr))
     {
         byte r;
         if (Cheat.cheat.read((uint)addr, out r))
         {
             return r;
         }
     }
     #endif
     Page p = page[(uint)addr >> 8];
     return p.access.read(p.offset + (uint)addr);
 }