mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Update some routine labels, including unreferenced ones
This commit is contained in:
parent
e32cf1bfd1
commit
156f2cc3ef
@ -225,7 +225,7 @@ LoadBallIconGFX:
|
|||||||
ld de, .gfx
|
ld de, .gfx
|
||||||
ld hl, vTiles0 tile $31
|
ld hl, vTiles0 tile $31
|
||||||
lb bc, BANK(LoadBallIconGFX), 4
|
lb bc, BANK(LoadBallIconGFX), 4
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.gfx
|
.gfx
|
||||||
|
@ -8,13 +8,13 @@ Unreferenced_fb434:
|
|||||||
Unreferenced_Functionfb435:
|
Unreferenced_Functionfb435:
|
||||||
ld a, [Unreferenced_fb434]
|
ld a, [Unreferenced_fb434]
|
||||||
and a
|
and a
|
||||||
jp nz, Get1bpp_2
|
jp nz, Get1bppViaHDMA
|
||||||
jp Get1bpp
|
jp Get1bpp
|
||||||
|
|
||||||
Unreferenced_Functionfb43f:
|
Unreferenced_Functionfb43f:
|
||||||
ld a, [Unreferenced_fb434]
|
ld a, [Unreferenced_fb434]
|
||||||
and a
|
and a
|
||||||
jp nz, Get2bpp_2
|
jp nz, Get2bppViaHDMA
|
||||||
jp Get2bpp
|
jp Get2bpp
|
||||||
; End unreferenced block
|
; End unreferenced block
|
||||||
|
|
||||||
@ -29,34 +29,34 @@ _LoadStandardFont::
|
|||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, vTiles1
|
ld hl, vTiles1
|
||||||
lb bc, BANK(Font), 32 ; "A" to "]"
|
lb bc, BANK(Font), 32 ; "A" to "]"
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, Font + 32 * LEN_1BPP_TILE
|
ld de, Font + 32 * LEN_1BPP_TILE
|
||||||
ld hl, vTiles1 tile $20
|
ld hl, vTiles1 tile $20
|
||||||
lb bc, BANK(Font), 32 ; "a" to $bf
|
lb bc, BANK(Font), 32 ; "a" to $bf
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, Font + 64 * LEN_1BPP_TILE
|
ld de, Font + 64 * LEN_1BPP_TILE
|
||||||
ld hl, vTiles1 tile $40
|
ld hl, vTiles1 tile $40
|
||||||
lb bc, BANK(Font), 32 ; "Ä" to "←"
|
lb bc, BANK(Font), 32 ; "Ä" to "←"
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, Font + 96 * LEN_1BPP_TILE
|
ld de, Font + 96 * LEN_1BPP_TILE
|
||||||
ld hl, vTiles1 tile $60
|
ld hl, vTiles1 tile $60
|
||||||
lb bc, BANK(Font), 32 ; "'" to "9"
|
lb bc, BANK(Font), 32 ; "'" to "9"
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
|
||||||
_LoadFontsExtra1::
|
_LoadFontsExtra1::
|
||||||
ld de, FontsExtra_SolidBlackGFX
|
ld de, FontsExtra_SolidBlackGFX
|
||||||
ld hl, vTiles2 tile "■" ; $60
|
ld hl, vTiles2 tile "■" ; $60
|
||||||
lb bc, BANK(FontsExtra_SolidBlackGFX), 1
|
lb bc, BANK(FontsExtra_SolidBlackGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, PokegearPhoneIconGFX
|
ld de, PokegearPhoneIconGFX
|
||||||
ld hl, vTiles2 tile "☎" ; $62
|
ld hl, vTiles2 tile "☎" ; $62
|
||||||
lb bc, BANK(PokegearPhoneIconGFX), 1
|
lb bc, BANK(PokegearPhoneIconGFX), 1
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ld de, FontExtra + 3 tiles ; "<BOLD_D>"
|
ld de, FontExtra + 3 tiles ; "<BOLD_D>"
|
||||||
ld hl, vTiles2 tile "<BOLD_D>"
|
ld hl, vTiles2 tile "<BOLD_D>"
|
||||||
lb bc, BANK(FontExtra), 22 ; "<BOLD_D>" to "ぉ"
|
lb bc, BANK(FontExtra), 22 ; "<BOLD_D>" to "ぉ"
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
jr LoadFrame
|
jr LoadFrame
|
||||||
|
|
||||||
_LoadFontsExtra2::
|
_LoadFontsExtra2::
|
||||||
@ -64,14 +64,14 @@ _LoadFontsExtra2::
|
|||||||
ld hl, vTiles2 tile "▲" ; $61
|
ld hl, vTiles2 tile "▲" ; $61
|
||||||
ld b, BANK(FontsExtra2_UpArrowGFX)
|
ld b, BANK(FontsExtra2_UpArrowGFX)
|
||||||
ld c, 1
|
ld c, 1
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
|
||||||
_LoadFontsBattleExtra::
|
_LoadFontsBattleExtra::
|
||||||
ld de, FontBattleExtra
|
ld de, FontBattleExtra
|
||||||
ld hl, vTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(FontBattleExtra), 25
|
lb bc, BANK(FontBattleExtra), 25
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
jr LoadFrame
|
jr LoadFrame
|
||||||
|
|
||||||
LoadFrame:
|
LoadFrame:
|
||||||
@ -84,41 +84,41 @@ LoadFrame:
|
|||||||
ld e, l
|
ld e, l
|
||||||
ld hl, vTiles2 tile "┌" ; $79
|
ld hl, vTiles2 tile "┌" ; $79
|
||||||
lb bc, BANK(Frames), 6 ; "┌" to "┘"
|
lb bc, BANK(Frames), 6 ; "┌" to "┘"
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld hl, vTiles2 tile " " ; $7f
|
ld hl, vTiles2 tile " " ; $7f
|
||||||
ld de, TextboxSpaceGFX
|
ld de, TextboxSpaceGFX
|
||||||
lb bc, BANK(TextboxSpaceGFX), 1
|
lb bc, BANK(TextboxSpaceGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
|
||||||
LoadBattleFontsHPBar:
|
LoadBattleFontsHPBar:
|
||||||
ld de, FontBattleExtra
|
ld de, FontBattleExtra
|
||||||
ld hl, vTiles2 tile $60
|
ld hl, vTiles2 tile $60
|
||||||
lb bc, BANK(FontBattleExtra), 12
|
lb bc, BANK(FontBattleExtra), 12
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ld hl, vTiles2 tile $70
|
ld hl, vTiles2 tile $70
|
||||||
ld de, FontBattleExtra + 16 tiles ; "<DO>"
|
ld de, FontBattleExtra + 16 tiles ; "<DO>"
|
||||||
lb bc, BANK(FontBattleExtra), 3 ; "<DO>" to "『"
|
lb bc, BANK(FontBattleExtra), 3 ; "<DO>" to "『"
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
call LoadFrame
|
call LoadFrame
|
||||||
|
|
||||||
LoadHPBar:
|
LoadHPBar:
|
||||||
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
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, HPExpBarBorderGFX
|
ld de, HPExpBarBorderGFX
|
||||||
ld hl, vTiles2 tile $73
|
ld hl, vTiles2 tile $73
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 6
|
lb bc, BANK(HPExpBarBorderGFX), 6
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, ExpBarGFX
|
ld de, ExpBarGFX
|
||||||
ld hl, vTiles2 tile $55
|
ld hl, vTiles2 tile $55
|
||||||
lb bc, BANK(ExpBarGFX), 9
|
lb bc, BANK(ExpBarGFX), 9
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ld de, MobilePhoneTilesGFX + 7 tiles ; mobile phone icon
|
ld de, MobilePhoneTilesGFX + 7 tiles ; mobile phone icon
|
||||||
ld hl, vTiles2 tile $5e
|
ld hl, vTiles2 tile $5e
|
||||||
lb bc, BANK(MobilePhoneTilesGFX), 2
|
lb bc, BANK(MobilePhoneTilesGFX), 2
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
|
||||||
StatsScreen_LoadFont:
|
StatsScreen_LoadFont:
|
||||||
@ -126,22 +126,22 @@ StatsScreen_LoadFont:
|
|||||||
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
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, HPExpBarBorderGFX
|
ld de, HPExpBarBorderGFX
|
||||||
ld hl, vTiles2 tile $78
|
ld hl, vTiles2 tile $78
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 1
|
lb bc, BANK(HPExpBarBorderGFX), 1
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
|
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
|
||||||
ld hl, vTiles2 tile $76
|
ld hl, vTiles2 tile $76
|
||||||
lb bc, BANK(HPExpBarBorderGFX), 2
|
lb bc, BANK(HPExpBarBorderGFX), 2
|
||||||
call Get1bpp_2
|
call Get1bppViaHDMA
|
||||||
ld de, ExpBarGFX
|
ld de, ExpBarGFX
|
||||||
ld hl, vTiles2 tile $55
|
ld hl, vTiles2 tile $55
|
||||||
lb bc, BANK(ExpBarGFX), 8
|
lb bc, BANK(ExpBarGFX), 8
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
LoadStatsScreenPageTilesGFX:
|
LoadStatsScreenPageTilesGFX:
|
||||||
ld de, StatsScreenPageTilesGFX
|
ld de, StatsScreenPageTilesGFX
|
||||||
ld hl, vTiles2 tile $31
|
ld hl, vTiles2 tile $31
|
||||||
lb bc, BANK(StatsScreenPageTilesGFX), 17
|
lb bc, BANK(StatsScreenPageTilesGFX), 17
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
ret
|
ret
|
||||||
|
@ -347,7 +347,7 @@ GetGFXUnlessMobile:
|
|||||||
ld a, [wLinkMode]
|
ld a, [wLinkMode]
|
||||||
cp LINK_MOBILE
|
cp LINK_MOBILE
|
||||||
jp nz, Request2bpp
|
jp nz, Request2bpp
|
||||||
jp Get2bpp_2
|
jp Get2bppViaHDMA
|
||||||
|
|
||||||
FreezeMonIcons:
|
FreezeMonIcons:
|
||||||
ld hl, wSpriteAnimationStructs
|
ld hl, wSpriteAnimationStructs
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
; Functions to copy data from ROM.
|
; Functions to copy data from ROM.
|
||||||
|
|
||||||
Get2bpp_2::
|
Get2bppViaHDMA::
|
||||||
ldh a, [rLCDC]
|
ldh a, [rLCDC]
|
||||||
bit rLCDC_ENABLE, a
|
bit rLCDC_ENABLE, a
|
||||||
jp z, Copy2bpp
|
jp z, Copy2bpp
|
||||||
@ -9,7 +9,7 @@ Get2bpp_2::
|
|||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Get1bpp_2::
|
Get1bppViaHDMA::
|
||||||
ldh a, [rLCDC]
|
ldh a, [rLCDC]
|
||||||
bit rLCDC_ENABLE, a
|
bit rLCDC_ENABLE, a
|
||||||
jp z, Copy1bpp
|
jp z, Copy1bpp
|
||||||
@ -31,7 +31,7 @@ FarCopyBytesDouble_DoubleBankSwitch::
|
|||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
ret
|
ret
|
||||||
|
|
||||||
OldDMATransfer:
|
UnreferencedOldDMATransfer:
|
||||||
dec c
|
dec c
|
||||||
ldh a, [hBGMapMode]
|
ldh a, [hBGMapMode]
|
||||||
push af
|
push af
|
||||||
|
@ -574,12 +574,12 @@ _GetMovementByte::
|
|||||||
ld a, h
|
ld a, h
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SetVramState_Bit0::
|
UnreferencedSetVramState_Bit0::
|
||||||
ld hl, wVramState
|
ld hl, wVramState
|
||||||
set 0, [hl]
|
set 0, [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
ResetVramState_Bit0::
|
UnreferencedResetVramState_Bit0::
|
||||||
ld hl, wVramState
|
ld hl, wVramState
|
||||||
res 0, [hl]
|
res 0, [hl]
|
||||||
ret
|
ret
|
||||||
|
@ -48,8 +48,8 @@ Divide::
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SubtractSigned::
|
UnreferencedSubtractAbsolute::
|
||||||
; Return a - b, sign in carry.
|
; Return |a - b|, sign in carry.
|
||||||
sub b
|
sub b
|
||||||
ret nc
|
ret nc
|
||||||
cpl
|
cpl
|
||||||
|
@ -417,7 +417,7 @@ YesNoBox::
|
|||||||
PlaceYesNoBox::
|
PlaceYesNoBox::
|
||||||
jr _YesNoBox
|
jr _YesNoBox
|
||||||
|
|
||||||
PlaceGenericTwoOptionBox::
|
UnreferencedPlaceGenericTwoOptionBox::
|
||||||
call LoadMenuHeader
|
call LoadMenuHeader
|
||||||
jr InterpretTwoOptionMenu
|
jr InterpretTwoOptionMenu
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ SpeechTextbox::
|
|||||||
ld c, TEXTBOX_INNERW
|
ld c, TEXTBOX_INNERW
|
||||||
jp Textbox
|
jp Textbox
|
||||||
|
|
||||||
TestText::
|
UnreferencedTestText::
|
||||||
text "ゲームフりーク!"
|
text "ゲームフりーク!"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ SetClock::
|
|||||||
call CloseSRAM ; unlatch clock, disable clock r/w
|
call CloseSRAM ; unlatch clock, disable clock r/w
|
||||||
ret
|
ret
|
||||||
|
|
||||||
ClearRTCStatus::
|
UnreferencedClearRTCStatus::
|
||||||
; clear sRTCStatusFlags
|
; clear sRTCStatusFlags
|
||||||
xor a
|
xor a
|
||||||
push af
|
push af
|
||||||
|
@ -203,7 +203,7 @@ FacingPlayerDistance::
|
|||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
CheckTrainerFlag::
|
UnreferencedCheckTrainerFlag::
|
||||||
push bc
|
push bc
|
||||||
ld hl, OBJECT_MAP_OBJECT_INDEX
|
ld hl, OBJECT_MAP_OBJECT_INDEX
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
@ -1374,7 +1374,7 @@ Function108ad4:
|
|||||||
ldh [rVBK], a
|
ldh [rVBK], a
|
||||||
ld hl, vTiles2 tile $4a
|
ld hl, vTiles2 tile $4a
|
||||||
lb bc, BANK(MobileCable1GFX), 16 ; aka BANK(MobileCable2GFX)
|
lb bc, BANK(MobileCable1GFX), 16 ; aka BANK(MobileCable2GFX)
|
||||||
call Get2bpp_2
|
call Get2bppViaHDMA
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, $0
|
ld a, $0
|
||||||
ldh [rVBK], a
|
ldh [rVBK], a
|
||||||
|
Loading…
Reference in New Issue
Block a user