mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use globals to implicitly define labels before passing them into BANK().
This commit is contained in:
parent
7c02c2bb31
commit
30218eb3d6
6
home.asm
6
home.asm
@ -2395,6 +2395,8 @@ BattleTextBox:: ; 3ac3
|
|||||||
StdBattleTextBox:: ; 3ad5
|
StdBattleTextBox:: ; 3ad5
|
||||||
; Open a textbox and print battle text at 20:hl.
|
; Open a textbox and print battle text at 20:hl.
|
||||||
|
|
||||||
|
GLOBAL BattleText
|
||||||
|
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
|
|
||||||
@ -2411,6 +2413,9 @@ StdBattleTextBox:: ; 3ad5
|
|||||||
|
|
||||||
Function3ae1:: ; 3ae1
|
Function3ae1:: ; 3ae1
|
||||||
|
|
||||||
|
GLOBAL BattleAnimations
|
||||||
|
GLOBAL BattleAnimCommands
|
||||||
|
|
||||||
ld a, BANK(BattleAnimations)
|
ld a, BANK(BattleAnimations)
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
@ -2566,6 +2571,7 @@ UpdateSound:: ; 3b6a
|
|||||||
|
|
||||||
_LoadMusicByte:: ; 3b86
|
_LoadMusicByte:: ; 3b86
|
||||||
; CurMusicByte = [a:de]
|
; CurMusicByte = [a:de]
|
||||||
|
GLOBAL LoadMusicByte
|
||||||
|
|
||||||
ld [hROMBank], a
|
ld [hROMBank], a
|
||||||
ld [MBC3RomBank], a
|
ld [MBC3RomBank], a
|
||||||
|
@ -770,6 +770,12 @@ GetPokedexEntryBank: ; ec38
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.PokedexEntryBanks
|
.PokedexEntryBanks
|
||||||
|
|
||||||
|
GLOBAL PokedexEntries1
|
||||||
|
GLOBAL PokedexEntries2
|
||||||
|
GLOBAL PokedexEntries3
|
||||||
|
GLOBAL PokedexEntries4
|
||||||
|
|
||||||
db BANK(PokedexEntries1)
|
db BANK(PokedexEntries1)
|
||||||
db BANK(PokedexEntries2)
|
db BANK(PokedexEntries2)
|
||||||
db BANK(PokedexEntries3)
|
db BANK(PokedexEntries3)
|
||||||
@ -895,6 +901,10 @@ Function_0xeccc: ; eccc
|
|||||||
|
|
||||||
|
|
||||||
Function_0xecdd: ; ecdd
|
Function_0xecdd: ; ecdd
|
||||||
|
|
||||||
|
GLOBAL EvosAttacks
|
||||||
|
GLOBAL EvosAttacksPointers
|
||||||
|
|
||||||
push bc
|
push bc
|
||||||
ld a, [TempEnemyMonSpecies]
|
ld a, [TempEnemyMonSpecies]
|
||||||
dec a
|
dec a
|
||||||
|
6
main.asm
6
main.asm
@ -41638,6 +41638,12 @@ Function44333: ; 44333
|
|||||||
; 44351
|
; 44351
|
||||||
|
|
||||||
PokedexEntryBanks: ; 44351
|
PokedexEntryBanks: ; 44351
|
||||||
|
|
||||||
|
GLOBAL PokedexEntries1
|
||||||
|
GLOBAL PokedexEntries2
|
||||||
|
GLOBAL PokedexEntries3
|
||||||
|
GLOBAL PokedexEntries4
|
||||||
|
|
||||||
db BANK(PokedexEntries1)
|
db BANK(PokedexEntries1)
|
||||||
db BANK(PokedexEntries2)
|
db BANK(PokedexEntries2)
|
||||||
db BANK(PokedexEntries3)
|
db BANK(PokedexEntries3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user