From c730ba767bcd28d76fdc092b9fc8cbd37198930e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Mon, 7 Feb 2022 00:21:45 +0200 Subject: [PATCH] Not sure where I've got that 0 from --- Core/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/memory.c b/Core/memory.c index b0a9e0b..17d2a34 100644 --- a/Core/memory.c +++ b/Core/memory.c @@ -1717,7 +1717,7 @@ void GB_dma_run(GB_gameboy_t *gb) } else { if (GB_is_cgb(gb)) { - gb->oam[gb->dma_current_dest++] = 0; + gb->oam[gb->dma_current_dest++] = 0xFF; } else { gb->oam[gb->dma_current_dest++] = GB_read_memory(gb, gb->dma_current_src & ~0x2000);