rename Function0x{} labels to Function{} for consistency

This commit is contained in:
yenatch
2013-12-31 04:10:49 -05:00
parent 1ab4b59d86
commit a18cab495d
15 changed files with 429 additions and 429 deletions

View File

@@ -162,7 +162,7 @@ AIScoring_RedSuperEffective: ; 38635
push de push de
ld a, 1 ld a, 1
ld [hBattleTurn], a ld [hBattleTurn], a
callab Function0x347c8 callab Function347c8
pop de pop de
pop bc pop bc
pop hl pop hl
@@ -412,7 +412,7 @@ AIScoring_LeechHit: ; 387f7
push hl push hl
ld a, 1 ld a, 1
ld [hBattleTurn], a ld [hBattleTurn], a
callab Function0x347c8 callab Function347c8
pop hl pop hl
ld a, [$d265] ld a, [$d265]
@@ -559,7 +559,7 @@ AIScoring_LockOn: ; 3881d
AIScoring_Explosion: ; 388a6 AIScoring_Explosion: ; 388a6
push hl push hl
callba Function0x349f4 callba Function349f4
pop hl pop hl
jr nc, .asm_388b7 jr nc, .asm_388b7
@@ -904,7 +904,7 @@ AIScoring_Bide: ; 38a1e
AIScoring_Whirlwind: ; 38a2a AIScoring_Whirlwind: ; 38a2a
push hl push hl
callab Function0x3484e callab Function3484e
ld a, [$c716] ld a, [$c716]
cp $a cp $a
pop hl pop hl
@@ -1760,7 +1760,7 @@ AIScoring_MeanLook: ; 38dfb
jr nz, .asm_38e26 jr nz, .asm_38e26
push hl push hl
callab Function0x3484e callab Function3484e
ld a, [$c716] ld a, [$c716]
cp $b cp $b
pop hl pop hl
@@ -1874,7 +1874,7 @@ AIScoring_Curse: ; 38e5c
jp nz, AIDiscourageMove jp nz, AIDiscourageMove
push hl push hl
callba Function0x349f4 callba Function349f4
pop hl pop hl
jr nc, .asm_38eb0 jr nc, .asm_38eb0
@@ -2003,7 +2003,7 @@ AIScoring_Foresight: ; 38f1d
AIScoring_PerishSong: ; 38f4a AIScoring_PerishSong: ; 38f4a
push hl push hl
callab Function0x349f4 callab Function349f4
pop hl pop hl
jr c, .asm_38f75 jr c, .asm_38f75
@@ -2012,7 +2012,7 @@ AIScoring_PerishSong: ; 38f4a
jr nz, .asm_38f6f jr nz, .asm_38f6f
push hl push hl
callab Function0x3484e callab Function3484e
ld a, [$c716] ld a, [$c716]
cp 10 ; 1.0 cp 10 ; 1.0
pop hl pop hl
@@ -2242,7 +2242,7 @@ AIScoring_Earthquake: ; 39044
AIScoring_BatonPass: ; 39062 AIScoring_BatonPass: ; 39062
push hl push hl
callab Function0x3484e callab Function3484e
ld a, [$c716] ld a, [$c716]
cp 10 ; 1.0 cp 10 ; 1.0
pop hl pop hl
@@ -2299,7 +2299,7 @@ AIScoring_HiddenPower: ; 3909e
ld hl, $7ced ld hl, $7ced
ld a, $3e ld a, $3e
rst FarCall rst FarCall
callab Function0x347c8 callab Function347c8
pop hl pop hl
ld a, [$d265] ld a, [$d265]
@@ -3223,7 +3223,7 @@ AIScoring_StatusImmunity: ; 39453
push de push de
ld a, 1 ld a, 1
ld [hBattleTurn], a ld [hBattleTurn], a
callab Function0x347c8 callab Function347c8
pop de pop de
pop bc pop bc
pop hl pop hl

View File

@@ -3421,7 +3421,7 @@ Function3d5d7: ; 3d5d7
ld a, BANK(Moves) ld a, BANK(Moves)
call FarCopyBytes call FarCopyBytes
call SetEnemyTurn call SetEnemyTurn
callab Function0x347c8 callab Function347c8
pop bc pop bc
pop de pop de
pop hl pop hl
@@ -3456,13 +3456,13 @@ Function3d618: ; 3d618
ld a, [BattleMonType1] ld a, [BattleMonType1]
ld [PlayerMoveType], a ld [PlayerMoveType], a
call SetPlayerTurn call SetPlayerTurn
callab Function0x347c8 callab Function347c8
ld a, [$d265] ld a, [$d265]
cp $b cp $b
jr nc, .asm_3d663 jr nc, .asm_3d663
ld a, [BattleMonType2] ld a, [BattleMonType2]
ld [PlayerMoveType], a ld [PlayerMoveType], a
callab Function0x347c8 callab Function347c8
ld a, [$d265] ld a, [$d265]
cp $b cp $b
jr nc, .asm_3d663 jr nc, .asm_3d663
@@ -4554,15 +4554,15 @@ Function3dde9: ; 3dde9
res 7, [hl] res 7, [hl]
.asm_3de26 .asm_3de26
ld hl, Function0x365fd ld hl, Function365fd
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_3de31 jr z, .asm_3de31
ld hl, Function0x365d7 ld hl, Function365d7
.asm_3de31 .asm_3de31
call Function3c8e4 call Function3c8e4
ld a, BANK(Function0x365fd) ld a, BANK(Function365fd)
rst FarCall rst FarCall
call Function3c8e4 call Function3c8e4
call Function3ddc8 call Function3ddc8

File diff suppressed because it is too large Load Diff

View File

@@ -41,9 +41,9 @@ BattleCommand54: ; 37588
ld a, $1 ld a, $1
ld [$c689], a ld [$c689], a
call Function0x37e01 call Function37e01
ld a, $2 ld a, $2
call Function0x36532 call Function36532
call SwitchTurn call SwitchTurn
call BattleCommand8d call BattleCommand8d
call ResetMiss call ResetMiss
@@ -71,7 +71,7 @@ BattleCommand54: ; 37588
jr nz, .failed jr nz, .failed
set 1, [hl] set 1, [hl]
call Function0x37e01 call Function37e01
ld hl, GetHalfMaxHP ld hl, GetHalfMaxHP
call CallBattleCore call CallBattleCore
ld hl, Function3cc3f ld hl, Function3cc3f
@@ -81,7 +81,7 @@ BattleCommand54: ; 37588
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
call Function0x37e77 call Function37e77
jp PrintButItFailed jp PrintButItFailed
@@ -91,7 +91,7 @@ BattleCommand54: ; 37588
ld b, $8 ; ABILITY ld b, $8 ; ABILITY
call GetStatName call GetStatName
call Function0x37e77 call Function37e77
ld hl, WontRiseAnymoreText ld hl, WontRiseAnymoreText
jp StdBattleTextBox jp StdBattleTextBox
; 37618 ; 37618

View File

@@ -10,7 +10,7 @@ BattleCommand5a: ; 3766f
call _GetBattleVar call _GetBattleVar
set SUBSTATUS_ENDURE, [hl] set SUBSTATUS_ENDURE, [hl]
call Function0x37e01 call Function37e01
ld hl, BracedItselfText ld hl, BracedItselfText
jp StdBattleTextBox jp StdBattleTextBox

View File

@@ -14,11 +14,11 @@ BattleCommand57: ; 376a0
jr nz, .failed jr nz, .failed
set SUBSTATUS_IDENTIFIED, [hl] set SUBSTATUS_IDENTIFIED, [hl]
call Function0x37e01 call Function37e01
ld hl, IdentifiedText ld hl, IdentifiedText
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
jp Function0x37354 jp Function37354
; 376c2 ; 376c2

View File

@@ -1,8 +1,8 @@
BattleCommand34: ; 37418 BattleCommand34: ; 37418
; metronome ; metronome
call Function0x372d8 call Function372d8
call Function0x34548 call Function34548
jr nz, .asm_3742b jr nz, .asm_3742b
ld a, [$c689] ld a, [$c689]
@@ -12,7 +12,7 @@ BattleCommand34: ; 37418
ld [$c689], a ld [$c689], a
.asm_3742b .asm_3742b
call Function0x37e36 call Function37e36
.GetMove .GetMove
call BattleRandom call BattleRandom

View File

@@ -1,7 +1,7 @@
BattleCommand1b: ; 373c9 BattleCommand1b: ; 373c9
; mirrormove ; mirrormove
call Function0x372d8 call Function372d8
ld a, BATTLE_VARS_MOVE ld a, BATTLE_VARS_MOVE
call _GetBattleVar call _GetBattleVar
@@ -15,7 +15,7 @@ BattleCommand1b: ; 373c9
jr nz, .use jr nz, .use
.failed .failed
call Function0x37e77 call Function37e77
ld hl, MirrorMoveFailedText ld hl, MirrorMoveFailedText
call StdBattleTextBox call StdBattleTextBox
@@ -37,7 +37,7 @@ BattleCommand1b: ; 373c9
call GetMoveData call GetMoveData
call GetMoveName call GetMoveName
call CopyName1 call CopyName1
call Function0x34548 call Function34548
jr nz, .done jr nz, .done
ld a, [$c689] ld a, [$c689]

View File

@@ -28,12 +28,12 @@ BattleCommand52: ; 37536
; Otherwise give the opponent a nightmare. ; Otherwise give the opponent a nightmare.
set SUBSTATUS_NIGHTMARE, [hl] set SUBSTATUS_NIGHTMARE, [hl]
call Function0x37e01 call Function37e01
ld hl, StartedNightmareText ld hl, StartedNightmareText
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
call Function0x37e77 call Function37e77
jp PrintButItFailed jp PrintButItFailed
; 37563 ; 37563

View File

@@ -30,12 +30,12 @@ BattleCommand58: ; 376c2
ld [EnemyPerishCount], a ld [EnemyPerishCount], a
.done .done
call Function0x37e01 call Function37e01
ld hl, StartPerishText ld hl, StartPerishText
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
call Function0x37e77 call Function37e77
jp PrintButItFailed jp PrintButItFailed
; 376f8 ; 376f8

View File

@@ -7,7 +7,7 @@ BattleCommand55: ; 37618
call _GetBattleVar call _GetBattleVar
set SUBSTATUS_PROTECT, [hl] set SUBSTATUS_PROTECT, [hl]
call Function0x37e01 call Function37e01
ld hl, ProtectedItselfText ld hl, ProtectedItselfText
jp StdBattleTextBox jp StdBattleTextBox
@@ -23,7 +23,7 @@ ProtectChance: ; 3762c
ld de, EnemyProtectCount ld de, EnemyProtectCount
.asm_37637 .asm_37637
call Function0x36abf call Function36abf
jr nz, .failed jr nz, .failed
; Can't have a substitute. ; Can't have a substitute.
@@ -73,7 +73,7 @@ ProtectChance: ; 3762c
.failed .failed
xor a xor a
ld [de], a ld [de], a
call Function0x37e77 call Function37e77
call PrintButItFailed call PrintButItFailed
scf scf
ret ret

View File

@@ -9,12 +9,12 @@ BattleCommand59: ; 376f8
ld [Weather], a ld [Weather], a
ld a, 5 ld a, 5
ld [WeatherCount], a ld [WeatherCount], a
call Function0x37e01 call Function37e01
ld hl, SandstormBrewedText ld hl, SandstormBrewedText
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
call Function0x37e77 call Function37e77
jp PrintButItFailed jp PrintButItFailed
; 37718 ; 37718

View File

@@ -17,12 +17,12 @@ BattleCommand56: ; 37683
set SCREENS_SPIKES, [hl] set SCREENS_SPIKES, [hl]
call Function0x37e01 call Function37e01
ld hl, SpikesText ld hl, SpikesText
jp StdBattleTextBox jp StdBattleTextBox
.failed .failed
jp Function0x37354 jp Function37354
; 376a0 ; 376a0

View File

@@ -1542,7 +1542,7 @@ Functionf030: ; f030 (3:7030)
res 7, [hl] res 7, [hl]
.asm_f04f .asm_f04f
push bc push bc
callba Function0x365d7 callba Function365d7
pop bc pop bc
ret ret
@@ -2343,7 +2343,7 @@ XSpecial: ; f4c5
ld [hBattleTurn], a ld [hBattleTurn], a
ld [AttackMissed], a ld [AttackMissed], a
ld [$c70d], a ld [$c70d], a
callba Function0x361ef callba Function361ef
call WaitSFX call WaitSFX
callba BattleCommand8c callba BattleCommand8c

View File

@@ -7793,7 +7793,7 @@ PredefPointers: ; 856b
dwb Function5108b, BANK(Function5108b) dwb Function5108b, BANK(Function5108b)
dwb Function5120d, BANK(Function5120d) dwb Function5120d, BANK(Function5120d)
dwb DecompressPredef, BANK(DecompressPredef) ; $40 dwb DecompressPredef, BANK(DecompressPredef) ; $40
dwb Function0x347d3, BANK(Function0x347d3) dwb Function347d3, BANK(Function347d3)
dwb Functionfb908, BANK(Functionfb908) dwb Functionfb908, BANK(Functionfb908)
dwb Functionfb877, BANK(Functionfb877) dwb Functionfb877, BANK(Functionfb877)
dwb Functiond0000, BANK(Functiond0000) dwb Functiond0000, BANK(Functiond0000)
@@ -11050,7 +11050,7 @@ _CheckTossableItem: ; d427
ld a, 4 ld a, 4
call GetItemAttr call GetItemAttr
bit 7, a bit 7, a
jr nz, Function0xd47f jr nz, Functiond47f
and a and a
ret ret
; d432 ; d432
@@ -11060,7 +11060,7 @@ CheckSelectableItem: ; d432
ld a, 4 ld a, 4
call GetItemAttr call GetItemAttr
bit 6, a bit 6, a
jr nz, Function0xd47f jr nz, Functiond47f
and a and a
ret ret
; d43d ; d43d
@@ -11120,7 +11120,7 @@ GetItemAttr: ; d460
ret ret
; d47f ; d47f
Function0xd47f: ; d47f Functiond47f: ; d47f
ld a, 1 ld a, 1
ld [$d142], a ld [$d142], a
scf scf
@@ -35591,7 +35591,7 @@ INCBIN "baserom.gbc",$2c4d7,$2c4e3 - $2c4d7
cp $3 cp $3
jr z, .asm_2c541 jr z, .asm_2c541
jr Function2c545 jr Function2c545
callba Function0x377f5 callba Function377f5
jr c, .asm_2c541 jr c, .asm_2c541
ld a, [PlayerSubStatus1] ; $c668 ld a, [PlayerSubStatus1] ; $c668
bit 7, a bit 7, a
@@ -36913,7 +36913,7 @@ Function38041: ; 38041
; 38045 ; 38045
Function38045: ; 38045 Function38045: ; 38045
callab Function0x34941 callab Function34941
ld a, [$c717] ld a, [$c717]
and $f0 and $f0
jp z, Function38041 jp z, Function38041
@@ -36946,7 +36946,7 @@ Function38045: ; 38045
; 38083 ; 38083
Function38083: ; 38083 Function38083: ; 38083
callab Function0x34941 callab Function34941
ld a, [$c717] ld a, [$c717]
and $f0 and $f0
jp z, Function38041 jp z, Function38041
@@ -36979,7 +36979,7 @@ Function38083: ; 38083
; 380c1 ; 380c1
Function380c1: ; 380c1 Function380c1: ; 380c1
callab Function0x34941 callab Function34941
ld a, [$c717] ld a, [$c717]
and $f0 and $f0
jp z, Function38041 jp z, Function38041
@@ -37555,7 +37555,7 @@ Function38557
push bc push bc
call Function38571 call Function38571
pop bc pop bc
callba Function0x361ef callba Function361ef
jp Function38387 jp Function38387
; 38568 ; 38568
@@ -86704,7 +86704,7 @@ UsedMoveText: ; 105db9
; check actor ???? ; check actor ????
push hl push hl
callba Function0x34548 callba Function34548
pop hl pop hl
jr nz, .grammar jr nz, .grammar