From a6ed2029b7cea406580126ff4f793dd4a156071a Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 6 Apr 2018 03:19:47 +0300 Subject: [PATCH] New information about PPU changes between CGB-B and CGB-E --- Core/display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/display.c b/Core/display.c index 27c3649a..057507e1 100644 --- a/Core/display.c +++ b/Core/display.c @@ -654,6 +654,9 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles) uint8_t y = fetcher_y(gb); if (gb->is_cgb) { /* This value is cached on the CGB, so it cannot be used to mix tiles together */ + /* Todo: This is NOT true on CGB-B! This is likely the case for all CGBs prior to D. + Currently, SameBoy is emulating CGB-E, but if other revisions are added in the future + this should be taken care of*/ gb->fetcher_y = y; } gb->current_tile = gb->vram[map + gb->fetcher_x + y / 8 * 32];