Resolve #471 (although link code still needs more cleanup, like its WRAM labels)

This commit is contained in:
Remy Oukaour
2018-01-19 14:49:43 -05:00
parent 52993d20ef
commit 0c6338836d
12 changed files with 279 additions and 253 deletions

View File

@@ -4,7 +4,7 @@ Unreferenced_Function16c000: ; 16c000
and a
ret z
; Only do this once per boot cycle
ld a, [hFFEA]
ld a, [hSystemBooted]
and a
ret z
; Set some flag, preserving the old state
@@ -19,9 +19,9 @@ Unreferenced_Function16c000: ; 16c000
call .RunJumptable
farcall DisableMobile
; Prevent this routine from running again
; until the next time the syatem is turned on
; until the next time the system is turned on
xor a
ld [hFFEA], a
ld [hSystemBooted], a
; Restore the flag state
pop af
ld [wcfbe], a