git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit db483ce95f31655fec74ddc53495d78f33903c77
parent 555835549a6239fda6051873a5363a20ee9b93dc
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 12 Dec 2020 20:40:35 +0200

Warn about potential odd-mode triggers

Diffstat:
MCore/sm83_cpu.c3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c @@ -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;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.