Esempio n. 1
0
 public override void InitializeMemoryMap(PPU ppu)
 {
     ppu.MapReadHandler(0x0000, 0x1FFF, addr => _chrROM[_chrBankOffsets[addr / 0x1000] + addr % 0x1000]);
     ppu.MapWriteHandler(0x0000, 0x1FFF, (addr, val) => _chrROM[_chrBankOffsets[addr / 0x1000] + addr % 0x1000] = val);
 }
Esempio n. 2
0
 public virtual void InitializeMemoryMap(PPU ppu)
 {
     ppu.MapReadHandler(0x0000, 0x1FFF, addr => _chrROM[addr]);
     ppu.MapWriteHandler(0x0000, 0x1FFF, (addr, val) => _chrROM[addr] = val);
 }