Use globals to implicitly define labels before passing them into BANK().

This commit is contained in:
yenatch
2014-02-04 21:29:13 -05:00
parent 7c02c2bb31
commit 30218eb3d6
3 changed files with 22 additions and 0 deletions

View File

@@ -2395,6 +2395,8 @@ BattleTextBox:: ; 3ac3
StdBattleTextBox:: ; 3ad5
; Open a textbox and print battle text at 20:hl.
GLOBAL BattleText
ld a, [hROMBank]
push af
@@ -2411,6 +2413,9 @@ StdBattleTextBox:: ; 3ad5
Function3ae1:: ; 3ae1
GLOBAL BattleAnimations
GLOBAL BattleAnimCommands
ld a, BANK(BattleAnimations)
rst Bankswitch
@@ -2566,6 +2571,7 @@ UpdateSound:: ; 3b6a
_LoadMusicByte:: ; 3b86
; CurMusicByte = [a:de]
GLOBAL LoadMusicByte
ld [hROMBank], a
ld [MBC3RomBank], a