Updated DMG boot ROM to finish with the same register values as the original boot ROM

This commit is contained in:
Lior Halphon 2016-08-06 19:03:59 +03:00
parent bebb5c7a41
commit 109af49933

View File

@ -89,6 +89,15 @@ Start:
; Wait ~2.5 seconds ; Wait ~2.5 seconds
ld b, 150 ld b, 150
call WaitBFrames call WaitBFrames
; Set registers to match the original DMG boot
ld hl, $01B0
push hl
pop af
ld hl, $014D
ld bc, $0013
ld de, $00D8
; Boot the game ; Boot the game
jp BootGame jp BootGame
@ -135,7 +144,6 @@ PlaySound:
TrademarkSymbol: TrademarkSymbol:
db $3c,$42,$b9,$a5,$b9,$a5,$42,$3c db $3c,$42,$b9,$a5,$b9,$a5,$42,$3c
SECTION "BootGame", ROM0[$fc] SECTION "BootGame", ROM0[$fe]
BootGame: BootGame:
ld a, 1
ldh [$50], a ldh [$50], a