Fix comments around BANK() statements

Found a couple BANK()s that reference multiple labels.
This commit is contained in:
mid-kid 2018-12-25 18:49:54 +01:00
parent 0ae5e9b398
commit 930d285fab
7 changed files with 9 additions and 8 deletions

View File

@ -4154,7 +4154,7 @@ PursuitSwitch:
ld a, [wLastPlayerMon] ld a, [wLastPlayerMon]
ld [wCurBattleMon], a ld [wCurBattleMon], a
.do_turn .do_turn
ld a, BANK(DoPlayerTurn) ld a, BANK(DoPlayerTurn) ; and BANK(DoEnemyTurn)
rst FarCall rst FarCall
ld a, BATTLE_VARS_MOVE ld a, BATTLE_VARS_MOVE
@ -4404,7 +4404,7 @@ UseHeldStatusHealingItem:
.got_pointer .got_pointer
call SwitchTurnCore call SwitchTurnCore
ld a, BANK(CalcEnemyStats) ld a, BANK(CalcPlayerStats) ; and BANK(CalcEnemyStats)
rst FarCall rst FarCall
call SwitchTurnCore call SwitchTurnCore
call ItemRecoveryAnim call ItemRecoveryAnim

View File

@ -59,7 +59,7 @@ BattleCommand_Present:
jr z, .got_hp_fn_pointer jr z, .got_hp_fn_pointer
ld hl, AICheckEnemyMaxHP ld hl, AICheckEnemyMaxHP
.got_hp_fn_pointer .got_hp_fn_pointer
ld a, BANK(AICheckPlayerMaxHP) ld a, BANK(AICheckPlayerMaxHP) ; and BANK(AICheckEnemyMaxHP)
rst FarCall rst FarCall
jr c, .already_fully_healed jr c, .already_fully_healed

View File

@ -1340,7 +1340,7 @@ BattleAnimAssignPals:
call DmgToCgbObjPals call DmgToCgbObjPals
ret ret
ClearBattleAnims: ClearBattleAnims::
; Clear animation block ; Clear animation block
ld hl, wLYOverrides ld hl, wLYOverrides
ld bc, wBattleAnimEnd - wLYOverrides ld bc, wBattleAnimEnd - wLYOverrides

View File

@ -19,7 +19,7 @@ _UnownPrinter:
ld de, UnownDexATile ld de, UnownDexATile
ld hl, vTiles0 tile UNOWNSTAMP_BOLD_A ld hl, vTiles0 tile UNOWNSTAMP_BOLD_A
lb bc, BANK(UnownDexBTile), 1 lb bc, BANK(UnownDexATile), 1
call Request1bpp call Request1bpp
ld de, UnownDexBTile ld de, UnownDexBTile

View File

@ -190,7 +190,8 @@ GetBattleAnimPointer::
ld a, [hl] ld a, [hl]
ld [wBattleAnimAddress + 1], a ld [wBattleAnimAddress + 1], a
ld a, BANK(BattleAnimCommands) ; ClearBattleAnims is the only function that calls this...
ld a, BANK(ClearBattleAnims)
rst Bankswitch rst Bankswitch
ret ret

View File

@ -97,7 +97,7 @@ Init::
call ClearSprites call ClearSprites
call ClearsScratch call ClearsScratch
ld a, BANK(WriteOAMDMACodeToHRAM) ld a, BANK(GameInit) ; and BANK(WriteOAMDMACodeToHRAM)
rst Bankswitch rst Bankswitch
call WriteOAMDMACodeToHRAM call WriteOAMDMACodeToHRAM

View File

@ -3,7 +3,7 @@ ScrollingMenu::
ldh a, [hROMBank] ldh a, [hROMBank]
push af push af
ld a, BANK(_ScrollingMenu) ld a, BANK(_ScrollingMenu) ; and BANK(_InitScrollingMenu)
rst Bankswitch rst Bankswitch
call _InitScrollingMenu call _InitScrollingMenu