diff options
Diffstat (limited to 'home')
-rw-r--r-- | home/audio.asm | 2 | ||||
-rw-r--r-- | home/battle.asm | 2 | ||||
-rw-r--r-- | home/fade.asm | 3 | ||||
-rw-r--r-- | home/flag.asm | 4 | ||||
-rw-r--r-- | home/gfx.asm | 4 | ||||
-rw-r--r-- | home/map.asm | 5 | ||||
-rw-r--r-- | home/map_objects.asm | 6 | ||||
-rw-r--r-- | home/math.asm | 2 | ||||
-rw-r--r-- | home/menu.asm | 4 | ||||
-rw-r--r-- | home/pokemon.asm | 2 | ||||
-rw-r--r-- | home/print_num.asm | 4 | ||||
-rw-r--r-- | home/serial.asm | 2 | ||||
-rw-r--r-- | home/text.asm | 72 | ||||
-rw-r--r-- | home/time.asm | 4 | ||||
-rw-r--r-- | home/trainers.asm | 2 |
15 files changed, 37 insertions, 81 deletions
diff --git a/home/audio.asm b/home/audio.asm index 9e982331..e4e5df03 100644 --- a/home/audio.asm +++ b/home/audio.asm @@ -440,7 +440,7 @@ GetMapMusic_MaybeSpecial:: call GetMapMusic ret -Unreferenced_Function3f7d:: +Function3f7d:: ; unreferenced ; Places a BCD number at the ; upper center of the screen. ld a, 4 * TILE_WIDTH diff --git a/home/battle.asm b/home/battle.asm index c2c3aeff..c0bcaad3 100644 --- a/home/battle.asm +++ b/home/battle.asm @@ -15,7 +15,7 @@ GetPartyLocation:: ld bc, PARTYMON_STRUCT_LENGTH jp AddNTimes -Unreferenced_GetDexNumber:: +GetDexNumber:: ; unreferenced ; Probably used in gen 1 to convert index number to dex number ; Not required in gen 2 because index number == dex number push hl diff --git a/home/fade.asm b/home/fade.asm index 3364638f..5a02cdde 100644 --- a/home/fade.asm +++ b/home/fade.asm @@ -1,7 +1,6 @@ ; Functions to fade the screen in and out. -Unreferenced_Function360:: -; TimeOfDayFade +TimeOfDayFade:: ; unreferenced ld a, [wTimeOfDayPal] ld b, a ld hl, IncGradGBPalTable_11 diff --git a/home/flag.asm b/home/flag.asm index 125c2a43..76e08e26 100644 --- a/home/flag.asm +++ b/home/flag.asm @@ -102,7 +102,7 @@ CheckReceivedDex:: and a ret -Unreferenced_CheckBPressedDebug:: +CheckBPressedDebug:: ; unreferenced ; Used in debug ROMs to walk through walls and avoid encounters. ld a, [wDebugFlags] @@ -122,7 +122,7 @@ xor_a_dec_a:: dec a ret -Unreferenced_CheckFieldDebug:: +CheckFieldDebug:: ; unreferenced push hl ld hl, wDebugFlags bit DEBUG_FIELD_F, [hl] diff --git a/home/gfx.asm b/home/gfx.asm index 9be62597..dd41ce51 100644 --- a/home/gfx.asm +++ b/home/gfx.asm @@ -260,12 +260,12 @@ Copy1bpp:: pop hl jp FarCopyBytesDouble -Unreferenced_Get2bpp:: +DuplicateGet2bpp:: ; unreferenced ldh a, [rLCDC] add a jp c, Request2bpp -Unreferenced_Copy2bpp:: +DuplicateCopy2bpp: ; unreferenced push de push hl diff --git a/home/map.asm b/home/map.asm index b158f3a5..22ea0b06 100644 --- a/home/map.asm +++ b/home/map.asm @@ -231,8 +231,7 @@ CheckIndoorMap:: cp GATE ret -; unused -UnreferencedCheckEnvironment:: +CheckUnknownMap:: ; unreferenced cp INDOOR ret z cp GATE @@ -1218,7 +1217,7 @@ UpdateBGMapColumn:: ldh [hBGMapTileCount], a ret -Unreferenced_Function2939:: +Function2939:: ; unreferenced ld hl, wBGMapBuffer ld bc, wBGMapBufferEnd - wBGMapBuffer xor a diff --git a/home/map_objects.asm b/home/map_objects.asm index 738da1f6..0b57e211 100644 --- a/home/map_objects.asm +++ b/home/map_objects.asm @@ -362,7 +362,7 @@ CopyPlayerObjectTemplate:: call CopyBytes ret -Unreferenced_Function1855: +Function1855: ; unreferenced call GetMapObject ld hl, MAPOBJECT_OBJECT_STRUCT_ID add hl, bc @@ -574,12 +574,12 @@ _GetMovementByte:: ld a, h ret -UnreferencedSetVramState_Bit0:: +SetVramState_Bit0:: ; unreferenced ld hl, wVramState set 0, [hl] ret -UnreferencedResetVramState_Bit0:: +ResetVramState_Bit0:: ; unreferenced ld hl, wVramState res 0, [hl] ret diff --git a/home/math.asm b/home/math.asm index c99214cc..8e950163 100644 --- a/home/math.asm +++ b/home/math.asm @@ -48,7 +48,7 @@ Divide:: pop hl ret -UnreferencedSubtractAbsolute:: +SubtractAbsolute:: ; unreferenced ; Return |a - b|, sign in carry. sub b ret nc diff --git a/home/menu.asm b/home/menu.asm index 6aef1adf..020b68e1 100644 --- a/home/menu.asm +++ b/home/menu.asm @@ -382,7 +382,7 @@ YesNoBox:: PlaceYesNoBox:: jr _YesNoBox -UnreferencedPlaceGenericTwoOptionBox:: +PlaceGenericTwoOptionBox:: ; unreferenced call LoadMenuHeader jr InterpretTwoOptionMenu @@ -676,7 +676,7 @@ PlaceNthMenuStrings:: call PlaceString ret -Unreferenced_Function1e08:: +Function1e08:: ; unreferenced call GetMenuDataPointerTableEntry inc hl inc hl diff --git a/home/pokemon.asm b/home/pokemon.asm index d035a2e4..29af1cdd 100644 --- a/home/pokemon.asm +++ b/home/pokemon.asm @@ -204,7 +204,7 @@ Print8BitNumLeftAlign:: ld b, PRINTNUM_LEFTALIGN | 1 jp PrintNum -Unreferenced_GetNthMove:: +GetNthMove:: ; unreferenced ld hl, wListMoves_MoveIndicesBuffer ld c, a ld b, 0 diff --git a/home/print_num.asm b/home/print_num.asm index a1dca238..d9cf15f5 100644 --- a/home/print_num.asm +++ b/home/print_num.asm @@ -301,8 +301,8 @@ PrintNum:: inc hl ret -Unreferenced_PrintHexNumber:: -; Print c-digit hex number from de to hl +PrintHexNumber:: ; unreferenced +; Print the c-byte value from de to hl as hexadecimal digits. .loop push bc call .HandleByte diff --git a/home/serial.asm b/home/serial.asm index 78814317..be00058d 100644 --- a/home/serial.asm +++ b/home/serial.asm @@ -380,7 +380,7 @@ LinkDataReceived:: ldh [rSC], a ret -Unreferenced_Function8ca:: +Function8ca:: ; unreferenced ld a, [wLinkMode] and a ret nz diff --git a/home/text.asm b/home/text.asm index be57ccfb..a5ab8fa3 100644 --- a/home/text.asm +++ b/home/text.asm @@ -128,8 +128,8 @@ SpeechTextbox:: ld c, TEXTBOX_INNERW jp Textbox -UnreferencedTestText:: - text "ゲームフりーク!" +GameFreakText:: ; unreferenced + text "ゲームフりーク!" ; "GAMEFREAK!" done RadioTerminator:: @@ -633,10 +633,7 @@ TextCommands:: dw TextCommand_FAR ; TX_FAR TextCommand_START:: -; text_start ; write text until "@" -; [$00]["...@"] - ld d, h ld e, l ld h, b @@ -648,11 +645,7 @@ TextCommand_START:: ret TextCommand_RAM:: -; text_ram -; write text from a ram address -; little endian -; [$01][addr] - +; write text from a ram address (little endian) ld a, [hli] ld e, a ld a, [hli] @@ -665,11 +658,7 @@ TextCommand_RAM:: ret TextCommand_FAR:: -; text_far -; write text from a different bank -; little endian -; [$16][addr][bank] - +; write text from a different bank (little endian) ldh a, [hROMBank] push af @@ -694,11 +683,7 @@ TextCommand_FAR:: ret TextCommand_BCD:: -; text_bcd ; write bcd from address, typically ram -; [$02][addr][flags] -; flags: see PrintBCDNumber - ld a, [hli] ld e, a ld a, [hli] @@ -715,10 +700,7 @@ TextCommand_BCD:: ret TextCommand_MOVE:: -; text_move ; move to a new tile -; [$03][addr] - ld a, [hli] ld [wMenuScrollPosition + 2], a ld c, a @@ -728,11 +710,7 @@ TextCommand_MOVE:: ret TextCommand_BOX:: -; text_box -; draw a box -; little endian -; [$04][addr][height][width] - +; draw a box (height, width) ld a, [hli] ld e, a ld a, [hli] @@ -749,19 +727,12 @@ TextCommand_BOX:: ret TextCommand_LOW:: -; text_low ; write text at (1,16) -; [$05] - bccoord TEXTBOX_INNERX, TEXTBOX_INNERY + 2 ret TextCommand_PROMPT_BUTTON:: -; text_promptbutton -; wait for button press -; show arrow -; [06] - +; wait for button press; show arrow ld a, [wLinkMode] cp LINK_COLOSSEUM jp z, TextCommand_LINK_PROMPT_BUTTON @@ -776,7 +747,6 @@ TextCommand_PROMPT_BUTTON:: ret TextCommand_SCROLL:: -; text_scroll ; pushes text up two lines and sets the BC cursor to the border tile ; below the first character column of the text box. push hl @@ -788,13 +758,11 @@ TextCommand_SCROLL:: ret TextCommand_START_ASM:: -; text_asm - +; run assembly code jp hl TextCommand_NUM:: -; text_decimal -; [$09][addr][hi:bytes lo:digits] +; print a number ld a, [hli] ld e, a ld a, [hli] @@ -818,7 +786,7 @@ TextCommand_NUM:: ret TextCommand_PAUSE:: -; text_pause +; wait for button press or 30 frames push hl push bc call GetJoypad @@ -833,10 +801,7 @@ TextCommand_PAUSE:: ret TextCommand_SOUND:: -; chars: -; $0b, $0e, $0f, $10, $11, $12, $13 -; see TextSFX - +; play a sound effect from TextSFX push bc dec hl ld a, [hli] @@ -867,8 +832,8 @@ TextCommand_SOUND:: pop bc ret -Unreferenced_Function13a2:: -; sound_cry +TextCommand_CRY:: ; unreferenced +; play a pokemon cry push de ld e, [hl] inc hl @@ -890,8 +855,7 @@ TextSFX:: db -1 TextCommand_DOTS:: -; text_dots -; [$0C][num] +; wait for button press or 30 frames while printing "…"s ld a, [hli] ld d, a push hl @@ -919,9 +883,7 @@ TextCommand_DOTS:: ret TextCommand_LINK_PROMPT_BUTTON:: -; text_linkpromptbutton -; wait for key down -; display arrow +; wait for button press; display arrow push hl push bc call PromptButton @@ -930,7 +892,6 @@ TextCommand_LINK_PROMPT_BUTTON:: ret TextCommand_STRINGBUFFER:: -; text_buffer ; Print a string from one of the following: ; 0: wStringBuffer3 ; 1: wStringBuffer4 @@ -939,8 +900,6 @@ TextCommand_STRINGBUFFER:: ; 4: wStringBuffer1 ; 5: wEnemyMonNick ; 6: wBattleMonNick -; [$14][id] - ld a, [hli] push hl ld e, a @@ -959,8 +918,7 @@ TextCommand_STRINGBUFFER:: ret TextCommand_DAY:: -; text_today - +; print the day of the week call GetWeekday push hl push bc diff --git a/home/time.asm b/home/time.asm index e49a5765..cfac2ef4 100644 --- a/home/time.asm +++ b/home/time.asm @@ -1,6 +1,6 @@ ; Functions relating to the timer interrupt and the real-time-clock. -Unreferenced_Timer:: +Timer:: ; unreferenced reti LatchClock:: @@ -249,7 +249,7 @@ SetClock:: call CloseSRAM ; unlatch clock, disable clock r/w ret -UnreferencedClearRTCStatus:: +ClearRTCStatus:: ; unreferenced ; clear sRTCStatusFlags xor a push af diff --git a/home/trainers.asm b/home/trainers.asm index 0f9a1c9b..a5be4068 100644 --- a/home/trainers.asm +++ b/home/trainers.asm @@ -203,7 +203,7 @@ FacingPlayerDistance:: and a ret -UnreferencedCheckTrainerFlag:: +CheckTrainerFlag:: ; unreferenced push bc ld hl, OBJECT_MAP_OBJECT_INDEX add hl, bc |