Cleanup VRAM access glitch

This commit is contained in:
TiKevin83 2020-05-24 16:15:55 -04:00 committed by adelikat
parent cab89ef182
commit deb6c369c4
2 changed files with 3 additions and 2 deletions

View File

@ -655,10 +655,11 @@ unsigned Memory::nontrivial_read(unsigned const p, unsigned long const cc) {
if (!lcd_.vramReadable(cc))
return 0xFF;
if (lcd_.vramExactlyReadable(cc))
if (p < 0x9000) {
if (p < 0x9000) {
if (lcd_.vramExactlyReadable(cc)) {
return 0x00;
}
}
return cart_.vrambankptr()[p];
}

Binary file not shown.