read calls now always return a known value

This commit is contained in:
Lauchmelder 2022-02-28 16:33:39 +01:00
parent 9f4cf7689b
commit 24101f97ec
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
2 changed files with 6 additions and 0 deletions

View file

@ -93,6 +93,8 @@ Byte Bus::ReadCPU(Word addr)
{
return cartridge.ReadCPU(addr);
}
return 0x00;
}
Byte Bus::ReadPPU(Word addr)

View file

@ -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)