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