More unreferenced labels cleanup

This commit is contained in:
xCrystal
2018-01-02 16:04:21 +01:00
parent 7a24703398
commit 6f0b81504d
48 changed files with 89 additions and 130 deletions

View File

@@ -1951,8 +1951,7 @@ GetMaxHP: ; 3ccac
ret ret
; 3ccc2 ; 3ccc2
GetHalfHP: ; 3ccc2 Unreferenced_GetHalfHP: ; 3ccc2
; unreferenced
ld hl, BattleMonHP ld hl, BattleMonHP
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
@@ -6769,8 +6768,7 @@ CheckUnownLetter: ; 3eb75
; 3ebc7 ; 3ebc7
SwapBattlerLevels: ; 3ebc7 Unreferenced_SwapBattlerLevels: ; 3ebc7
; unreferenced
push bc push bc
ld a, [BattleMonLevel] ld a, [BattleMonLevel]
ld b, a ld b, a
@@ -7162,7 +7160,7 @@ _LoadHPBar: ; 3eda6
ret ret
; 3edad ; 3edad
LoadHPExpBarGFX: ; unreferenced Unreferenced_LoadHPExpBarGFX:
ld de, EnemyHPBarBorderGFX ld de, EnemyHPBarBorderGFX
ld hl, vTiles2 tile $6c ld hl, vTiles2 tile $6c
lb bc, BANK(EnemyHPBarBorderGFX), 4 lb bc, BANK(EnemyHPBarBorderGFX), 4
@@ -8104,7 +8102,7 @@ TextJump_ComeBack: ; 3f35b
db "@" db "@"
; 3f360 ; 3f360
HandleSafariAngerEatingStatus: ; unreferenced Unreferenced_HandleSafariAngerEatingStatus:
ld hl, wSafariMonEating ld hl, wSafariMonEating
ld a, [hl] ld a, [hl]
and a and a
@@ -8371,8 +8369,7 @@ StartBattle: ; 3f4c1
ret ret
; 3f4d9 ; 3f4d9
_DoBattle: ; 3f4d9 Unreferenced_DoBattle: ; 3f4d9
; unreferenced
call DoBattle call DoBattle
ret ret
; 3f4dd ; 3f4dd

View File

@@ -245,7 +245,7 @@ BillsPCDepositMenuDataHeader: ; 0xe253d (38:653d)
db "CANCEL@" db "CANCEL@"
; 0xe2564 (38:6564) ; 0xe2564 (38:6564)
BillsPC_ClearThreeBoxes: ; e2564 Unreferenced_BillsPCClearThreeBoxes: ; e2564
; unreferenced ; unreferenced
hlcoord 0, 0 hlcoord 0, 0
ld b, 4 ld b, 4

View File

@@ -268,7 +268,7 @@ CopyBoxmonToTempMon: ; e5bb
call CloseSRAM call CloseSRAM
ret ret
Functione5d9: ; unreferenced Unreferenced_Functione5d9:
ld a, [wCurBox] ld a, [wCurBox]
cp b cp b
jr z, .same_box jr z, .same_box

View File

@@ -981,8 +981,7 @@ DayCareMonCompatibilityText: ; 1746c
db "@" db "@"
; 0x174b5 ; 0x174b5
DayCareMonPrintEmptyString: ; 174b5 Unreferenced_DayCareMonPrintEmptyString: ; 174b5
; unreferenced
ld hl, .string ld hl, .string
ret ret
; 174b9 ; 174b9

View File

@@ -43,8 +43,7 @@ CheckShininess:
and a and a
ret ret
; unreferenced Unreferenced_CheckContestMon:
CheckContestMon:
; Check a mon's DVs at hl in the bug catching contest. ; Check a mon's DVs at hl in the bug catching contest.
; Return carry if its DVs are good enough to place in the contest. ; Return carry if its DVs are good enough to place in the contest.
@@ -135,8 +134,7 @@ SGB_ApplyPartyMenuHPPals: ; 8ade
ld [hl], e ld [hl], e
ret ret
Function8b07: Unreferenced_Function8b07:
; Unreferenced
call CheckCGB call CheckCGB
ret z ret z
; CGB only ; CGB only
@@ -169,8 +167,7 @@ Function8b07:
RGB 08, 16, 28 RGB 08, 16, 28
RGB 00, 00, 00 RGB 00, 00, 00
Function8b3f: Unreferenced_Function8b3f:
; Unreferenced
call CheckCGB call CheckCGB
ret nz ret nz
ld a, [hSGB] ld a, [hSGB]

View File

@@ -322,5 +322,5 @@ InitMG_Mobile_LinkTradePalMap: ; 49856
ret ret
; 4985a ; 4985a
Unknown_4985a: ; unreferenced ; unused
INCLUDE "data/palettes/unknown/4985a.asm" INCLUDE "data/palettes/unknown/4985a.asm"

View File

@@ -1060,7 +1060,7 @@ Invalid_0x96c2d: ; 96c2d
end end
; 96c2e ; 96c2e
; unreferenced ; unused
end end
; 96c2f ; 96c2f

View File

@@ -986,7 +986,7 @@ StrengthFunction: ; cce5
jr c, .Failed jr c, .Failed
jr .UseStrength jr .UseStrength
.AlreadyUsing: ; unreferenced .Unreferenced_AlreadyUsing:
ld hl, .JumpText ld hl, .JumpText
call MenuTextBoxBackup call MenuTextBoxBackup
ld a, $80 ld a, $80

View File

@@ -10,7 +10,7 @@ _MainMenu: ; 5ae8
jp StartTitleScreen jp StartTitleScreen
; 5b04 ; 5b04
; unreferenced ; unused
ret ret
; 5b05 ; 5b05
@@ -827,7 +827,7 @@ NamePlayer: ; 0x6074
db "KRIS@@@@@@@" db "KRIS@@@@@@@"
; 60e9 ; 60e9
Function60e9: ; Unreferenced Unreferenced_Function60e9:
call LoadMenuDataHeader call LoadMenuDataHeader
call VerticalMenu call VerticalMenu
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
@@ -1094,7 +1094,7 @@ RunTitleScreen: ; 627b
ret ret
; 6292 ; 6292
Function6292: ; 6292 ; unreferenced Unreferenced_Function6292: ; 6292
ld a, [hVBlankCounter] ld a, [hVBlankCounter]
and $7 and $7
ret nz ret nz
@@ -1125,7 +1125,7 @@ TitleScreenScene: ; 62a3
dw TitleScreenEnd dw TitleScreenEnd
; 62b7 ; 62b7
.NextScene: ; Unreferenced .Unreferenced_NextScene:
ld hl, wJumptableIndex ld hl, wJumptableIndex
inc [hl] inc [hl]
ret ret
@@ -1329,7 +1329,7 @@ ResetClock: ; 6392
jp Init jp Init
; 639b ; 639b
Function639b: ; unreferenced Unreferenced_Function639b:
; If bit 0 or 1 of [wTitleScreenTimer] is set, we don't need to be here. ; If bit 0 or 1 of [wTitleScreenTimer] is set, we don't need to be here.
ld a, [wTitleScreenTimer] ld a, [wTitleScreenTimer]
and $3 and $3

View File

@@ -1597,8 +1597,7 @@ Function28b22: ; 28b22
ret ret
; 28b42 ; 28b42
Function28b42: ; 28b42 Unreferenced_Function28b42: ; 28b42
; unreferenced
hlcoord 0, 16 hlcoord 0, 16
ld a, "┘" ld a, "┘"
ld bc, 2 * SCREEN_WIDTH ld bc, 2 * SCREEN_WIDTH
@@ -2020,8 +2019,7 @@ SetTradeRoomBGPals: ; 28eff
ret ret
; 28f09 ; 28f09
Function28f09: ; 28f09 Unreferenced_Function28f09: ; 28f09
; unreferenced
hlcoord 0, 0 hlcoord 0, 0
ld b, 6 ld b, 6
ld c, 18 ld c, 18
@@ -2577,12 +2575,11 @@ Special_CableClubCheckWhichChris: ; 29f47
ret ret
; 29f54 ; 29f54
UnusedGen1LinkCommsBorderGFX: ; 29f54 Unreferenced_Gen1LinkCommsBorderGFX: ; 29f54
; unreferenced
INCBIN "gfx/trade/unused_gen_1_border_tiles.2bpp" INCBIN "gfx/trade/unused_gen_1_border_tiles.2bpp"
; 29fe4 ; 29fe4
Function29fe4: ; unreferenced Unreferenced_Function29fe4:
ld a, BANK(sPartyMail) ld a, BANK(sPartyMail)
call GetSRAMBank call GetSRAMBank
ld d, $0 ld d, $0

View File

@@ -279,7 +279,7 @@ MainMenu_PrintCurrentTimeAndDay: ; 49e09
ret ret
.min .min
; unreferenced ; unused
db "min.@" db "min.@"
; 49e75 ; 49e75

View File

@@ -418,8 +418,7 @@ UpdatePlayerStep: ; 4738
ret ret
; 4759 ; 4759
Function4759: ; 4759 Unreferenced_Function4759: ; 4759
; unreferenced
push bc push bc
ld e, a ld e, a
ld d, 0 ld d, 0

View File

@@ -137,7 +137,7 @@ LoadObjectsRunCallback_02: ; 154d7
ret ret
; 154ea (5:54ea) ; 154ea (5:54ea)
; unreferenced ; unused
ret ret
; 154eb ; 154eb

View File

@@ -797,7 +797,7 @@ SellMenu: ; 15eb3
ret ret
; 15ed3 ; 15ed3
.NothingToSell: ; unreferenced .Unreferenced_NothingToSell:
ld hl, .NothingToSellText ld hl, .NothingToSellText
call MenuTextBoxBackup call MenuTextBoxBackup
and a and a

View File

@@ -291,8 +291,7 @@ MobileMenuJoypad: ; 241ba
; 241d5 ; 241d5
Function241d5: ; 241d5 Unreferenced_Function241d5: ; 241d5
; Unreferenced
call Place2DMenuCursor call Place2DMenuCursor
.loop .loop
call Move2DMenuCursor call Move2DMenuCursor
@@ -725,8 +724,7 @@ _ExitMenu:: ; 243e8
ret ret
; 24423 ; 24423
Function24423: ; 24423 Unreferenced_Function24423: ; 24423
; Unreferenced
ld a, [VramState] ld a, [VramState]
bit 0, a bit 0, a
ret z ret z

View File

@@ -112,8 +112,8 @@ CoinString: ; 24b89
ShowMoney_TerminatorString: ; 24b8e ShowMoney_TerminatorString: ; 24b8e
db "@" db "@"
Function24b8f: ; 24b8f Unreferenced_Function24b8f: ; 24b8f
; unreferenced, related to safari? ; related to safari?
ld hl, Options ld hl, Options
ld a, [hl] ld a, [hl]
push af push af

View File

@@ -281,8 +281,7 @@ FlyFunction_GetMonIcon: ; 8e9bc (23:69bc)
ret ret
; 8e9cc (23:69cc) ; 8e9cc (23:69cc)
GetMonIcon2: ; 8e9cc Unreferenced_GetMonIcon2: ; 8e9cc
; unreferenced
push de push de
ld a, [wd265] ld a, [wd265]
call ReadMonMenuIcon call ReadMonMenuIcon

View File

@@ -1369,7 +1369,7 @@ InitMysteryGiftLayout: ; 105153 (41:5153)
jr .gfx_loop jr .gfx_loop
; 105232 (41:5232) ; 105232 (41:5232)
.Load6GFX: ; unreferenced .Unreferenced_Load6GFX:
ld b, 6 ld b, 6
jr .gfx_loop jr .gfx_loop

View File

@@ -279,7 +279,7 @@ WillObjectBumpIntoSomeoneElse: ; 7009
jr IsNPCAtCoord jr IsNPCAtCoord
; 7015 ; 7015
Function7015: ; unreferenced Unreferenced_Function7015:
ld a, [hMapObjectIndexBuffer] ld a, [hMapObjectIndexBuffer]
call GetObjectStruct call GetObjectStruct
call .CheckWillBeFacingNPC call .CheckWillBeFacingNPC
@@ -482,7 +482,7 @@ IsObjectMovingOffEdgeOfScreen: ; 70ed
ret ret
; 7113 ; 7113
Function7113: ; unreferenced Unreferenced_Function7113:
ld a, [PlayerStandingMapX] ld a, [PlayerStandingMapX]
ld d, a ld d, a
ld a, [PlayerStandingMapY] ld a, [PlayerStandingMapY]

View File

@@ -332,8 +332,7 @@ CopyTradeName: ; fcdf4
ret ret
; fcdfb ; fcdfb
Functionfcdfb: ; fcdfb Unreferenced_Functionfcdfb: ; fcdfb
; unreferenced
ld bc, 4 ld bc, 4
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"
@@ -341,8 +340,7 @@ Functionfcdfb: ; fcdfb
ret ret
; fce05 ; fce05
Functionfce05: ; fce05 Unreferenced_Functionfce05: ; fce05
; unreferenced
ld bc, 3 ld bc, 3
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"

Some files were not shown because too many files have changed in this diff Show More