Fix the fast CGB boot ROM booting with data on the second VRAM bank

This commit is contained in:
Lior Halphon 2019-05-04 21:15:23 +03:00
parent 2a0e5f667b
commit 10be34b5b2

View File

@ -99,6 +99,10 @@ Start:
ld hl, $98C2 ld hl, $98C2
ld b, 3 ld b, 3
ld a, 8 ld a, 8
IF DEF(FAST)
xor a
ldh [$4F], a
ENDC
.tilemapLoop .tilemapLoop
ld c, $10 ld c, $10
@ -107,6 +111,7 @@ Start:
ld [hl], a ld [hl], a
push af push af
IF !DEF(FAST)
; Switch to second VRAM Bank ; Switch to second VRAM Bank
ld a, 1 ld a, 1
ldh [$4F], a ldh [$4F], a
@ -115,6 +120,7 @@ Start:
; Switch to back first VRAM Bank ; Switch to back first VRAM Bank
xor a xor a
ldh [$4F], a ldh [$4F], a
ENDC
pop af pop af
ldi [hl], a ldi [hl], a
inc a inc a