Replace "Unreferenced" labels with "; unreferenced" comments

This commit is contained in:
Rangi
2020-06-21 16:27:43 -04:00
parent 98af69691d
commit 91774f206e
90 changed files with 212 additions and 250 deletions

View File

@ -1,7 +1,7 @@
; This was a table of Pokémon sprite banks in the 1997 G/S prototype. ; This was a table of Pokémon sprite banks in the 1997 G/S prototype.
; See pokegold-spaceworld's gfx/pokemon/pkmn_pic_banks.asm. ; See pokegold-spaceworld's gfx/pokemon/pkmn_pic_banks.asm.
Unreferenced_MonPicBanks: BetaMonPicBanks: ; unreferenced
; last mon in bank, bank # ; last mon in bank, bank #
db RAICHU, $15 + 0 db RAICHU, $15 + 0
db DUGTRIO, $15 + 1 db DUGTRIO, $15 + 1

View File

@ -1,4 +1,4 @@
UnreferencedDakutens: Dakutens: ; unreferenced
db "かが", "きぎ", "くぐ", "けげ", "こご" db "かが", "きぎ", "くぐ", "けげ", "こご"
db "さざ", "しじ", "すず", "せぜ", "そぞ" db "さざ", "しじ", "すず", "せぜ", "そぞ"
db "ただ", "ちぢ", "つづ", "てで", "とど" db "ただ", "ちぢ", "つづ", "てで", "とど"
@ -9,7 +9,7 @@ UnreferencedDakutens:
db "ハバ", "ヒビ", "フブ", "へべ", "ホボ" db "ハバ", "ヒビ", "フブ", "へべ", "ホボ"
db -1 ; end db -1 ; end
UnreferencedHandakutens: Handakutens: ; unreferenced
db "はぱ", "ひぴ", "ふぷ", "へぺ", "ほぽ" db "はぱ", "ひぴ", "ふぷ", "へぺ", "ほぽ"
db "ハパ", "ヒピ", "フプ", "へぺ", "ホポ" db "ハパ", "ヒピ", "フプ", "へぺ", "ホポ"
db -1 ; end db -1 ; end

View File

@ -826,7 +826,7 @@ ENDM
jr nz, .row jr nz, .row
ret ret
Unreferenced_Function8c7c9: Function8c7c9: ; unreferenced
ld a, 1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call WaitBGMap call WaitBGMap

View File

@ -1899,7 +1899,7 @@ GetMaxHP:
ld c, a ld c, a
ret ret
Unreferenced_GetHalfHP: GetHalfHP: ; unreferenced
ld hl, wBattleMonHP ld hl, wBattleMonHP
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
@ -6488,7 +6488,7 @@ CheckUnownLetter:
INCLUDE "data/wild/unlocked_unowns.asm" INCLUDE "data/wild/unlocked_unowns.asm"
Unreferenced_SwapBattlerLevels: SwapBattlerLevels: ; unreferenced
push bc push bc
ld a, [wBattleMonLevel] ld a, [wBattleMonLevel]
ld b, a ld b, a
@ -6852,7 +6852,7 @@ _LoadHPBar:
callfar LoadHPBar callfar LoadHPBar
ret ret
Unreferenced_LoadHPExpBarGFX: LoadHPExpBarGFX: ; unreferenced
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
@ -7763,7 +7763,7 @@ GoodComeBackText:
text_far _GoodComeBackText text_far _GoodComeBackText
text_end text_end
Unreferenced_TextJump_ComeBack: TextJump_ComeBack: ; unreferenced
ld hl, ComeBackText ld hl, ComeBackText
ret ret
@ -7771,7 +7771,7 @@ ComeBackText:
text_far _ComeBackText text_far _ComeBackText
text_end text_end
Unreferenced_HandleSafariAngerEatingStatus: HandleSafariAngerEatingStatus: ; unreferenced
ld hl, wSafariMonEating ld hl, wSafariMonEating
ld a, [hl] ld a, [hl]
and a and a
@ -8028,7 +8028,7 @@ StartBattle:
scf scf
ret ret
Unreferenced_DoBattle: CallDoBattle: ; unreferenced
call DoBattle call DoBattle
ret ret
@ -8201,7 +8201,7 @@ InitEnemyWildmon:
predef PlaceGraphic predef PlaceGraphic
ret ret
Unreferenced_Function3f662: Function3f662: ; unreferenced
ld hl, wEnemyMonMoves ld hl, wEnemyMonMoves
ld de, wListMoves_MoveIndicesBuffer ld de, wListMoves_MoveIndicesBuffer
ld b, NUM_MOVES ld b, NUM_MOVES

View File

@ -1,4 +1,4 @@
Unreferenced_GetGen1TrainerClassName: GetGen1TrainerClassName: ; unreferenced
ld hl, Gen1TrainerClassNames ld hl, Gen1TrainerClassNames
ld a, [wTrainerClass] ld a, [wTrainerClass]
dec a dec a

View File

@ -380,7 +380,7 @@ CopyTrainerName:
pop de pop de
ret ret
Unreferenced_Function39990: Function39990: ; unreferenced
ld de, wStringBuffer1 ld de, wStringBuffer1
push de push de
ld bc, NAME_LENGTH ld bc, NAME_LENGTH

View File

@ -216,7 +216,7 @@ ClearActorHud:
call ClearBox call ClearBox
ret ret
Unreferenced_Functioncc220: Functioncc220: ; unreferenced
xor a xor a
ldh [hBGMapMode], a ldh [hBGMapMode], a
ld a, LOW(vBGMap0 tile $28) ld a, LOW(vBGMap0 tile $28)

View File

@ -581,7 +581,7 @@ CopyBTTrainer_FromBT_OT_TowBT_OTTemp:
SkipBattleTowerTrainer: SkipBattleTowerTrainer:
ret ret
Unreferenced_Function1704ca: Function1704ca: ; unreferenced
ld a, [s5_be46] ld a, [s5_be46]
cp BATTLETOWER_STREAK_LENGTH cp BATTLETOWER_STREAK_LENGTH
jr c, .not_max jr c, .not_max

View File

@ -312,14 +312,14 @@ CopyTradeName:
call CopyBytes call CopyBytes
ret ret
Unreferenced_Functionfcdfb: Functionfcdfb: ; unreferenced
ld bc, 4 ld bc, 4
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"
ld [de], a ld [de], a
ret ret
Unreferenced_Functionfce05: Functionfce05: ; unreferenced
ld bc, 3 ld bc, 3
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"

View File

@ -971,7 +971,7 @@ StrengthFunction:
jr c, .Failed jr c, .Failed
jr .UseStrength jr .UseStrength
.Unreferenced_AlreadyUsing: .AlreadyUsingStrength: ; unreferenced
ld hl, .AlreadyUsingStrengthText ld hl, .AlreadyUsingStrengthText
call MenuTextboxBackup call MenuTextboxBackup
ld a, $80 ld a, $80

View File

@ -230,7 +230,7 @@ SlotsLoop:
call PrintNum call PrintNum
ret ret
Unreferenced_Function92811: Function92811: ; unreferenced
; debug function? ; debug function?
ld a, [wSlotBias] ld a, [wSlotBias]
add 0 add 0
@ -248,7 +248,7 @@ Unreferenced_Function92811:
ld [hl], a ld [hl], a
ret ret
Unreferenced_Function9282c: Function9282c: ; unreferenced
; animate OAM tiles? ; animate OAM tiles?
ld hl, wcf66 ld hl, wcf66
ld a, [hl] ld a, [hl]
@ -845,7 +845,7 @@ Slots_UpdateReelPositionAndOAM:
jr nz, .loop jr nz, .loop
ret ret
Unreferenced_Function92bbe: Function92bbe: ; unreferenced
push hl push hl
srl a srl a
srl a srl a

View File

@ -980,7 +980,7 @@ _CGB_MysteryGift:
.MysteryGiftPalettes: .MysteryGiftPalettes:
INCLUDE "gfx/mystery_gift/mystery_gift.pal" INCLUDE "gfx/mystery_gift/mystery_gift.pal"
Unreferenced_GS_CGB_MysteryGift: GS_CGB_MysteryGift: ; unreferenced
ld hl, .MysteryGiftPalette ld hl, .MysteryGiftPalette
ld de, wBGPals1 ld de, wBGPals1
ld bc, 1 palettes ld bc, 1 palettes

View File

@ -76,7 +76,7 @@ Unused_CheckShininess:
and a and a
ret ret
Unreferenced_SGB_ApplyCreditsPals: SGB_ApplyCreditsPals: ; unreferenced
push de push de
push bc push bc
ld hl, PalPacket_9ce6 ld hl, PalPacket_9ce6
@ -133,7 +133,7 @@ SGB_ApplyPartyMenuHPPals:
ld [hl], e ld [hl], e
ret ret
Unreferenced_Function8b07: Function8b07: ; unreferenced
call CheckCGB call CheckCGB
ret z ret z
; CGB only ; CGB only
@ -166,7 +166,7 @@ Unreferenced_Function8b07:
RGB 08, 16, 28 RGB 08, 16, 28
RGB 00, 00, 00 RGB 00, 00, 00
Unreferenced_Function8b3f: Function8b3f: ; unreferenced
call CheckCGB call CheckCGB
ret nz ret nz
ldh a, [hSGB] ldh a, [hSGB]
@ -175,7 +175,7 @@ Unreferenced_Function8b3f:
ld hl, BlkPacket_9a86 ld hl, BlkPacket_9a86
jp PushSGBPals jp PushSGBPals
Unreferenced_Function8b4d: Function8b4d: ; unreferenced
call CheckCGB call CheckCGB
jr nz, .cgb jr nz, .cgb
ldh a, [hSGB] ldh a, [hSGB]
@ -190,7 +190,7 @@ Unreferenced_Function8b4d:
call GetPredefPal call GetPredefPal
jp LoadHLPaletteIntoDE jp LoadHLPaletteIntoDE
Unreferenced_Function8b67: Function8b67: ; unreferenced
call CheckCGB call CheckCGB
jr nz, .cgb jr nz, .cgb
ldh a, [hSGB] ldh a, [hSGB]
@ -205,7 +205,7 @@ Unreferenced_Function8b67:
call GetPredefPal call GetPredefPal
jp LoadHLPaletteIntoDE jp LoadHLPaletteIntoDE
Unreferenced_GSIntro_LoadMonPalette: GSIntro_LoadMonPalette: ; unreferenced
call CheckCGB call CheckCGB
jr nz, .cgb jr nz, .cgb
ldh a, [hSGB] ldh a, [hSGB]
@ -273,7 +273,7 @@ LoadNthMiddleBGPal:
call LoadPalette_White_Col1_Col2_Black call LoadPalette_White_Col1_Col2_Black
ret ret
Unreferenced_Function8bec: Function8bec: ; unreferenced
ldh a, [hCGB] ldh a, [hCGB]
and a and a
jr nz, .cgb jr nz, .cgb
@ -719,7 +719,7 @@ GetMonPalettePointer:
call _GetMonPalettePointer call _GetMonPalettePointer
ret ret
Unreferenced_Function9779: Function9779: ; unreferenced
ret ret
call CheckCGB call CheckCGB
ret z ret z
@ -742,7 +742,7 @@ Unreferenced_Function9779:
BattleObjectPals: BattleObjectPals:
INCLUDE "gfx/battle_anims/battle_anims.pal" INCLUDE "gfx/battle_anims/battle_anims.pal"
Unreferenced_Function97cc: Function97cc: ; unreferenced
call CheckCGB call CheckCGB
ret z ret z
ld a, $90 ld a, $90
@ -952,7 +952,7 @@ _InitSGBBorderPals:
dw DataSndPacket7 dw DataSndPacket7
dw DataSndPacket8 dw DataSndPacket8
Unreferenced_Function9911: Function9911: ; unreferenced
di di
xor a xor a
ldh [rJOYP], a ldh [rJOYP], a

View File

@ -108,11 +108,11 @@ Mobile_ReloadMapPart:
ret ret
; unused Function1040d4: ; unreferenced
ld hl, .unreferenced_1040da ld hl, .Function
jp CallInSafeGFXMode jp CallInSafeGFXMode
.unreferenced_1040da .Function
ld a, $1 ld a, $1
ldh [rVBK], a ldh [rVBK], a
ld a, BANK(w3_d800) ld a, BANK(w3_d800)
@ -131,11 +131,11 @@ Mobile_ReloadMapPart:
call WaitDMATransfer call WaitDMATransfer
ret ret
; unused Function1040fb: ; unreferenced
ld hl, .unreferenced_104101 ld hl, .Function
jp CallInSafeGFXMode jp CallInSafeGFXMode
.unreferenced_104101 .Function
ld a, $1 ld a, $1
ldh [rVBK], a ldh [rVBK], a
ld a, BANK(w3_d800) ld a, BANK(w3_d800)

View File

@ -1,16 +1,16 @@
INCLUDE "gfx/font.asm" INCLUDE "gfx/font.asm"
Unused_EnableHDMA: EnableHDMAForGraphics:
db FALSE db FALSE
Unreferenced_Get1bppOptionalHDMA: Get1bppOptionalHDMA: ; unreferenced
ld a, [Unused_EnableHDMA] ld a, [EnableHDMAForGraphics]
and a and a
jp nz, Get1bppViaHDMA jp nz, Get1bppViaHDMA
jp Get1bpp jp Get1bpp
Unreferenced_Get2bppOptionalHDMA: Get2bppOptionalHDMA: ; unreferenced
ld a, [Unused_EnableHDMA] ld a, [EnableHDMAForGraphics]
and a and a
jp nz, Get2bppViaHDMA jp nz, Get2bppViaHDMA
jp Get2bpp jp Get2bpp

View File

@ -287,7 +287,7 @@ EXPORT PICS_FIX
db BANK("Pics 23") ; BANK("Pics 1") + 22 db BANK("Pics 23") ; BANK("Pics 1") + 22
db BANK("Pics 24") ; BANK("Pics 1") + 23 db BANK("Pics 24") ; BANK("Pics 1") + 23
Unreferenced_GSIntro_GetMonFrontpic: GSIntro_GetMonFrontpic: ; unreferenced
ld a, c ld a, c
push de push de
ld hl, PokemonPicPointers ld hl, PokemonPicPointers

View File

@ -273,7 +273,7 @@ FlyFunction_GetMonIcon:
call GetIcon_a call GetIcon_a
ret ret
Unreferenced_GetMonIcon2: GetMonIconDE: ; unreferenced
push de push de
ld a, [wTempIconSpecies] ld a, [wTempIconSpecies]
call ReadMonMenuIcon call ReadMonMenuIcon

View File

@ -1,4 +1,4 @@
Unreferenced_Function88248: Function88248: ; unreferenced
ld c, CAL ld c, CAL
ld a, [wPlayerGender] ld a, [wPlayerGender]
bit PLAYERGENDER_FEMALE_F, a bit PLAYERGENDER_FEMALE_F, a
@ -72,7 +72,7 @@ ShowPlayerNamingChoices:
INCLUDE "data/player_names.asm" INCLUDE "data/player_names.asm"
Unreferenced_GetPlayerNameArray: GetPlayerNameArray: ; unreferenced
ld hl, wPlayerName ld hl, wPlayerName
ld de, MalePlayerNameArray ld de, MalePlayerNameArray
ld a, [wPlayerGender] ld a, [wPlayerGender]

View File

@ -508,7 +508,7 @@ GetFrameOAMPointer:
add hl, de add hl, de
ret ret
Unreferenced_BrokenGetStdGraphics: BrokenGetStdGraphics: ; unreferenced
push hl push hl
ld l, a ld l, a
ld h, 0 ld h, 0

View File

@ -722,7 +722,7 @@ SellMenu:
and a and a
ret ret
.Unreferenced_NothingToSell: .NothingToSell: ; unreferenced
ld hl, .NothingToSellText ld hl, .NothingToSellText
call MenuTextboxBackup call MenuTextboxBackup
and a and a

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