fixed ppu postfetching

This commit is contained in:
Lauchmelder 2022-03-05 17:14:07 +01:00
parent a7808815a1
commit ca3eac8393
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
17 changed files with 343 additions and 31 deletions

View file

@ -63,6 +63,8 @@ void PatternTableViewer::DecodePatternTable(int index, std::vector<Color>& buffe
{
// uint8_t stride = 128;
Word baseAddr = 0x1000 * index;
if (baseAddr >= mapper->CHR_ROM.size())
return;
for (int y = 0; y < 16; y++)
{