From 10be34b5b252711d961ac13a6b8417cb1b94d2bb Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 4 May 2019 21:15:23 +0300 Subject: [PATCH] Fix the fast CGB boot ROM booting with data on the second VRAM bank --- BootROMs/cgb_boot.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BootROMs/cgb_boot.asm b/BootROMs/cgb_boot.asm index fa826f5f..ee0198a3 100644 --- a/BootROMs/cgb_boot.asm +++ b/BootROMs/cgb_boot.asm @@ -99,6 +99,10 @@ Start: ld hl, $98C2 ld b, 3 ld a, 8 +IF DEF(FAST) + xor a + ldh [$4F], a +ENDC .tilemapLoop ld c, $10 @@ -107,6 +111,7 @@ Start: ld [hl], a push af +IF !DEF(FAST) ; Switch to second VRAM Bank ld a, 1 ldh [$4F], a @@ -115,6 +120,7 @@ Start: ; Switch to back first VRAM Bank xor a ldh [$4F], a +ENDC pop af ldi [hl], a inc a