public void write(uint24 addr, byte data) { Page p = page[(uint)addr >> 8]; p.access.write(p.offset + (uint)addr, data); }
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); }