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

View File

@ -499,7 +499,7 @@ TossMenu:
.finish .finish
ret ret
Unreferenced_ResetPocketCursorPositions: ResetPocketCursorPositions: ; unreferenced
ld a, [wCurPocket] ld a, [wCurPocket]
and a ; ITEM_POCKET and a ; ITEM_POCKET
jr z, .items jr z, .items
@ -1434,7 +1434,7 @@ Pack_GetItemName:
call CopyName1 call CopyName1
ret ret
Unreferenced_Pack_ClearTilemap: Pack_ClearTilemap: ; unreferenced
hlcoord 0, 0 hlcoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
ld a, " " ld a, " "

View File

@ -436,7 +436,7 @@ TMHMPocket_GetCurrentLineCoord:
jr nz, .loop jr nz, .loop
ret ret
Unreferenced_Function2ca95: Function2ca95: ; unreferenced
pop hl pop hl
ld bc, 3 ld bc, 3
add hl, bc add hl, bc
@ -484,7 +484,7 @@ TMHM_PlaySFX_ReadText2:
pop de pop de
ret ret
Unreferenced_Function2cadf: Function2cadf: ; unreferenced
call ConvertCurItemIntoCurTMHM call ConvertCurItemIntoCurTMHM
call .CheckHaveRoomForTMHM call .CheckHaveRoomForTMHM
ld hl, .NoRoomTMHMText ld hl, .NoRoomTMHMText

View File

@ -1561,7 +1561,7 @@ Function28b22:
ldh [rSC], a ldh [rSC], a
ret ret
Unreferenced_Function28b42: Function28b42: ; unreferenced
hlcoord 0, 16 hlcoord 0, 16
ld a, "┘" ld a, "┘"
ld bc, 2 * SCREEN_WIDTH ld bc, 2 * SCREEN_WIDTH
@ -1971,7 +1971,7 @@ SetTradeRoomBGPals:
call SetPalettes call SetPalettes
ret ret
Unreferenced_Function28f09: Function28f09: ; unreferenced
hlcoord 0, 0 hlcoord 0, 0
ld b, 6 ld b, 6
ld c, 18 ld c, 18
@ -2503,10 +2503,10 @@ CableClubCheckWhichChris:
ld [wScriptVar], a ld [wScriptVar], a
ret ret
Unreferenced_GSLinkCommsBorderGFX: GSLinkCommsBorderGFX: ; unreferenced
INCBIN "gfx/trade/unused_gs_border_tiles.2bpp" INCBIN "gfx/trade/unused_gs_border_tiles.2bpp"
Unreferenced_Function29fe4: Function29fe4: ; unreferenced
ld a, BANK(sPartyMail) ld a, BANK(sPartyMail)
call OpenSRAM call OpenSRAM
ld d, FALSE ld d, FALSE

View File

@ -1350,7 +1350,7 @@ InitMysteryGiftLayout:
ld b, 5 ld b, 5
jr .gfx_loop jr .gfx_loop
.Unreferenced_Load6GFX: .Load6GFX: ; unreferenced
ld b, 6 ld b, 6
jr .gfx_loop jr .gfx_loop

View File

@ -781,7 +781,7 @@ NamePlayer:
.Kris: .Kris:
db "KRIS@@@@@@@" db "KRIS@@@@@@@"
Unreferenced_GSShowPlayerNamingChoices: GSShowPlayerNamingChoices: ; unreferenced
call LoadMenuHeader call LoadMenuHeader
call VerticalMenu call VerticalMenu
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
@ -1033,7 +1033,7 @@ RunTitleScreen:
scf scf
ret ret
Unreferenced_Function6292: Function6292: ; unreferenced
ldh a, [hVBlankCounter] ldh a, [hVBlankCounter]
and $7 and $7
ret nz ret nz
@ -1061,7 +1061,7 @@ TitleScreenScene:
dw TitleScreenMain dw TitleScreenMain
dw TitleScreenEnd dw TitleScreenEnd
.Unreferenced_NextScene: TitleScreenNextScene: ; unreferenced
ld hl, wJumptableIndex ld hl, wJumptableIndex
inc [hl] inc [hl]
ret ret
@ -1252,7 +1252,7 @@ ResetClock:
farcall _ResetClock farcall _ResetClock
jp Init jp Init
Unreferenced_Function639b: Function639b: ; unreferenced
; 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 %00000011 and %00000011

View File

@ -272,7 +272,7 @@ MobileMenuJoypad:
ld c, a ld c, a
ret ret
Unreferenced_Function241d5: Function241d5: ; unreferenced
call Place2DMenuCursor call Place2DMenuCursor
.loop .loop
call Move2DMenuCursor call Move2DMenuCursor
@ -690,7 +690,7 @@ _ExitMenu::
dec [hl] dec [hl]
ret ret
Unreferenced_Function24423: Function24423: ; unreferenced
ld a, [wVramState] ld a, [wVramState]
bit 0, a bit 0, a
ret z ret z

View File

@ -110,7 +110,7 @@ CoinString:
ShowMoney_TerminatorString: ShowMoney_TerminatorString:
db "@" db "@"
Unreferenced_StartMenu_PrintSafariGameStatus: StartMenu_PrintSafariGameStatus: ; unreferenced
ld hl, wOptions ld hl, wOptions
ld a, [hl] ld a, [hl]
push af push af

View File

@ -698,7 +698,7 @@ NamingScreen_AdvanceCursor_CheckEndOfString:
scf scf
ret ret
Unreferenced_AddDakutenToCharacter: AddDakutenToCharacter: ; unreferenced
ld a, [wNamingScreenCurNameLength] ld a, [wNamingScreenCurNameLength]
and a and a
ret z ret z
@ -975,7 +975,7 @@ INCBIN "gfx/icons/mail_big.2bpp"
ld [wNamingScreenMaxNameLength], a ld [wNamingScreenMaxNameLength], a
ret ret
.Unreferenced_PleaseWriteAMailString: .PleaseWriteAMailString: ; unreferenced
db "メールを かいてね@" db "メールを かいてね@"
.InitCharset: .InitCharset:

View File

@ -18,7 +18,7 @@ SaveMenu:
.refused .refused
call ExitMenu call ExitMenu
call ret_d90 call GSReloadPalettes
farcall SaveMenu_CopyTilemapAtOnce farcall SaveMenu_CopyTilemapAtOnce
scf scf
ret ret
@ -205,7 +205,7 @@ SaveTheGame_yesorno:
dec a dec a
call CloseWindow call CloseWindow
push af push af
call ret_d90 call GSReloadPalettes
pop af pop af
and a and a
ret ret
@ -390,7 +390,7 @@ EraseHallOfFame:
call ByteFill call ByteFill
jp CloseSRAM jp CloseSRAM
Unreferenced_Function14d18: Function14d18: ; unreferenced
ld a, BANK(s4_a007) ld a, BANK(s4_a007)
call OpenSRAM call OpenSRAM
ld hl, .Data ld hl, .Data
@ -421,7 +421,7 @@ SaveData:
call _SaveData call _SaveData
ret ret
Unreferenced_Function14d6c: Function14d6c: ; unreferenced
ld a, BANK(s4_a60b) ; MBC30 bank used by JP Crystal; inaccessible by MBC3 ld a, BANK(s4_a60b) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
call OpenSRAM call OpenSRAM
ld a, [s4_a60b] ; address of MBC30 bank ld a, [s4_a60b] ; address of MBC30 bank
@ -436,7 +436,7 @@ Unreferenced_Function14d6c:
call CloseSRAM call CloseSRAM
ret ret
Unreferenced_Function14d83: Function14d83: ; unreferenced
ld a, BANK(s4_a60c) ; aka BANK(s4_a60d) ; MBC30 bank used by JP Crystal; inaccessible by MBC3 ld a, BANK(s4_a60c) ; aka BANK(s4_a60d) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
call OpenSRAM call OpenSRAM
xor a xor a
@ -445,7 +445,7 @@ Unreferenced_Function14d83:
call CloseSRAM call CloseSRAM
ret ret
Unreferenced_Function14d93: Function14d93: ; unreferenced
ld a, BANK(s7_a000) ; MBC30 bank used by JP Crystal; inaccessible by MBC3 ld a, BANK(s7_a000) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
call OpenSRAM call OpenSRAM
xor a xor a

View File

@ -78,7 +78,7 @@ ScrollingMenuJoyAction:
jp nz, .d_down jp nz, .d_down
jr .loop jr .loop
.unreferenced ; unused .no_zero_no_carry ; unreferenced
ld a, -1 ld a, -1
and a and a
ret ret

View File

@ -151,7 +151,7 @@ StartMenu::
call DrawVariableLengthMenuBox call DrawVariableLengthMenuBox
call .DrawBugContestStatus call .DrawBugContestStatus
call UpdateSprites call UpdateSprites
call ret_d90 call GSReloadPalettes
call FinishExitMenu call FinishExitMenu
ret ret

View File

@ -128,7 +128,7 @@ TrainerCard_Page1_Joypad:
ld [wJumptableIndex], a ld [wJumptableIndex], a
ret ret
.Unreferenced_KantoCheck: .KantoBadgeCheck: ; unreferenced
ld a, [wKantoBadges] ld a, [wKantoBadges]
and a and a
ret z ret z
@ -171,7 +171,7 @@ TrainerCard_Page2_Joypad:
ld [wJumptableIndex], a ld [wJumptableIndex], a
ret ret
.Unreferenced_KantoCheck: .KantoBadgeCheck: ; unreferenced
ld a, [wKantoBadges] ld a, [wKantoBadges]
and a and a
ret z ret z

View File

@ -1400,9 +1400,8 @@ TradeAnim_WaitAnim2:
call TradeAnim_AdvanceScriptPointer call TradeAnim_AdvanceScriptPointer
ret ret
Unreferenced_DebugTrade: DebugTrade: ; unreferenced
; This function is not referenced. ; This function was meant for use in Japanese versions, so the
; It was meant for use in Japanese versions, so the
; constant used for copy length was changed by accident. ; constant used for copy length was changed by accident.
ld hl, .DebugTradeData ld hl, .DebugTradeData

View File

@ -33,7 +33,7 @@ HandleCmdQueue::
jr nz, .loop jr nz, .loop
ret ret
Unreferenced_GetNthCmdQueueEntry: GetNthCmdQueueEntry: ; unreferenced
ld hl, wCmdQueue ld hl, wCmdQueue
ld bc, CMDQUEUE_ENTRY_SIZE ld bc, CMDQUEUE_ENTRY_SIZE
call AddNTimes call AddNTimes
@ -158,7 +158,7 @@ CmdQueue_Null:
ret ret
CmdQueue_Type1: CmdQueue_Type1:
call ret_2f3e call Function2f3e
ret ret
CmdQueue_Type4: CmdQueue_Type4:

View File

@ -399,7 +399,7 @@ SetMinTwoStepWildEncounterCooldown:
Dummy_CheckScriptFlags3Bit5: Dummy_CheckScriptFlags3Bit5:
call CheckBit5_ScriptFlags3 call CheckBit5_ScriptFlags3
ret z ret z
call ret_2f3e call Function2f3e
ret ret
RunSceneScript: RunSceneScript:
@ -928,8 +928,7 @@ CountStep:
scf scf
ret ret
; unused .whiteout ; unreferenced
.unreferenced
ld a, PLAYEREVENT_WHITEOUT ld a, PLAYEREVENT_WHITEOUT
scf scf
ret ret

View File

@ -402,7 +402,7 @@ UpdatePlayerStep:
set PLAYERSTEP_CONTINUE_F, [hl] set PLAYERSTEP_CONTINUE_F, [hl]
ret ret
Unreferenced_Function4759: Function4759: ; unreferenced
push bc push bc
ld e, a ld e, a
ld d, 0 ld d, 0

View File

@ -113,12 +113,12 @@ EnableTextAcceleration:
ret ret
ActivateMapAnims: ActivateMapAnims:
ld a, $1 ld a, TRUE
ldh [hMapAnims], a ldh [hMapAnims], a
ret ret
SuspendMapAnims: SuspendMapAnims:
xor a xor a ; FALSE
ldh [hMapAnims], a ldh [hMapAnims], a
ret ret

View File

@ -274,7 +274,7 @@ WillObjectBumpIntoSomeoneElse:
ld e, [hl] ld e, [hl]
jr IsNPCAtCoord jr IsNPCAtCoord
Unreferenced_Function7015: Function7015: ; unreferenced
ldh a, [hMapObjectIndexBuffer] ldh a, [hMapObjectIndexBuffer]
call GetObjectStruct call GetObjectStruct
call .CheckWillBeFacingNPC call .CheckWillBeFacingNPC
@ -473,7 +473,7 @@ IsObjectMovingOffEdgeOfScreen:
scf scf
ret ret
Unreferenced_Function7113: Function7113: ; unreferenced
ld a, [wPlayerStandingMapX] ld a, [wPlayerStandingMapX]
ld d, a ld d, a
ld a, [wPlayerStandingMapY] ld a, [wPlayerStandingMapY]

View File

@ -214,8 +214,7 @@ DisplayDexEntry:
call FarString call FarString
ret ret
UnreferencedPOKeString: POKeString: ; unreferenced
; unused
db "#@" db "#@"
GetDexEntryPointer: GetDexEntryPointer:

View File

@ -1693,7 +1693,7 @@ LoadStation_EvolutionRadio:
ld de, UnownStationName ld de, UnownStationName
ret ret
Unreferenced_LoadStation: DummyLoadStation: ; unreferenced
ret ret
RadioMusicRestartDE: RadioMusicRestartDE:
@ -2813,7 +2813,7 @@ INCBIN "gfx/pokegear/dexmap_nest_icon.2bpp"
FlyMapLabelBorderGFX: FlyMapLabelBorderGFX:
INCBIN "gfx/pokegear/flymap_label_border.1bpp" INCBIN "gfx/pokegear/flymap_label_border.1bpp"
Unreferenced_Function92311: Function92311:
xor a xor a
ld [wTownMapPlayerIconLandmark], a ld [wTownMapPlayerIconLandmark], a
call ClearBGPalettes call ClearBGPalettes

View File

@ -239,7 +239,7 @@ BillsPCDepositMenuHeader:
db "RELEASE@" db "RELEASE@"
db "CANCEL@" db "CANCEL@"
Unreferenced_BillsPCClearThreeBoxes: BillsPCClearThreeBoxes: ; unreferenced
hlcoord 0, 0 hlcoord 0, 0
ld b, 4 ld b, 4
ld c, 8 ld c, 8
@ -1540,7 +1540,7 @@ endr
dbsprite 19, 4, 0, 7, $07, 0 dbsprite 19, 4, 0, 7, $07, 0
db -1 db -1
Unreferenced_BillsPC_FillBox: BillsPC_FillBox: ; unreferenced
.row .row
push bc push bc
push hl push hl

View File

@ -139,7 +139,7 @@ BillsPC_DepositMenu:
and a and a
ret ret
Unreferenced_Functione512: Functione512: ; unreferenced
ld a, [wPartyCount] ld a, [wPartyCount]
and a and a
jr z, .no_mon jr z, .no_mon
@ -206,7 +206,7 @@ BillsPC_WithdrawMenu:
and a and a
ret ret
Unreferenced_Functione56d: Functione56d: ; unreferenced
ld a, [wPartyCount] ld a, [wPartyCount]
cp PARTY_LENGTH cp PARTY_LENGTH
jr nc, .party_full jr nc, .party_full
@ -261,7 +261,7 @@ CopyBoxmonToTempMon:
call CloseSRAM call CloseSRAM
ret ret
Unreferenced_LoadBoxMonListing: LoadBoxMonListing: ; unreferenced
ld a, [wCurBox] ld a, [wCurBox]
cp b cp b
jr z, .same_box jr z, .same_box

View File

@ -943,7 +943,7 @@ DayCareMonCompatibilityText:
text_far _BreedShowsInterestText text_far _BreedShowsInterestText
text_end text_end
Unreferenced_DayCareMonPrintEmptyString: DayCareMonPrintEmptyString: ; unreferenced
ld hl, .string ld hl, .string
ret ret

View File

@ -1,4 +1,4 @@
Unreferenced_CorrectPartyErrors: CorrectPartyErrors: ; unreferenced
ld hl, wPartyCount ld hl, wPartyCount
ld a, [hl] ld a, [hl]
and a and a

View File

@ -709,7 +709,7 @@ MailGFX_PlaceMessage:
.place_author .place_author
jp PlaceString jp PlaceString
Unreferenced_Functionb984e: Functionb984e: ; unreferenced
.loop .loop
ld a, [hl] ld a, [hl]
xor $ff xor $ff

View File

@ -626,7 +626,7 @@ MonMenu_Fly:
ld a, $0 ld a, $0
ret ret
.Unreferenced: .NoReload: ; unreferenced
ld a, $1 ld a, $1
ret ret

View File

@ -323,7 +323,7 @@ ListMovePP:
jr nz, .load_loop jr nz, .load_loop
ret ret
Unreferenced_Function50cd0: Function50cd0: ; unreferenced
.loop .loop
ld [hl], $32 ; typo for P? ld [hl], $32 ; typo for P?
inc hl inc hl

View File

@ -446,7 +446,7 @@ StatsScreen_InitUpperHalf:
dw sBoxMonNicknames dw sBoxMonNicknames
dw wBufferMonNick dw wBufferMonNick
Unreferenced_Function4df7f: Function4df7f: ; unreferenced
hlcoord 7, 0 hlcoord 7, 0
ld bc, SCREEN_WIDTH ld bc, SCREEN_WIDTH
ld d, SCREEN_HEIGHT ld d, SCREEN_HEIGHT
@ -944,7 +944,7 @@ StatsScreen_LoadTextboxSpaceGFX:
pop hl pop hl
ret ret
Unreferenced_StatsScreenSpaceGFX: StatsScreenSpaceGFX: ; unreferenced
INCBIN "gfx/font/space.2bpp" INCBIN "gfx/font/space.2bpp"
EggStatsScreen: EggStatsScreen:

View File

@ -575,7 +575,7 @@ PlacePrinterStatusString:
ld [wPrinterStatus], a ld [wPrinterStatus], a
ret ret
Unreferenced_Function847bd: Function847bd: ; unreferenced
ld a, [wPrinterStatus] ld a, [wPrinterStatus]
and a and a
ret z ret z

View File

@ -1,4 +1,4 @@
Unreferenced_Function1dd6a9: Function1dd6a9: ; unreferenced
ld a, b ld a, b
ld b, c ld b, c
ld c, a ld c, a

View File

@ -206,8 +206,7 @@ RestartClock:
ld [wBuffer2], a ld [wBuffer2], a
ret ret
.unreferenced .UnusedPlaceCharsFragment: ; unreferenced
; unused
ld a, [wBuffer3] ld a, [wBuffer3]
ld b, a ld b, a
call Coord2Tile call Coord2Tile
@ -227,10 +226,8 @@ RestartClock:
ld [hl], e ld [hl], e
ret ret
UnreferencedString_HourJP: JPHourString: ; unreferenced
; unused
db "じ@" ; HR db "じ@" ; HR
UnreferencedString_MinuteJP: JPMinuteString: ; unreferenced
; unused
db "ふん@" ; MIN db "ふん@" ; MIN

View File

@ -1,4 +1,4 @@
Unreferenced_StopRTC: StopRTC: ; unreferenced
ld a, SRAM_ENABLE ld a, SRAM_ENABLE
ld [MBC3SRamEnable], a ld [MBC3SRamEnable], a
call LatchClock call LatchClock
@ -54,7 +54,7 @@ TimesOfDay:
db MAX_HOUR, NITE_F db MAX_HOUR, NITE_F
db -1, MORN_F db -1, MORN_F
Unreferenced_1404e: BetaTimesOfDay: ; unreferenced
db 20, NITE_F db 20, NITE_F
db 40, MORN_F db 40, MORN_F
db 60, DAY_F db 60, DAY_F

View File

@ -196,7 +196,7 @@ DisplayHourOClock:
pop hl pop hl
ret ret
UnreferencedFunction907f1: Function907f1: ; unreferenced
ld h, d ld h, d
ld l, e ld l, e
push hl push hl
@ -593,7 +593,7 @@ InitialClearDSTFlag:
text_far _TimeAskOkayText text_far _TimeAskOkayText
text_end text_end
Unreferenced_MrChrono: MrChrono: ; unreferenced
hlcoord 1, 14 hlcoord 1, 14
lb bc, 3, SCREEN_WIDTH - 2 lb bc, 3, SCREEN_WIDTH - 2
call ClearBox call ClearBox

View File

@ -59,7 +59,7 @@ BlkPacket_SlotMachine:
attr_blk_data %011, 0,0,0, 04,04, 15,09 ; slot reels: pal 0 attr_blk_data %011, 0,0,0, 04,04, 15,09 ; slot reels: pal 0
attr_blk_data %011, 0,0,0, 00,12, 19,17 ; text box: pal 0 attr_blk_data %011, 0,0,0, 00,12, 19,17 ; text box: pal 0
UnreferencedBlkPacket_9b26: BlkPacket_PartyMenu: ; unreferenced
attr_blk 7 attr_blk 7
attr_blk_data %111, 0,0,1, 00,00, 02,12 attr_blk_data %111, 0,0,1, 00,00, 02,12
attr_blk_data %010, 0,0,0, 12,00, 18,01 attr_blk_data %010, 0,0,0, 12,00, 18,01

View File

@ -34,7 +34,7 @@ PalPacket_9bd6:
PalPacket_GSIntroShellderLapras: PalPacket_GSIntroShellderLapras:
sgb_pal_set GS_INTRO_SHELLDER_LAPRAS, ROUTES, ROUTES, ROUTES sgb_pal_set GS_INTRO_SHELLDER_LAPRAS, ROUTES, ROUTES, ROUTES
UnreferencedPalPacket_BetaIntroLapras: PalPacket_BetaIntroLapras: ; unreferenced
sgb_pal_set BETA_INTRO_LAPRAS, ROUTES, ROUTES, ROUTES sgb_pal_set BETA_INTRO_LAPRAS, ROUTES, ROUTES, ROUTES
PalPacket_GSIntroJigglypuffPikachu: PalPacket_GSIntroJigglypuffPikachu:
@ -61,7 +61,7 @@ PalPacket_BattleGrayscale:
PalPacket_Pokegear: PalPacket_Pokegear:
sgb_pal_set POKEGEAR, ROUTES, ROUTES, ROUTES sgb_pal_set POKEGEAR, ROUTES, ROUTES, ROUTES
UnreferencedPalPacket_9c86: PalPacket_9c86: ; unreferenced
sgb_pal_set PACK, ROUTES, ROUTES, ROUTES sgb_pal_set PACK, ROUTES, ROUTES, ROUTES
PalPacket_SlotMachine: PalPacket_SlotMachine:

View File

@ -108,5 +108,8 @@ INCLUDE "gfx/tilesets/battle_tower_inside_palette_map.asm"
TilesetBattleTowerOutsidePalMap: TilesetBattleTowerOutsidePalMap:
INCLUDE "gfx/tilesets/battle_tower_outside_palette_map.asm" INCLUDE "gfx/tilesets/battle_tower_outside_palette_map.asm"
Unreferenced_MapGroupPalettes: MapGroupPalettes: ; unreferenced
ds NUM_MAP_GROUPS, PAL_BG_ROOF ; entries correspond to GROUP_* constants
rept NUM_MAP_GROUPS
db PAL_BG_ROOF
endr

View File

@ -467,7 +467,7 @@ GetMapMusic_MaybeSpecial::
call GetMapMusic call GetMapMusic
ret ret
Unreferenced_Function3d9f:: Function3d9f:: ; unreferenced
; Places a BCD number at the ; Places a BCD number at the
; upper center of the screen. ; upper center of the screen.
ld a, 4 * TILE_WIDTH ld a, 4 * TILE_WIDTH

View File

@ -15,7 +15,7 @@ GetPartyLocation::
ld bc, PARTYMON_STRUCT_LENGTH ld bc, PARTYMON_STRUCT_LENGTH
jp AddNTimes jp AddNTimes
Unreferenced_GetDexNumber:: GetDexNumber:: ; unreferenced
; Probably used in gen 1 to convert index number to dex number ; Probably used in gen 1 to convert index number to dex number
; Not required in gen 2 because index number == dex number ; Not required in gen 2 because index number == dex number
push hl push hl

View File

@ -1,7 +1,6 @@
; Functions to fade the screen in and out. ; Functions to fade the screen in and out.
Unreferenced_Function48c:: TimeOfDayFade:: ; unreferenced
; TimeOfDayFade
ld a, [wTimeOfDayPal] ld a, [wTimeOfDayPal]
ld b, a ld b, a
ld hl, IncGradGBPalTable_11 ld hl, IncGradGBPalTable_11

View File

@ -102,7 +102,7 @@ CheckReceivedDex::
and a and a
ret ret
Unreferenced_CheckBPressedDebug:: CheckBPressedDebug:: ; unreferenced
; Used in debug ROMs to walk through walls and avoid encounters. ; Used in debug ROMs to walk through walls and avoid encounters.
ld a, [wDebugFlags] ld a, [wDebugFlags]
@ -122,7 +122,7 @@ xor_a_dec_a::
dec a dec a
ret ret
Unreferenced_CheckFieldDebug:: CheckFieldDebug:: ; unreferenced
push hl push hl
ld hl, wDebugFlags ld hl, wDebugFlags
bit DEBUG_FIELD_F, [hl] bit DEBUG_FIELD_F, [hl]

View File

@ -32,7 +32,7 @@ FarCopyBytesDouble_DoubleBankSwitch::
rst Bankswitch rst Bankswitch
ret ret
Unreferenced_DMATransfer: SafeHDMATransfer: ; unreferenced
dec c dec c
ldh a, [hBGMapMode] ldh a, [hBGMapMode]
push af push af

View File

@ -47,7 +47,7 @@ SECTION "lcd", ROM0[$0048]
jp LCD jp LCD
SECTION "timer", ROM0[$0050] SECTION "timer", ROM0[$0050]
jp Timer jp MobileTimer
SECTION "serial", ROM0[$0058] SECTION "serial", ROM0[$0058]
jp Serial jp Serial

View File

@ -1,6 +1,6 @@
; LCD handling ; LCD handling
Unreferenced_Function547:: Function547:: ; unreferenced
ldh a, [hLCDCPointer] ldh a, [hLCDCPointer]
cp LOW(rSCX) cp LOW(rSCX)
ret nz ret nz

View File

@ -368,8 +368,7 @@ CheckIndoorMap::
cp GATE cp GATE
ret ret
; unused CheckUnknownMap:: ; unreferenced
UnreferencedCheckEnvironment::
cp INDOOR cp INDOOR
ret z ret z
cp GATE cp GATE
@ -1313,7 +1312,7 @@ UpdateBGMapColumn::
ldh [hBGMapTileCount], a ldh [hBGMapTileCount], a
ret ret
Unreferenced_Function2816:: Function2816:: ; unreferenced
ld hl, wBGMapBuffer ld hl, wBGMapBuffer
ld bc, wBGMapBufferEnd - wBGMapBuffer ld bc, wBGMapBufferEnd - wBGMapBuffer
xor a xor a
@ -1904,7 +1903,7 @@ CloseSubmenu::
call ReloadTilesetAndPalettes call ReloadTilesetAndPalettes
call UpdateSprites call UpdateSprites
call Call_ExitMenu call Call_ExitMenu
call ret_d90 call GSReloadPalettes
jr FinishExitMenu jr FinishExitMenu
ExitAllMenus:: ExitAllMenus::
@ -1912,7 +1911,7 @@ ExitAllMenus::
call Call_ExitMenu call Call_ExitMenu
call ReloadTilesetAndPalettes call ReloadTilesetAndPalettes
call UpdateSprites call UpdateSprites
call ret_d90 call GSReloadPalettes
FinishExitMenu:: FinishExitMenu::
ld b, SCGB_MAPPALS ld b, SCGB_MAPPALS
call GetSGBLayout call GetSGBLayout

View File

@ -362,7 +362,7 @@ CopyPlayerObjectTemplate::
call CopyBytes call CopyBytes
ret ret
Unreferenced_Function19b8: Function19b8: ; unreferenced
call GetMapObject call GetMapObject
ld hl, MAPOBJECT_OBJECT_STRUCT_ID ld hl, MAPOBJECT_OBJECT_STRUCT_ID
add hl, bc add hl, bc
@ -574,12 +574,12 @@ _GetMovementByte::
ld a, h ld a, h
ret ret
UnreferencedSetVramState_Bit0:: SetVramState_Bit0:: ; unreferenced
ld hl, wVramState ld hl, wVramState
set 0, [hl] set 0, [hl]
ret ret
UnreferencedResetVramState_Bit0:: ResetVramState_Bit0:: ; unreferenced
ld hl, wVramState ld hl, wVramState
res 0, [hl] res 0, [hl]
ret ret

View File

@ -48,7 +48,7 @@ Divide::
pop hl pop hl
ret ret
UnreferencedSubtractAbsolute:: SubtractAbsolute:: ; unreferenced
; Return |a - b|, sign in carry. ; Return |a - b|, sign in carry.
sub b sub b
ret nc ret nc

View File

@ -417,7 +417,7 @@ YesNoBox::
PlaceYesNoBox:: PlaceYesNoBox::
jr _YesNoBox jr _YesNoBox
UnreferencedPlaceGenericTwoOptionBox:: PlaceGenericTwoOptionBox:: ; unreferenced
call LoadMenuHeader call LoadMenuHeader
jr InterpretTwoOptionMenu jr InterpretTwoOptionMenu
@ -719,7 +719,7 @@ PlaceNthMenuStrings::
call PlaceString call PlaceString
ret ret
Unreferenced_Function1f9e:: Function1f9e:: ; unreferenced
call GetMenuDataPointerTableEntry call GetMenuDataPointerTableEntry
inc hl inc hl
inc hl inc hl

View File

@ -65,7 +65,7 @@ MobileReceive::
ret ret
Timer:: MobileTimer::
push af push af
push bc push bc
push de push de
@ -89,11 +89,11 @@ Timer::
ld a, [$c822] ld a, [$c822]
bit 1, a bit 1, a
jr nz, .skip_Timer jr nz, .skip_timer
ldh a, [rSC] ldh a, [rSC]
and 1 << rSC_ON and 1 << rSC_ON
jr nz, .skip_Timer jr nz, .skip_timer
ldh a, [hROMBank] ldh a, [hROMBank]
push af push af
@ -108,7 +108,7 @@ Timer::
ld [$c981], a ld [$c981], a
rst Bankswitch rst Bankswitch
.skip_Timer .skip_timer
ldh a, [rTMA] ldh a, [rTMA]
ldh [rTIMA], a ldh [rTIMA], a
@ -122,7 +122,7 @@ Timer::
pop af pop af
reti reti
Unreferenced_Function3ed7:: Function3ed7:: ; unreferenced
ld [$dc02], a ld [$dc02], a
ldh a, [hROMBank] ldh a, [hROMBank]
push af push af
@ -152,7 +152,7 @@ Function3eea::
call MobileHome_PlaceBox call MobileHome_PlaceBox
ret ret
Unreferenced_Function3efd:: Function3efd:: ; unreferenced
push hl push hl
hlcoord 0, 12 hlcoord 0, 12
ld b, 4 ld b, 4

View File

@ -301,7 +301,7 @@ ClearVBank1::
ldh [rVBK], a ldh [rVBK], a
ret ret
ret_d90:: GSReloadPalettes:: ; dummied out
ret ret
ReloadSpritesNoPalettes:: ReloadSpritesNoPalettes::

View File

@ -234,7 +234,7 @@ Print8BitNumLeftAlign::
ld b, PRINTNUM_LEFTALIGN | 1 ld b, PRINTNUM_LEFTALIGN | 1
jp PrintNum jp PrintNum
Unreferenced_GetNthMove:: GetNthMove:: ; unreferenced
ld hl, wListMoves_MoveIndicesBuffer ld hl, wListMoves_MoveIndicesBuffer
ld c, a ld c, a
ld b, 0 ld b, 0

View File

@ -31,5 +31,5 @@ IsInJohto::
ld a, KANTO_REGION ld a, KANTO_REGION
ret ret
ret_2f3e:: Function2f3e:: ; dummied out
ret ret

View File

@ -388,7 +388,7 @@ LinkDataReceived::
ldh [rSC], a ldh [rSC], a
ret ret
Unreferenced_Function919:: Function919:: ; unreferenced
ld a, [wLinkMode] ld a, [wLinkMode]
and a and a
ret nz ret nz

View File

@ -128,8 +128,8 @@ SpeechTextbox::
ld c, TEXTBOX_INNERW ld c, TEXTBOX_INNERW
jp Textbox jp Textbox
UnreferencedTestText:: GameFreakText:: ; unreferenced
text "ゲームフりーク!" text "ゲームフりーク!" ; "GAMEFREAK!"
done done
RadioTerminator:: RadioTerminator::
@ -712,10 +712,7 @@ TextCommands::
dw TextCommand_FAR ; TX_FAR dw TextCommand_FAR ; TX_FAR
TextCommand_START:: TextCommand_START::
; text_start
; write text until "@" ; write text until "@"
; [$00]["...@"]
ld d, h ld d, h
ld e, l ld e, l
ld h, b ld h, b
@ -727,11 +724,7 @@ TextCommand_START::
ret ret
TextCommand_RAM:: TextCommand_RAM::
; text_ram ; write text from a ram address (little endian)
; write text from a ram address
; little endian
; [$01][addr]
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld a, [hli] ld a, [hli]
@ -744,11 +737,7 @@ TextCommand_RAM::
ret ret
TextCommand_FAR:: TextCommand_FAR::
; text_far ; write text from a different bank (little endian)
; write text from a different bank
; little endian
; [$16][addr][bank]
ldh a, [hROMBank] ldh a, [hROMBank]
push af push af
@ -773,11 +762,7 @@ TextCommand_FAR::
ret ret
TextCommand_BCD:: TextCommand_BCD::
; text_bcd
; write bcd from address, typically ram ; write bcd from address, typically ram
; [$02][addr][flags]
; flags: see PrintBCDNumber
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld a, [hli] ld a, [hli]
@ -794,10 +779,7 @@ TextCommand_BCD::
ret ret
TextCommand_MOVE:: TextCommand_MOVE::
; text_move
; move to a new tile ; move to a new tile
; [$03][addr]
ld a, [hli] ld a, [hli]
ld [wMenuScrollPosition + 2], a ld [wMenuScrollPosition + 2], a
ld c, a ld c, a
@ -807,11 +789,7 @@ TextCommand_MOVE::
ret ret
TextCommand_BOX:: TextCommand_BOX::
; text_box ; draw a box (height, width)
; draw a box
; little endian
; [$04][addr][height][width]
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld a, [hli] ld a, [hli]
@ -828,19 +806,12 @@ TextCommand_BOX::
ret ret
TextCommand_LOW:: TextCommand_LOW::
; text_low
; write text at (1,16) ; write text at (1,16)
; [$05]
bccoord TEXTBOX_INNERX, TEXTBOX_INNERY + 2 bccoord TEXTBOX_INNERX, TEXTBOX_INNERY + 2
ret ret
TextCommand_PROMPT_BUTTON:: TextCommand_PROMPT_BUTTON::
; text_promptbutton ; wait for button press; show arrow
; wait for button press
; show arrow
; [06]
ld a, [wLinkMode] ld a, [wLinkMode]
cp LINK_COLOSSEUM cp LINK_COLOSSEUM
jp z, TextCommand_LINK_PROMPT_BUTTON jp z, TextCommand_LINK_PROMPT_BUTTON
@ -857,7 +828,6 @@ TextCommand_PROMPT_BUTTON::
ret ret
TextCommand_SCROLL:: TextCommand_SCROLL::
; text_scroll
; pushes text up two lines and sets the BC cursor to the border tile ; pushes text up two lines and sets the BC cursor to the border tile
; below the first character column of the text box. ; below the first character column of the text box.
push hl push hl
@ -869,8 +839,7 @@ TextCommand_SCROLL::
ret ret
TextCommand_START_ASM:: TextCommand_START_ASM::
; text_asm ; run assembly code
bit 7, h bit 7, h
jr nz, .not_rom jr nz, .not_rom
jp hl jp hl
@ -881,8 +850,7 @@ TextCommand_START_ASM::
ret ret
TextCommand_NUM:: TextCommand_NUM::
; text_decimal ; print a number
; [$09][addr][hi:bytes lo:digits]
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld a, [hli] ld a, [hli]
@ -906,7 +874,7 @@ TextCommand_NUM::
ret ret
TextCommand_PAUSE:: TextCommand_PAUSE::
; text_pause ; wait for button press or 30 frames
push hl push hl
push bc push bc
call GetJoypad call GetJoypad
@ -921,10 +889,7 @@ TextCommand_PAUSE::
ret ret
TextCommand_SOUND:: TextCommand_SOUND::
; chars: ; play a sound effect from TextSFX
; $0b, $0e, $0f, $10, $11, $12, $13
; see TextSFX
push bc push bc
dec hl dec hl
ld a, [hli] ld a, [hli]
@ -955,8 +920,8 @@ TextCommand_SOUND::
pop bc pop bc
ret ret
Unreferenced_Function1522:: TextCommand_CRY:: ; unreferenced
; sound_cry ; play a pokemon cry
push de push de
ld e, [hl] ld e, [hl]
inc hl inc hl
@ -978,8 +943,7 @@ TextSFX::
db -1 db -1
TextCommand_DOTS:: TextCommand_DOTS::
; text_dots ; wait for button press or 30 frames while printing "…"s
; [$0C][num]
ld a, [hli] ld a, [hli]
ld d, a ld d, a
push hl push hl
@ -1007,9 +971,7 @@ TextCommand_DOTS::
ret ret
TextCommand_LINK_PROMPT_BUTTON:: TextCommand_LINK_PROMPT_BUTTON::
; text_linkpromptbutton ; wait for button press; display arrow
; wait for key down
; display arrow
push hl push hl
push bc push bc
call PromptButton call PromptButton
@ -1018,7 +980,6 @@ TextCommand_LINK_PROMPT_BUTTON::
ret ret
TextCommand_STRINGBUFFER:: TextCommand_STRINGBUFFER::
; text_buffer
; Print a string from one of the following: ; Print a string from one of the following:
; 0: wStringBuffer3 ; 0: wStringBuffer3
; 1: wStringBuffer4 ; 1: wStringBuffer4
@ -1027,8 +988,6 @@ TextCommand_STRINGBUFFER::
; 4: wStringBuffer1 ; 4: wStringBuffer1
; 5: wEnemyMonNick ; 5: wEnemyMonNick
; 6: wBattleMonNick ; 6: wBattleMonNick
; [$14][id]
ld a, [hli] ld a, [hli]
push hl push hl
ld e, a ld e, a
@ -1047,8 +1006,7 @@ TextCommand_STRINGBUFFER::
ret ret
TextCommand_DAY:: TextCommand_DAY::
; text_today ; print the day of the week
call GetWeekday call GetWeekday
push hl push hl
push bc push bc

View File

@ -1,11 +1,11 @@
; Functions relating to the timer interrupt and the real-time-clock. ; Functions relating to the timer interrupt and the real-time-clock.
Unreferenced_Timer:: Timer:: ; unreferenced
push af push af
ldh a, [hMobile] ldh a, [hMobile]
and a and a
jr z, .not_mobile jr z, .not_mobile
call Timer call MobileTimer
.not_mobile .not_mobile
pop af pop af
@ -256,7 +256,7 @@ SetClock::
call CloseSRAM ; unlatch clock, disable clock r/w call CloseSRAM ; unlatch clock, disable clock r/w
ret ret
UnreferencedClearRTCStatus:: ClearRTCStatus:: ; unreferenced
; clear sRTCStatusFlags ; clear sRTCStatusFlags
xor a xor a
push af push af

View File

@ -203,7 +203,7 @@ FacingPlayerDistance::
and a and a
ret ret
UnreferencedCheckTrainerFlag:: CheckTrainerFlag:: ; unreferenced
push bc push bc
ld hl, OBJECT_MAP_OBJECT_INDEX ld hl, OBJECT_MAP_OBJECT_INDEX
add hl, bc add hl, bc

View File

@ -9414,7 +9414,7 @@ Function113eb8:
res 0, [hl] res 0, [hl]
jp Function111f97 jp Function111f97
Unreferenced_Function113ec7: Function113ec7: ; unreferenced
ld hl, $c822 ld hl, $c822
ld a, [hl] ld a, [hl]
push af push af

View File

@ -250,7 +250,7 @@ INCLUDE "engine/events/basement_key.asm"
INCLUDE "engine/events/sacred_ash.asm" INCLUDE "engine/events/sacred_ash.asm"
INCLUDE "engine/pokemon/tempmon.asm" INCLUDE "engine/pokemon/tempmon.asm"
INCLUDE "engine/pokemon/types.asm" INCLUDE "engine/pokemon/types.asm"
INCLUDE "engine/battle/unreferenced_getgen1trainerclassname.asm" INCLUDE "engine/battle/getgen1trainerclassname.asm"
INCLUDE "engine/pokemon/mon_stats.asm" INCLUDE "engine/pokemon/mon_stats.asm"
INCLUDE "engine/link/init_list.asm" INCLUDE "engine/link/init_list.asm"
INCLUDE "engine/pokemon/experience.asm" INCLUDE "engine/pokemon/experience.asm"

View File

@ -154,7 +154,7 @@ Script_BattleTowerHopeToServeYouAgain:
closetext closetext
end end
UnreferencedScript_0x9e4b6: Script_MobileError2: ; unreferenced
special BattleTowerMobileError special BattleTowerMobileError
closetext closetext
end end
@ -164,7 +164,7 @@ Script_WaitButton:
closetext closetext
end end
UnreferencedScript_0x9e4be: Script_ChooseChallenge2: ; unreferenced
writetext Text_SaveBeforeEnteringBattleRoom writetext Text_SaveBeforeEnteringBattleRoom
yesorno yesorno
iffalse Script_Menu_ChallengeExplanationCancel iffalse Script_Menu_ChallengeExplanationCancel
@ -183,7 +183,7 @@ UnreferencedScript_0x9e4be:
closetext closetext
end end
UnreferencedScript_0x9e4ea: Script_StartChallenge: ; unreferenced
setval BATTLETOWERACTION_LEVEL_CHECK setval BATTLETOWERACTION_LEVEL_CHECK
special BattleTowerAction special BattleTowerAction
ifnotequal $0, Script_AMonLevelExceeds ifnotequal $0, Script_AMonLevelExceeds
@ -196,11 +196,11 @@ UnreferencedScript_0x9e4ea:
special BattleTowerAction special BattleTowerAction
ifequal $0, .zero ifequal $0, .zero
writetext Text_CantBeRegistered_PreviousRecordDeleted writetext Text_CantBeRegistered_PreviousRecordDeleted
sjump continue sjump .continue
.zero .zero
writetext Text_CantBeRegistered writetext Text_CantBeRegistered
continue: .continue
yesorno yesorno
iffalse Script_Menu_ChallengeExplanationCancel iffalse Script_Menu_ChallengeExplanationCancel
writetext Text_SaveBeforeReentry writetext Text_SaveBeforeReentry
@ -218,7 +218,7 @@ continue:
waitbutton waitbutton
sjump Script_ResumeBattleTowerChallenge sjump Script_ResumeBattleTowerChallenge
UnreferencedScript_0x9e53b: Script_ReachedBattleLimit: ; unreferenced
writetext Text_FiveDayBattleLimit_Mobile writetext Text_FiveDayBattleLimit_Mobile
waitbutton waitbutton
sjump Script_BattleTowerHopeToServeYouAgain sjump Script_BattleTowerHopeToServeYouAgain

View File

@ -110,7 +110,7 @@ Script_BeatenAllTrainers2:
writetext Text_CongratulationsYouveBeatenAllTheTrainers writetext Text_CongratulationsYouveBeatenAllTheTrainers
sjump Script_GivePlayerHisPrize sjump Script_GivePlayerHisPrize
UnreferencedScript_0x9f4eb: Script_TooMuchTimeElapsedNoRegister: ; unreferenced
setval BATTLETOWERACTION_CHALLENGECANCELED setval BATTLETOWERACTION_CHALLENGECANCELED
special BattleTowerAction special BattleTowerAction
opentext opentext
@ -119,7 +119,7 @@ UnreferencedScript_0x9f4eb:
closetext closetext
end end
UnreferencedScript_0x9f4f7: Script_ChallengeCanceled: ; unreferenced
setval BATTLETOWERACTION_CHALLENGECANCELED setval BATTLETOWERACTION_CHALLENGECANCELED
special BattleTowerAction special BattleTowerAction
setval BATTLETOWERACTION_06 setval BATTLETOWERACTION_06

View File

@ -16,7 +16,7 @@ FastShipCabins_SE_SSE_CaptainsCabin_MapScripts:
db 0 ; callbacks db 0 ; callbacks
.UnreferencedDummyScene: .DummyScene: ; unreferenced
end end
SSAquaCaptain: SSAquaCaptain:

View File

@ -6,7 +6,7 @@ GoldenrodBikeShop_MapScripts:
db 0 ; callbacks db 0 ; callbacks
.UnreferencedDummyScene: .DummyScene: ; unreferenced
end end
GoldenrodBikeShopClerkScript: GoldenrodBikeShopClerkScript:

View File

@ -57,7 +57,7 @@ Route32CooltrainerMContinueScene:
closetext closetext
end end
.Unreferenced: .GoToSproutTower: ; unreferenced
writetext Route32CooltrainerMText_UnusedSproutTower writetext Route32CooltrainerMText_UnusedSproutTower
waitbutton waitbutton
closetext closetext

View File

@ -31,7 +31,7 @@ Function11c075:
call Function11c08f call Function11c08f
ret ret
Unreferenced_Function11c082: Function11c082: ; unreferenced
push de push de
ld a, c ld a, c
call Function11c254 call Function11c254

View File

@ -1598,7 +1598,7 @@ Function48c63:
scf scf
ret ret
Unreferenced_Function48c8e: Function48c8e: ; unreferenced
ld hl, wd019 + $11 ld hl, wd019 + $11
ld d, h ld d, h
ld e, l ld e, l

View File

@ -2925,7 +2925,7 @@ Function1013dd:
call CGBOnly_CopyTilemapAtOnce call CGBOnly_CopyTilemapAtOnce
ret ret
Unreferenced_Function1013e1: Function1013e1: ; unreferenced
push de push de
inc de inc de
ld b, a ld b, a
@ -2960,7 +2960,7 @@ Function1013f5:
jr nz, .asm_1013f9 jr nz, .asm_1013f9
ret ret
Unreferenced_Function101400: Function101400: ; unreferenced
ld a, [de] ld a, [de]
inc de inc de
cp [hl] cp [hl]
@ -3135,7 +3135,7 @@ Function101507:
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
ret ret
Unreferenced_Function10151d: Function10151d: ; unreferenced
ld a, $34 ld a, $34
call Function3e32 call Function3e32
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
@ -3312,7 +3312,7 @@ Function101663:
call MobileCopyTransferData2 call MobileCopyTransferData2
ret ret
Unreferenced_Function101674: Function101674: ; unreferenced
ld a, BANK(w5_dc00) ld a, BANK(w5_dc00)
ld hl, w5_dc00 ld hl, w5_dc00
call MobileCopyTransferData call MobileCopyTransferData
@ -4146,7 +4146,7 @@ Function101cbc:
ld [wcd2b], a ld [wcd2b], a
ret ret
Unreferenced_Function101cc2: Function101cc2: ; unreferenced
ld a, $02 ld a, $02
ld [wcd2b], a ld [wcd2b], a
ret ret
@ -4407,14 +4407,14 @@ Function101e64:
ld [wcd2b], a ld [wcd2b], a
ret ret
Unreferenced_Function101e82: Function101e82: ; unreferenced
call Function101ecc call Function101ecc
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
ret ret
Unreferenced_Function101e8d: Function101e8d: ; unreferenced
call Function101ed3 call Function101ed3
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
@ -6123,7 +6123,7 @@ Function102b4e:
ld [w2DMenuNumRows], a ld [w2DMenuNumRows], a
ret ret
Unreferenced_Function102b68: Function102b68: ; unreferenced
xor a xor a
ld hl, wWindowStackPointer ld hl, wWindowStackPointer
ld bc, $10 ld bc, $10

View File

@ -245,7 +245,7 @@ StubbedTrainerRankings_StepCount:
ld hl, sTrainerRankingStepCount ld hl, sTrainerRankingStepCount
jp StubbedTrainerRankings_Increment4Byte jp StubbedTrainerRankings_Increment4Byte
Unreferenced_StubbedTrainerRankings_BattleTowerWins: StubbedTrainerRankings_BattleTowerWins: ; unreferenced
ret ret
ld a, BANK(s5_aa8d) ld a, BANK(s5_aa8d)
call OpenSRAM call OpenSRAM
@ -537,7 +537,7 @@ RestoreMobileEventIndex:
call CloseSRAM call CloseSRAM
ret ret
Unreferenced_VerifyTrainerRankingsChecksum: VerifyTrainerRankingsChecksum: ; unreferenced
call CalculateTrainerRankingsChecksum call CalculateTrainerRankingsChecksum
ld hl, sTrainerRankingsChecksum ld hl, sTrainerRankingsChecksum
ld a, d ld a, d

View File

@ -1502,7 +1502,7 @@ IndexDownloadURL:
popc popc
Unreferenced_Function118d35: Function118d35: ; unreferenced
ld hl, $d200 ld hl, $d200
ld a, [wcd38] ld a, [wcd38]
and a and a
@ -3889,8 +3889,8 @@ Strings_Ll0ToL40:
db " L:30 @@" db " L:30 @@"
db " L:40 @@" db " L:40 @@"
db "CANCEL@@" db "CANCEL@@"
Unreferenced_CancelString: BattleTowerCancelString: ; unreferenced
db "CANCEL@" db "CANCEL@"
BattleTower_LevelCheck: BattleTower_LevelCheck:
@ -5392,7 +5392,7 @@ Function11a9ce:
call Call_ExitMenu call Call_ExitMenu
farcall Stubbed_Function106462 farcall Stubbed_Function106462
farcall Function106464 farcall Function106464
call ret_d90 call GSReloadPalettes
farcall FinishExitMenu farcall FinishExitMenu
call UpdateSprites call UpdateSprites
ret ret
@ -6695,7 +6695,7 @@ Function11b397:
inc de inc de
jr .loop jr .loop
Unreferenced_Function11b3b6: Function11b3b6: ; unreferenced
.loop .loop
ld a, [hl] ld a, [hl]
cp -1 cp -1

View File

@ -1,4 +1,4 @@
Unreferenced_Function16c000: Function16c000: ; unreferenced
; Only for CGB ; Only for CGB
ldh a, [hCGB] ldh a, [hCGB]
and a and a

View File

@ -2,7 +2,7 @@
dab Doll1Script ; related to "My Room" in Stadium 2? dab Doll1Script ; related to "My Room" in Stadium 2?
Unreferenced_Function1f4003: Function1f4003: ; unreferenced
ld a, BANK(s6_a000) ld a, BANK(s6_a000)
call OpenSRAM call OpenSRAM
ld hl, .news_data ld hl, .news_data
@ -15,7 +15,7 @@ Unreferenced_Function1f4003:
.news_data .news_data
INCBIN "mobile/news/news_1.bin" INCBIN "mobile/news/news_1.bin"
Unreferenced_Function1f4dbe: Function1f4dbe: ; unreferenced
ld a, BANK(s6_a000) ld a, BANK(s6_a000)
call OpenSRAM call OpenSRAM
ld hl, .news_data ld hl, .news_data

View File

@ -2053,6 +2053,7 @@ wWhichHPBar::
; 1: Player ; 1: Player
; 2: Party Menu ; 2: Party Menu
db db
wPokemonWithdrawDepositParameter:: wPokemonWithdrawDepositParameter::
; 0: Take from PC ; 0: Take from PC
; 1: Put into PC ; 1: Put into PC
@ -2077,7 +2078,9 @@ wItemAttributeParamBuffer:: db
wCurPartyLevel:: db wCurPartyLevel:: db
wScrollingMenuListSize:: dw wScrollingMenuListSize:: db
ds 1
; used when following a map warp ; used when following a map warp
wNextWarp:: db wNextWarp:: db
@ -2409,6 +2412,7 @@ wScriptTextAddr::
ds 1 ds 1
wWildEncounterCooldown:: db wWildEncounterCooldown:: db
wXYComparePointer:: dw wXYComparePointer:: dw
ds 4 ds 4
wBattleScriptFlags:: dw wBattleScriptFlags:: dw
@ -2422,14 +2426,20 @@ wPlayerSpriteSetupFlags::
wMapReentryScriptQueueFlag:: db wMapReentryScriptQueueFlag:: db
wMapReentryScriptBank:: db wMapReentryScriptBank:: db
wMapReentryScriptAddress:: dw wMapReentryScriptAddress:: dw
ds 4 ds 4
wTimeCyclesSinceLastCall:: db wTimeCyclesSinceLastCall:: db
wReceiveCallDelay_MinsRemaining:: db wReceiveCallDelay_MinsRemaining:: db
wReceiveCallDelay_StartTime:: ds 3 wReceiveCallDelay_StartTime:: ds 3
ds 3 ds 3
wBugContestMinsRemaining:: db wBugContestMinsRemaining:: db
wBugContestSecsRemaining:: db wBugContestSecsRemaining:: db
ds 2 ds 2
wMapStatusEnd:: wMapStatusEnd::
ds 2 ds 2
@ -2452,8 +2462,7 @@ wd479:: ds 2
wGameData:: wGameData::
wPlayerData:: wPlayerData::
wPlayerID:: wPlayerID:: dw
dw
wPlayerName:: ds NAME_LENGTH wPlayerName:: ds NAME_LENGTH
wMomsName:: ds NAME_LENGTH wMomsName:: ds NAME_LENGTH