Warn about potential odd-mode triggers

This commit is contained in:
Lior Halphon 2020-12-12 20:40:35 +02:00
parent 555835549a
commit db483ce95f
1 changed files with 3 additions and 0 deletions

View File

@ -351,6 +351,9 @@ static void leave_stop_mode(GB_gameboy_t *gb)
static void stop(GB_gameboy_t *gb, uint8_t opcode)
{
if (gb->io_registers[GB_IO_KEY1] & 0x1) {
if (gb->cgb_double_speed && gb->io_registers[GB_IO_LCDC] & 0x80) {
GB_log(gb, "Returning from double speed mode while the PPU is on may trigger odd-mode\n");
}
flush_pending_cycles(gb);
bool needs_alignment = false;