ref: 4281bee9e8e3a1240799f037de19d5d7181532bc
parent: 962d9fc39970afac29395125132f94c8ada4284d
author: U-Daniel-Laptop\Daniel <corrnondacqb@yahoo.com>
date: Sat Dec 28 07:35:17 EST 2013
remove redundant addressess
--- a/main.asm
+++ b/main.asm
@@ -8007,12 +8007,12 @@
.asm_3146
ld b, BANK(Func_1a3e0)
ld hl, Func_1a3e0
- jp Bankswitch ; indirect jump to Func_1a3e0 (1a3e0 (6:63e0))
+ jp Bankswitch
Func_314e: ; 314e (0:314e)
ld b, BANK(Func_1a41d)
ld hl, Func_1a41d
- jp Bankswitch ; indirect jump to Func_1a41d (1a41d (6:641d))
+ jp Bankswitch
Func_3156: ; 3156 (0:3156)
ret
@@ -8242,7 +8242,7 @@
TrainerWalkUpToPlayer_Bank0: ; 32cf (0:32cf)
ld b, BANK(TrainerWalkUpToPlayer)
ld hl, TrainerWalkUpToPlayer
- jp Bankswitch ; indirect jump to TrainerWalkUpToPlayer (56881 (15:6881))
+ jp Bankswitch
; sets opponent type and mon set/lvl based on the engaging trainer data
InitBattleEnemyParameters: ; 32d7 (0:32d7)
@@ -8368,7 +8368,7 @@
push hl
ld b, BANK(SaveTrainerName)
ld hl, SaveTrainerName
- call Bankswitch ; indirect jump to SaveTrainerName (27e4a (9:7e4a))
+ call Bankswitch
ld hl, UnnamedText_33cf
call PrintText
pop hl
@@ -8377,7 +8377,7 @@
ld [$2000], a
ld b, BANK(Func_1a5e7)
ld hl, Func_1a5e7
- call Bankswitch ; indirect jump to Func_1a5e7 (1a5e7 (6:65e7))
+ call Bankswitch
jp WaitForSoundToFinish
Func_33b7: ; 33b7 (0:33b7)
@@ -8759,7 +8759,7 @@
Func_359e: ; 359e (0:359e)
ld b, BANK(Func_13a58)
ld hl, Func_13a58
- jp Bankswitch ; indirect jump to Func_13a58 (13a58 (4:7a58))
+ jp Bankswitch
; tests if player's money are at least as much as [$ff9f]
; sets carry flag if not enough money
@@ -10387,7 +10387,7 @@
call DisableLCD
ld b, BANK(InitMapSprites)
ld hl, InitMapSprites
- call Bankswitch ; indirect jump to InitMapSprites (1785b (5:785b))
+ call Bankswitch
call EnableLCD
pop hl
pop af
@@ -10488,7 +10488,7 @@
Func_3ead: ; 3ead (0:3ead)
ld b, BANK(Func_1eb0a)
ld hl, Func_1eb0a
- jp Bankswitch ; indirect jump to Func_1eb0a (1eb0a (7:6b0a))
+ jp Bankswitch
Func_3eb5: ; 3eb5 (0:3eb5)
ld a, [H_LOADEDROMBANK]
@@ -10514,7 +10514,7 @@
.asm_3edd
ld b, BANK(Func_fb50)
ld hl, Func_fb50
- call Bankswitch ; indirect jump to Func_fb50 (fb50 (3:7b50))
+ call Bankswitch
ld a, [$FF00+$db]
and a
jr z, .asm_3eec
@@ -11026,7 +11026,7 @@
jr c, .asm_4459
ld b, BANK(Func_372ac)
ld hl, Func_372ac
- call Bankswitch ; indirect jump to Func_372ac (372ac (d:72ac))
+ call Bankswitch
call Func_4496
jr .asm_443b
.asm_4459
@@ -11056,7 +11056,7 @@
Func_448e: ; 448e (1:448e)
ld b, BANK(Func_1c98a)
ld hl, Func_1c98a
- jp Bankswitch ; indirect jump to Func_1c98a (1c98a (7:498a))
+ jp Bankswitch
Func_4496: ; 4496 (1:4496)
ld a, $98
@@ -11079,7 +11079,7 @@
ld d, $1
ld b, BANK(LoadScreenTilesFromBuffer18)
ld hl, LoadScreenTilesFromBuffer18
- call Bankswitch ; indirect jump to LoadScreenTilesFromBuffer18 (37258 (d:7258))
+ call Bankswitch
ret
Func_44c1: ; 44c1 (1:44c1)
@@ -11086,7 +11086,7 @@
ld d, $0
ld b, BANK(LoadScreenTilesFromBuffer18)
ld hl, LoadScreenTilesFromBuffer18
- call Bankswitch ; indirect jump to LoadScreenTilesFromBuffer18 (37258 (d:7258))
+ call Bankswitch
xor a
ld [$FF00+$b0], a
ret
@@ -11243,7 +11243,7 @@
ld de, VersionOnTitleScreenText ; $45a1
jp PlaceString
-; these point to special tiles specifically loaded for that purpose ad are no usual text
+; these point to special tiles specifically loaded for that purpose and are not usual text
VersionOnTitleScreenText: ; 45a1 (1:45a1)
IF _RED
db $60,$61,$7F,$65,$66,$67,$68,$69,"@" ; "Red Version"
@@ -13503,7 +13503,7 @@
call LoadMapData
ld b, BANK(Func_c335)
ld hl, Func_c335
- call Bankswitch ; indirect jump to Func_c335 (c335 (3:4335))
+ call Bankswitch
pop hl
pop af
ld [hl], a
@@ -15245,7 +15245,7 @@
call Func_675b
ld b, BANK(Func_7176c)
ld hl, Func_7176c
- call Bankswitch ; indirect jump to Func_7176c (7176c (1c:576c))
+ call Bankswitch
FuncCoord 0, 4 ; $c3f0
ld hl, Coord
ld b, $9
@@ -15284,7 +15284,7 @@
push af
ld b, BANK(Func_716f7)
ld hl, Func_716f7
- call Bankswitch ; indirect jump to Func_716f7 (716f7 (1c:56f7))
+ call Bankswitch
pop af
ld [wCurrentMenuItem], a ; $cc26
call GetJoypadStateLowSensitivity
@@ -15329,7 +15329,7 @@
jp z, LoadTextBoxTilePatterns
ld hl, Func_3ee5b
ld b, BANK(Func_3ee5b)
- jp Bankswitch ; indirect jump to Func_3ee5b (3ee5b (f:6e5b))
+ jp Bankswitch
.unknownPointerTable_665e: ; 665e (1:665e)
dw .asm_65fc
@@ -15625,7 +15625,7 @@
push af
ld b, BANK(Func_71882)
ld hl, Func_71882
- call Bankswitch ; indirect jump to Func_71882 (71882 (1c:5882))
+ call Bankswitch
pop af
ld [$d11e], a
call GetMonName
@@ -16446,7 +16446,7 @@
call CopyData
ld hl, Func_39b87
ld b, BANK(Func_39b87)
- call Bankswitch ; indirect jump to Func_39b87 (39b87 (e:5b87))
+ call Bankswitch
pop hl
.asm_6f39
push hl
@@ -17812,7 +17812,7 @@
call Predef ; indirect jump to Func_3cdec (3cdec (f:4dec))
ld hl, ReadPlayerMonCurHPAndStatus
ld b, BANK(ReadPlayerMonCurHPAndStatus)
- call Bankswitch ; indirect jump to ReadPlayerMonCurHPAndStatus (3cd43 (f:4d43))
+ call Bankswitch
ld hl, UnnamedText_78dc ; $78dc
ld a, [H_WHOSETURN] ; $FF00+$f3
and a
@@ -21222,7 +21222,7 @@
push bc
ld b, BANK(Func_1a609)
ld hl, Func_1a609
- call Bankswitch ; indirect jump to Func_1a609 (1a609 (6:6609))
+ call Bankswitch
jr c, .asm_c4c8
ld a, [W_CURMAPTILESET] ; $d367
add a
@@ -29173,7 +29173,7 @@
ld d, a
ld hl, CalcExperience
ld b, BANK(CalcExperience)
- call Bankswitch ; indirect jump to CalcExperience (58f6a (16:4f6a))
+ call Bankswitch
pop de
ld a, [H_NUMTOPRINT] ; $FF00+$96 (aliases: H_MULTIPLICAND)
ld [de], a
@@ -29745,7 +29745,7 @@
call Func_eedc
ld b, BANK(Func_79e96)
ld hl, Func_79e96
- call Bankswitch ; indirect jump to Func_79e96 (79e96 (1e:5e96))
+ call Bankswitch
ld a, $1
ld [$cfcb], a
ld a, $ac
@@ -30243,7 +30243,7 @@
ret nz
ld hl, Func_79f54
ld b, BANK(Func_79f54)
- call Bankswitch ; indirect jump to Func_79f54 (79f54 (1e:5f54))
+ call Bankswitch
call DiscardButtonPresses
ld [wJoypadForbiddenButtonsMask], a
call Func_f2dd
@@ -30458,7 +30458,7 @@
ld d, a
ld hl, CalcExperience
ld b, BANK(CalcExperience)
- call Bankswitch ; indirect jump to CalcExperience (58f6a (16:4f6a))
+ call Bankswitch
pop de
inc de
ld a, [H_MULTIPLICAND] ; write experience
@@ -30754,7 +30754,7 @@
call LoadMonData
ld b, BANK(Func_58f43)
ld hl, Func_58f43
- call Bankswitch ; indirect jump to Func_58f43 (58f43 (16:4f43))
+ call Bankswitch
ld a, d
ld [W_CURENEMYLVL], a ; $d127
pop hl
@@ -31686,7 +31686,7 @@
ld [$FF00+$db], a
ld b, BANK(Func_52673)
ld hl, Func_52673
- jp Bankswitch ; indirect jump to Func_52673 (52673 (14:6673))
+ jp Bankswitch
; format: db tileset id, bookshelf tile id, unknown
BookshelfTileIDs: ; fb8b (3:7b8b)
@@ -33770,7 +33770,7 @@
call ClearScreen
ld hl, Func_372d6
ld b, BANK(Func_372d6)
- call Bankswitch ; indirect jump to Func_372d6 (372d6 (d:72d6))
+ call Bankswitch
ld a, [$cf0b]
cp $1
ld de, YouWinText ; $7853
@@ -33859,7 +33859,7 @@
ret nz
ld hl, Func_c49d
ld b, BANK(Func_c49d)
- call Bankswitch ; indirect jump to Func_c49d (c49d (3:449d))
+ call Bankswitch
jr nc, .asm_13888
.asm_13884
ld a, $1
@@ -33868,7 +33868,7 @@
.asm_13888
ld hl, Func_128d8
ld b, BANK(Func_128d8)
- call Bankswitch ; indirect jump to Func_128d8 (128d8 (4:68d8))
+ call Bankswitch
jr z, .asm_13884
ld a, [$d0db]
and a
@@ -35362,7 +35362,7 @@
ld [W_ISLINKBATTLE], a ; $d12b
ld hl, Func_3ad0e
ld b, BANK(Func_3ad0e)
- call Bankswitch ; indirect jump to Func_3ad0e (3ad0e (e:6d0e))
+ call Bankswitch
xor a
ld [W_ISLINKBATTLE], a ; $d12b
jp Func_2307
@@ -39745,7 +39745,7 @@
jp z, InitGame
ld b, BANK(Func_73b6a)
ld hl, Func_73b6a
- call Bankswitch ; indirect jump to Func_73b6a (73b6a (1c:7b6a))
+ call Bankswitch
jp InitGame
UnnamedText_1c9c1: ; 1c9c1 (7:49c1)
@@ -45001,7 +45001,7 @@
Func_216b3: ; 216b3 (8:56b3)
ld b, BANK(Func_738a1)
ld hl, Func_738a1
- call Bankswitch ; indirect jump to Func_738a1 (738a1 (1c:78a1))
+ call Bankswitch
jp Func_214e8
Func_216be: ; 216be (8:56be)
@@ -47346,7 +47346,7 @@
set 2, [hl]
ld hl, Func_3fba8
ld b, BANK(Func_3fba8)
- call Bankswitch ; indirect jump to Func_3fba8 (3fba8 (f:7ba8))
+ call Bankswitch
ld hl, UnnamedText_27fb3 ; $7fb2
jp PrintText
.asm_27fa5
@@ -47354,7 +47354,7 @@
call DelayFrames
ld hl, Func_3fb53
ld b, BANK(Func_3fb53)
- jp Bankswitch ; indirect jump to Func_3fb53 (3fb53 (f:7b53))
+ jp Bankswitch
UnnamedText_27fb3: ; 27fb3 (9:7fb3)
db $0a
@@ -47494,7 +47494,7 @@
Func_2bea9: ; 2bea9 (a:7ea9)
ld hl, MoveHitTest
ld b, BANK(MoveHitTest)
- call Bankswitch ; indirect jump to MoveHitTest (3e56b (f:656b))
+ call Bankswitch
ld a, [W_MOVEMISSED] ; $d05f
and a
jr nz, .asm_2bee7
@@ -47518,7 +47518,7 @@
set 7, [hl]
ld hl, Func_3fba8
ld b, BANK(Func_3fba8)
- call Bankswitch ; indirect jump to Func_3fba8 (3fba8 (f:7ba8))
+ call Bankswitch
ld hl, UnnamedText_2bef2 ; $7ef2
jp PrintText
.asm_2bee7
@@ -48307,7 +48307,7 @@
ld [$cfcb], a
ld hl, Func_3a948
ld b, BANK(Func_3a948)
- call Bankswitch ; indirect jump to Func_3a948 (3a948 (e:6948))
+ call Bankswitch
ld c, $96
jp DelayFrames
@@ -55485,7 +55485,7 @@
call GoPAL_SET
ld hl, Func_3f04b
ld b, BANK(Func_3f04b)
- call Bankswitch ; indirect jump to Func_3f04b (3f04b (f:704b))
+ call Bankswitch
FuncCoord 19, 0 ; $c3b3
ld hl, Coord
ld c, $0
@@ -57954,7 +57954,7 @@
call CleanLCD_OAM
ld hl, Func_7bde9
ld b, BANK(Func_7bde9)
- call Bankswitch ; indirect jump to Func_7bde9 (7bde9 (1e:7de9))
+ call Bankswitch
jp c, Func_3af2e
ld hl, UnnamedText_3af3e ; $6f3e
call PrintText
@@ -60916,7 +60916,7 @@
call ResetLCD_OAM
ld hl, Func_58d99
ld b, BANK(Func_58d99)
- jp Bankswitch ; indirect jump to Func_58d99 (58d99 (16:4d99))
+ jp Bankswitch
Func_3c0ff: ; 3c0ff (f:40ff)
push bc
@@ -60994,7 +60994,7 @@
.asm_3c17a
ld hl, Func_4277
ld b, BANK(Func_4277)
- call Bankswitch ; indirect jump to Func_4277 (4277 (1:4277))
+ call Bankswitch
ld a, [$cffb]
add a
ld b, a
@@ -61079,7 +61079,7 @@
ld [H_WHOSETURN], a ; $FF00+$f3
ld hl, AnimationSlideEnemyMonOut
ld b, BANK(AnimationSlideEnemyMonOut)
- jp Bankswitch ; indirect jump to AnimationSlideEnemyMonOut (792b9 (1e:52b9))
+ jp Bankswitch
UnnamedText_3c229: ; 3c229 (f:4229)
TX_FAR _UnnamedText_3c229
@@ -61634,7 +61634,7 @@
ld [$cc5b], a
ld hl, Func_5524f
ld b, BANK(Func_5524f)
- call Bankswitch ; indirect jump to Func_5524f (5524f (15:524f))
+ call Bankswitch
pop af
ret z
ld a, $1
@@ -61650,7 +61650,7 @@
ld [W_PLAYERMONSALIVEFLAGS], a
ld hl, Func_5524f
ld b, BANK(Func_5524f)
- jp Bankswitch ; indirect jump to Func_5524f (5524f (15:524f))
+ jp Bankswitch
EnemyMonFainted: ; 0x3c63e
TX_FAR _EnemyMonFainted
@@ -61687,7 +61687,7 @@
call Func_3ce90
ld hl, DrawEnemyPokeballs
ld b, BANK(DrawEnemyPokeballs)
- call Bankswitch ; indirect jump to Func_3a857 (3a857 (e:6857))
+ call Bankswitch
ld a, [W_ISLINKBATTLE] ; $d12b
cp $4
jr nz, .asm_3c687
@@ -62494,7 +62494,7 @@
Func_3cc91: ; 3cc91 (f:4c91)
ld hl, Func_58e59
ld b, BANK(Func_58e59)
- call Bankswitch ; indirect jump to Func_58e59 (58e59 (16:4e59))
+ call Bankswitch
ld hl, W_ENEMYMONCURHP ; $cfe6
ld a, [hli]
or [hl]
@@ -62604,7 +62604,7 @@
call ClearScreenArea
ld hl, Func_3a902
ld b, BANK(Func_3a902)
- call Bankswitch ; indirect jump to Func_3a902 (3a902 (e:6902))
+ call Bankswitch
FuncCoord 18, 9 ; $c466
ld hl, Coord
ld [hl], $73
@@ -62672,7 +62672,7 @@
call ClearScreenArea
ld hl, Func_3a919
ld b, BANK(Func_3a919)
- call Bankswitch ; indirect jump to Func_3a919 (3a919 (e:6919))
+ call Bankswitch
ld de, W_ENEMYMONNAME
FuncCoord 1, 0 ; $c3a1
ld hl, Coord
@@ -63180,7 +63180,7 @@
Func_3d1ba: ; 3d1ba (f:51ba)
ld hl, Func_58ed1
ld b, BANK(Func_58ed1)
- call Bankswitch ; indirect jump to Func_58ed1 (58ed1 (16:4ed1))
+ call Bankswitch
ld c, $32
call DelayFrames
call Func_3ccfa
@@ -63237,7 +63237,7 @@
call CopyData
ld hl, Func_39b87
ld b, BANK(Func_39b87)
- call Bankswitch ; indirect jump to Func_39b87 (39b87 (e:5b87))
+ call Bankswitch
ret
.writemoves
@@ -63643,7 +63643,7 @@
ld [$cc49], a
ld hl, GetMaxPP
ld b, BANK(GetMaxPP)
- call Bankswitch ; indirect jump to GetMaxPP (e677 (3:6677))
+ call Bankswitch
ld hl, wCurrentMenuItem ; $cc26
ld c, [hl]
inc [hl]
@@ -63810,7 +63810,7 @@
ld [$cc42], a
ld hl, Func_4c05
ld b, BANK(Func_4c05)
- call Bankswitch ; indirect jump to Func_4c05 (4c05 (1:4c05))
+ call Bankswitch
.asm_3d63b
call Func_22c3
call DelayFrame
@@ -66474,7 +66474,7 @@
call Func_3dc5c
ld hl, DisplayEffectiveness
ld b, BANK(DisplayEffectiveness)
- call Bankswitch ; indirect jump to DisplayEffectiveness (2fb7b (b:7b7b))
+ call Bankswitch
ld a, $1
ld [$ccf4], a
.asm_3e83e
@@ -67000,7 +67000,7 @@
ld [wMenuJoypadPollCount], a ; $cc34
ld hl, Func_372d6
ld b, BANK(Func_372d6)
- call Bankswitch ; indirect jump to Func_372d6 (372d6 (d:72d6))
+ call Bankswitch
ld a, $1
ld [$cfcb], a
call ClearScreen
@@ -67010,7 +67010,7 @@
call Predef ; indirect jump to Func_7096d (7096d (1c:496d))
ld hl, Func_3ee58
ld b, BANK(Func_3ee58)
- call Bankswitch ; indirect jump to Func_3ee58 (3ee58 (f:6e58))
+ call Bankswitch
ld a, $1
ld [H_AUTOBGTRANSFERENABLED], a ; $FF00+$ba
ld a, $ff
@@ -67108,15 +67108,15 @@
Func_3ed02: ; 3ed02 (f:6d02)
ld hl, Func_39680
ld b, BANK(Func_39680)
- call Bankswitch ; indirect jump to Func_39680 (39680 (e:5680))
+ call Bankswitch
ld hl, Func_396a7
ld b, BANK(Func_396a7)
- jp Bankswitch ; indirect jump to Func_396a7 (396a7 (e:56a7))
+ jp Bankswitch
Func_3ed12: ; 3ed12 (f:6d12)
ld hl, Func_396d3
ld b, BANK(Func_396d3)
- jp Bankswitch ; indirect jump to Func_396d3 (396d3 (e:56d3))
+ jp Bankswitch
Func_3ed1a: ; 3ed1a (f:6d1a)
ld a, $1
@@ -67477,7 +67477,7 @@
ret nz
ld hl, Func_13870
ld b, BANK(Func_13870)
- call Bankswitch ; indirect jump to Func_13870 (13870 (4:7870))
+ call Bankswitch
ret nz
asm_3ef3d: ; 3ef3d (f:6f3d)
ld a, [$d35d]
@@ -67488,7 +67488,7 @@
res 1, [hl]
ld hl, Func_525af
ld b, BANK(Func_525af)
- call Bankswitch ; indirect jump to Func_525af (525af (14:65af))
+ call Bankswitch
ld a, [W_ENEMYMONID]
sub $c8
jp c, Func_3ef8b
@@ -67496,7 +67496,7 @@
call Func_3566
ld hl, ReadTrainer
ld b, BANK(ReadTrainer)
- call Bankswitch ; indirect jump to ReadTrainer (39c53 (e:5c53))
+ call Bankswitch
call Func_3ec32
call Func_3f04b
xor a
@@ -67598,7 +67598,7 @@
call Func_3c11e
ld hl, Func_137aa
ld b, BANK(Func_137aa)
- call Bankswitch ; indirect jump to Func_137aa (137aa (4:77aa))
+ call Bankswitch
pop af
ld [$d358], a
pop af
@@ -68009,7 +68009,7 @@
Func_3f2e9: ; 3f2e9 (f:72e9)
ld hl, Func_783f
ld b, BANK(Func_783f)
- jp Bankswitch ; indirect jump to Func_783f (783f (1:783f))
+ jp Bankswitch
Func_3f2f1: ; 3f2f1 (f:72f1)
ld hl, W_PLAYERMONCURHP ; $d015
@@ -68832,7 +68832,7 @@
Func_3f884: ; 3f884 (f:7884)
ld hl, Func_33f57
ld b, BANK(Func_33f57)
- jp Bankswitch ; indirect jump to Func_33f57 (33f57 (c:7f57))
+ jp Bankswitch
Func_3f88c: ; 3f88c (f:788c)
ld hl, W_PLAYERBATTSTATUS1 ; $d062
@@ -69009,7 +69009,7 @@
Func_3f9b1: ; 3f9b1 (f:79b1)
ld hl, Func_52601
ld b, BANK(Func_52601)
- jp Bankswitch ; indirect jump to Func_52601 (52601 (14:6601))
+ jp Bankswitch
Func_3f9b9: ; 3f9b9 (f:79b9)
ld hl, SubstituteEffectHandler
@@ -69127,7 +69127,7 @@
Func_3fa7c: ; 3fa7c (f:7a7c)
ld hl, Func_2bea9
ld b, BANK(Func_2bea9)
- jp Bankswitch ; indirect jump to Func_2bea9 (2bea9 (a:7ea9))
+ jp Bankswitch
Func_3fa84: ; 3fa84 (f:7a84)
call Func_3fba8
@@ -71632,7 +71632,7 @@
ld [rOBP1], a ; $FF00+$49
ld b, BANK(Func_7176c)
ld hl, Func_7176c
- jp Bankswitch ; indirect jump to Func_7176c (7176c (1c:576c))
+ jp Bankswitch
Func_41217: ; 41217 (10:5217)
ld hl, W_PLAYERNAME
@@ -72033,7 +72033,7 @@
Func_41505: ; 41505 (10:5505)
ld b, BANK(Func_71882)
ld hl, Func_71882
- call Bankswitch ; indirect jump to Func_71882 (71882 (1c:5882))
+ call Bankswitch
call Func_41558
Func_41510: ; 41510 (10:5510)
@@ -72526,9 +72526,9 @@
Func_41849: ; 41849 (10:5849)
ld a, $33
- call Predef
+ call Predef ; indirect jump to Func_79869
ld a, b
- jp PlaySound ; indirect jump to Func_79869
+ jp PlaySound
Func_41852: ; 41852 (10:5852)
ld hl, FightIntroBackMon ; $5a99
@@ -72557,7 +72557,7 @@
call GoPAL_SET
ld b, BANK(Func_4538)
ld hl, Func_4538
- call Bankswitch ; indirect jump to Func_4538 (4538 (1:4538))
+ call Bankswitch
ld a, $e4
ld [rBGP], a ; $FF00+$47
ld c, $b4
@@ -72576,7 +72576,7 @@
call DelayFrames
ld b, BANK(Func_70044)
ld hl, Func_70044
- call Bankswitch ; indirect jump to Func_70044 (70044 (1c:4044))
+ call Bankswitch
push af
pop af
jr c, .asm_418d0
@@ -75338,7 +75338,7 @@
call Delay3
ld b, BANK(Func_7bf15)
ld hl, Func_7bf15
- call Bankswitch ; indirect jump to Func_7bf15 (7bf15 (1e:7f15))
+ call Bankswitch
ret
SilphCoElevatorTextPointers: ; 45833 (11:5833)
@@ -78205,7 +78205,7 @@
RemoveItemByIDBank12: ; 484e6 (12:44e6)
ld b, BANK(RemoveItemByID)
ld hl, RemoveItemByID
- jp Bankswitch ; indirect jump to RemoveItemByID (17f37 (5:7f37))
+ jp Bankswitch
UnnamedText_484ee: ; 484ee (12:44ee)
TX_FAR _UnnamedText_484ee
@@ -82085,11 +82085,11 @@
ld [W_ENEMYMONID], a
ld hl, Func_3eb01
ld b, BANK(Func_3eb01)
- call Bankswitch ; indirect jump to Func_3eb01 (3eb01 (f:6b01))
+ call Bankswitch
call Func_4fe11
ld hl, Func_e7a4
ld b, BANK(Func_e7a4)
- call Bankswitch ; indirect jump to Func_e7a4 (e7a4 (3:67a4))
+ call Bankswitch
ld hl, $cf4b
ld a, [$d5a0]
and $7f
@@ -83320,7 +83320,7 @@
call PlaySound
ld b, BANK(Music_RivalAlternateTempo)
ld hl, Music_RivalAlternateTempo
- call Bankswitch ; indirect jump to Music_RivalAlternateTempo (9b65 (2:5b65))
+ call Bankswitch
ld a, $2
ld [H_DOWNARROWBLINKCNT2], a ; $FF00+$8c
call Func_50ee6
@@ -83404,7 +83404,7 @@
call PlaySound
ld b, BANK(Music_RivalAlternateStartAndTempo)
ld hl, Music_RivalAlternateStartAndTempo
- call Bankswitch ; indirect jump to Music_RivalAlternateStartAndTempo (9b75 (2:5b75))
+ call Bankswitch
ld a, [$cf0d]
cp $1
jr nz, .asm_51134
@@ -84981,7 +84981,7 @@
call PlaySound
ld b, BANK(Music_RivalAlternateStart)
ld hl, Music_RivalAlternateStart
- call Bankswitch ; indirect jump to Music_RivalAlternateStart (9b47 (2:5b47))
+ call Bankswitch
ld de, MovementData_51d1d
ld a, [$cf0d]
cp $1
@@ -85882,7 +85882,7 @@
.asm_525f9
ld hl, PlayBattleMusic
ld b, BANK(PlayBattleMusic)
- jp Bankswitch ; indirect jump to PlayBattleMusic (90c6 (2:50c6))
+ jp Bankswitch
Func_52601: ; 52601 (14:6601)
ld hl, W_ENEMYMONSTATUS ; $cfe9
@@ -85914,7 +85914,7 @@
push hl
ld hl, MoveHitTest
ld b, BANK(MoveHitTest)
- call Bankswitch ; indirect jump to MoveHitTest (3e56b (f:656b))
+ call Bankswitch
pop hl
ld a, [W_MOVEMISSED] ; $d05f
and a
@@ -85922,27 +85922,27 @@
set 6, [hl]
ld hl, Func_3ed27
ld b, BANK(Func_3ed27)
- call Bankswitch ; indirect jump to Func_3ed27 (3ed27 (f:6d27))
+ call Bankswitch
ld c, $1e
call DelayFrames
ld hl, Func_3fba8
ld b, BANK(Func_3fba8)
- call Bankswitch ; indirect jump to Func_3fba8 (3fba8 (f:7ba8))
+ call Bankswitch
ld hl, Func_3fb6e
ld b, BANK(Func_3fb6e)
- jp Bankswitch ; indirect jump to Func_3fb6e (3fb6e (f:7b6e))
+ jp Bankswitch
.asm_52659
ld c, $32
call DelayFrames
ld hl, Func_3fb5e
ld b, BANK(Func_3fb5e)
- jp Bankswitch ; indirect jump to Func_3fb5e (3fb5e (f:7b5e))
+ jp Bankswitch
.asm_52666
ld c, $32
call DelayFrames
ld hl, Func_3dc51
ld b, BANK(Func_3dc51)
- jp Bankswitch ; indirect jump to Func_3dc51 (3dc51 (f:5c51))
+ jp Bankswitch
Func_52673: ; 52673 (14:6673)
ld hl, SilphCoMapList
@@ -87034,7 +87034,7 @@
ld d, $64
ld hl, CalcExperience
ld b, BANK(CalcExperience)
- call Bankswitch ; indirect jump to CalcExperience (58f6a (16:4f6a))
+ call Bankswitch
ld a, [H_NUMTOPRINT] ; $FF00+$96 (aliases: H_MULTIPLICAND)
ld b, a
ld a, [$FF00+$97]
@@ -87072,7 +87072,7 @@
push hl
ld b, BANK(Func_58f43)
ld hl, Func_58f43
- call Bankswitch ; indirect jump to Func_58f43 (58f43 (16:4f43))
+ call Bankswitch
pop hl
ld a, [hl]
cp d
@@ -87147,19 +87147,19 @@
ld [$d11e], a
ld hl, Func_3ed99
ld b, BANK(Func_3ed99)
- call Bankswitch ; indirect jump to Func_3ed99 (3ed99 (f:6d99))
+ call Bankswitch
ld hl, Func_3ed1a
ld b, BANK(Func_3ed1a)
- call Bankswitch ; indirect jump to Func_3ed1a (3ed1a (f:6d1a))
+ call Bankswitch
ld hl, Func_3ee19
ld b, BANK(Func_3ee19)
- call Bankswitch ; indirect jump to Func_3ee19 (3ee19 (f:6e19))
+ call Bankswitch
ld hl, Func_3cd60
ld b, BANK(Func_3cd60)
- call Bankswitch ; indirect jump to Func_3cd60 (3cd60 (f:4d60))
+ call Bankswitch
ld hl, Func_3ee94
ld b, BANK(Func_3ee94)
- call Bankswitch ; indirect jump to Func_3ee94 (3ee94 (f:6e94))
+ call Bankswitch
call SaveScreenTilesToBuffer1
.asm_553f7
ld hl, UnnamedText_554dd ; $54dd
@@ -87170,7 +87170,7 @@
ld d, $1
ld hl, PrintStatsBox
ld b, BANK(PrintStatsBox)
- call Bankswitch ; indirect jump to PrintStatsBox (12ae4 (4:6ae4))
+ call Bankswitch
call WaitForTextScrollButtonPress
call LoadScreenTilesFromBuffer1
xor a
@@ -91086,7 +91086,7 @@
push hl
ld hl, Func_3a849
ld b, BANK(Func_3a849)
- call Bankswitch ; indirect jump to Func_3a849 (3a849 (e:6849))
+ call Bankswitch
pop hl
call PrintText
jr asm_58e3a
@@ -91102,7 +91102,7 @@
jr z, .asm_58df5
ld hl, Func_3eb01
ld b, BANK(Func_3eb01)
- call Bankswitch ; indirect jump to Func_3eb01 (3eb01 (f:6b01))
+ call Bankswitch
jr .asm_58daa
.asm_58df5
ld hl, UnnamedText_58e45 ; $4e45
@@ -91120,10 +91120,10 @@
call PrintText
ld hl, Func_3eb01
ld b, BANK(Func_3eb01)
- call Bankswitch ; indirect jump to Func_3eb01 (3eb01 (f:6b01))
+ call Bankswitch
ld hl, Func_708ca
ld b, BANK(Func_708ca)
- call Bankswitch ; indirect jump to Func_708ca (708ca (1c:48ca))
+ call Bankswitch
ld hl, UnnamedText_58e3b ; $4e3b
call PrintText
@@ -94668,7 +94668,7 @@
jr z, .drinkLoop
ld b, BANK(RemoveItemByID)
ld hl, RemoveItemByID
- jp Bankswitch ; indirect jump to RemoveItemByID (17f37 (5:7f37))
+ jp Bankswitch
GuardDrinksList: ; 5a5b7 (16:65b7)
db FRESH_WATER, SODA_POP, LEMONADE, $00
@@ -100074,7 +100074,7 @@
ld [$FF00+$db], a
ld b, BANK(RemoveItemByID)
ld hl, RemoveItemByID
- call Bankswitch ; indirect jump to RemoveItemByID (17f37 (5:7f37))
+ call Bankswitch
ld hl, UnnamedText_610b8
call PrintText
ld hl, $d7a3
@@ -103712,7 +103712,7 @@
ld [H_WHOSETURN], a ; $FF00+$f3
ld hl, Func_79793
ld b, BANK(Func_79793)
- call Bankswitch ; indirect jump to Func_79793 (79793 (1e:5793))
+ call Bankswitch
ld d, $80
call Func_704f3
.asm_708f6
@@ -105034,7 +105034,7 @@
Func_711ef: ; 711ef (1c:51ef)
ld b, BANK(Func_e9cb)
ld hl, Func_e9cb
- call Bankswitch ; indirect jump to Func_e9cb (e9cb (3:69cb))
+ call Bankswitch
call Func_712d9
ld hl, wOAMBuffer
ld de, $cee9
@@ -106127,7 +106127,7 @@
call DelayFrames
ld b, BANK(LoadWildData)
ld hl, LoadWildData
- jp Bankswitch ; indirect jump to LoadWildData (ceb8 (3:4eb8))
+ jp Bankswitch
Func_71cc1: ; 71cc1 (1c:5cc1)
ld hl, wWhichTrade ; $cd3d
@@ -108125,7 +108125,7 @@
Func_7405c: ; 7405c (1d:405c)
ld b, BANK(Func_701a0)
ld hl, Func_701a0
- call Bankswitch ; indirect jump to Func_701a0 (701a0 (1c:41a0))
+ call Bankswitch
call ClearScreen
ld c, $64
call DelayFrames
@@ -108371,7 +108371,7 @@
push de
ld b, BANK(Func_4541)
ld hl, Func_4541
- call Bankswitch ; indirect jump to Func_4541 (4541 (1:4541))
+ call Bankswitch
pop de
pop de
jr .asm_7419b
@@ -108866,7 +108866,7 @@
.asm_74980
ld b, BANK(Func_44fd7)
ld hl, Func_44fd7
- jp Bankswitch ; indirect jump to Func_44fd7 (44fd7 (11:4fd7))
+ jp Bankswitch
ViridianGymScript3: ; 74988 (1d:4988)
ld a, [W_ISINBATTLE] ; $d057
@@ -115923,7 +115923,7 @@
call Func_79fc0
ld b, BANK(asm_f055)
ld hl, asm_f055
- call Bankswitch ; indirect jump to asm_f055 (f055 (3:7055))
+ call Bankswitch
ld c, $8
.asm_79f73
push bc