Use a predef macro that takes labels instead of juggling constants.

Besides making predefs convenient, naming a predef no longer requires
adding or renaming a predef constant. This also lets predefs be rearranged at will.
This commit is contained in:
yenatch
2014-06-16 11:20:01 -07:00
parent 0b7dfeb9b2
commit 8639fcd29b
15 changed files with 325 additions and 555 deletions

View File

@@ -753,15 +753,14 @@ GetSGBLayout:: ; 3340
ld a, [hCGB]
and a
jr nz, .dosgb
jr nz, .sgb
ld a, [hSGB]
and a
ret z
.dosgb
ld a, $31 ; LoadSGBLayout
jp Predef
.sgb
predef_jump Function864c ; LoadSGBLayout
; 334e
@@ -1700,14 +1699,12 @@ Function378b:: ; 378b
jr c, .asm_37ad
push hl
ld de, VTiles2
ld a, $3c
call Predef
predef Function51077
pop hl
xor a
ld [$ffad], a
ld bc, $0707
ld a, $13
call Predef
predef FillBox
xor a
ld [$c2c6], a
ret