The HALT bug also happens on CGBs, regardless of DMG mode.

This commit is contained in:
Lior Halphon 2016-09-20 22:59:25 +03:00
parent 97eb3fe209
commit 6f2b36cacb

View File

@ -1336,7 +1336,8 @@ void GB_cpu_run(GB_gameboy_t *gb)
bool halt_bug = false;
if (interrupt) {
halt_bug = gb->halted && !gb->is_cgb; /* Todo: Does this bug happen on a CGB? */
/* Despite what some online documentations say, the HALT bug also happens on a CGB, in both CGB and DMG modes. */
halt_bug = gb->halted;
gb->halted = false;
}