Skip to content

Commit

Permalink
Try to fix again the display wait quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscodelahoz committed Apr 2, 2024
1 parent b6b658b commit 59dd503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/emulator/cpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ export class CPU {
}

for (let i = 0; (i < this.cyclesPerFrame) && (!this.waitingForKeyPressed) && (!this.halted) && (!this.isPaused); i += 1) {
if (this.quirksConfigurations[Chip8Quirks.DISPLAY_WAIT_QUIRK] && this.memory[this.PC] === 0xD0) {
if (this.quirksConfigurations[Chip8Quirks.DISPLAY_WAIT_QUIRK] && ((this.memory[this.PC] & 0xF0 ) === 0xD0)) {
i = this.cyclesPerFrame;
}

Expand Down

0 comments on commit 59dd503

Please sign in to comment.