[NES] setup 'scaffolding' for PPU view. actually only 1% as complicated as i thought it would be.

This commit is contained in:
zeromus 2011-03-02 03:08:33 +00:00
parent a296742d5f
commit 858824c548
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
public interface INESBoard
{
byte ReadPRG(int addr);
byte ReadPPU(int addr);
byte ReadPPU(int addr); byte PeekPPU(int addr);
byte ReadPRAM(int addr);
void WritePRG(int addr, byte value);
void WritePPU(int addr, byte value);
@ -136,6 +136,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
}
}
public virtual byte PeekPPU(int addr) { return ReadPPU(addr); }
public virtual byte ReadPPU(int addr)
{
if (addr < 0x2000)