fixed unneeded ppu read access, causing the vram address to be incremented when it shouldnt be

This commit is contained in:
Lauchmelder 2021-10-30 19:36:32 +02:00
parent 35b67dac5f
commit 2fdae00ff8
6 changed files with 41 additions and 11 deletions

View file

@ -16,7 +16,7 @@ void logBusState(struct Bus* bus)
Word instructionBytes[3];
for (int i = 0; i < bus->cpu->currentOpcode->length; i++)
{
instructionBytes[i] = readBus(bus, oldPC + i);
instructionBytes[i] = readBus(bus, oldPC + i, 0);
sprintf(buffer + 3 * i, "%02X ", instructionBytes[i]);
}