read calls now always return a known value
This commit is contained in:
parent
9f4cf7689b
commit
24101f97ec
|
@ -93,6 +93,8 @@ Byte Bus::ReadCPU(Word addr)
|
|||
{
|
||||
return cartridge.ReadCPU(addr);
|
||||
}
|
||||
|
||||
return 0x00;
|
||||
}
|
||||
|
||||
Byte Bus::ReadPPU(Word addr)
|
||||
|
|
|
@ -21,6 +21,8 @@ Byte Mapper000::ReadCPU(Word addr)
|
|||
{
|
||||
return PRG_ROM[addr & 0x03FFF];
|
||||
}
|
||||
|
||||
return 0x00;
|
||||
}
|
||||
|
||||
Byte Mapper000::ReadPPU(Word addr)
|
||||
|
@ -29,6 +31,8 @@ Byte Mapper000::ReadPPU(Word addr)
|
|||
{
|
||||
return CHR_ROM[addr];
|
||||
}
|
||||
|
||||
return 0x00;
|
||||
}
|
||||
|
||||
void Mapper000::WriteCPU(Word addr, Byte val)
|
||||
|
|
Loading…
Reference in a new issue