You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Comment more ROM labels as unreferenced
(Some unreferenced labels are above code which is still used via fallthrough!)
This commit is contained in:
@@ -286,12 +286,12 @@ MinVolume::
|
||||
ld [wVolume], a
|
||||
ret
|
||||
|
||||
Unused_FadeOutMusic::
|
||||
FadeOutToMusic:: ; unreferenced
|
||||
ld a, 4
|
||||
ld [wMusicFade], a
|
||||
ret
|
||||
|
||||
FadeInMusic::
|
||||
FadeInToMusic::
|
||||
ld a, 4 | (1 << MUSIC_FADE_IN_F)
|
||||
ld [wMusicFade], a
|
||||
ret
|
||||
|
@@ -117,7 +117,7 @@ GetFarWRAMByte::
|
||||
ldh a, [hFarByte]
|
||||
ret
|
||||
|
||||
GetFarWRAMWord::
|
||||
GetFarWRAMWord:: ; unreferenced
|
||||
ldh [hTempBank], a
|
||||
ldh a, [rSVBK]
|
||||
push af
|
||||
|
@@ -24,6 +24,7 @@ FarCall_hl::
|
||||
ldh a, [hTempBank]
|
||||
rst Bankswitch
|
||||
call FarCall_JumpToHL
|
||||
; fallthrough
|
||||
|
||||
ReturnFarCall::
|
||||
; We want to retain the contents of f.
|
||||
|
@@ -337,6 +337,7 @@ Get2bpp::
|
||||
ldh a, [rLCDC]
|
||||
bit rLCDC_ENABLE, a
|
||||
jp nz, Request2bpp
|
||||
; fallthrough
|
||||
|
||||
Copy2bpp:
|
||||
; copy c 2bpp tiles from b:de to hl
|
||||
@@ -366,6 +367,7 @@ Get1bpp::
|
||||
ldh a, [rLCDC]
|
||||
bit rLCDC_ENABLE, a
|
||||
jp nz, Request1bpp
|
||||
; fallthrough
|
||||
|
||||
Copy1bpp::
|
||||
; copy c 1bpp tiles from b:de to hl
|
||||
|
@@ -261,19 +261,20 @@ StopAutoInput::
|
||||
ld [wInputType], a
|
||||
ret
|
||||
|
||||
JoyTitleScreenInput::
|
||||
JoyTitleScreenInput:: ; unreferenced
|
||||
.loop
|
||||
|
||||
call DelayFrame
|
||||
|
||||
push bc
|
||||
call JoyTextDelay
|
||||
pop bc
|
||||
|
||||
; Save data can be deleted by pressing Up + B + Select.
|
||||
ldh a, [hJoyDown]
|
||||
cp D_UP | SELECT | B_BUTTON
|
||||
jr z, .keycombo
|
||||
|
||||
; Press Start or A to start the game.
|
||||
ldh a, [hJoyLast]
|
||||
and START | A_BUTTON
|
||||
jr nz, .keycombo
|
||||
|
@@ -1109,14 +1109,14 @@ ObjectEventText::
|
||||
text_far _ObjectEventText
|
||||
text_end
|
||||
|
||||
BGEvent::
|
||||
BGEvent:: ; unreferenced
|
||||
jumptext BGEventText
|
||||
|
||||
BGEventText::
|
||||
text_far _BGEventText
|
||||
text_end
|
||||
|
||||
CoordinatesEvent::
|
||||
CoordinatesEvent:: ; unreferenced
|
||||
jumptext CoordinatesEventText
|
||||
|
||||
CoordinatesEventText::
|
||||
@@ -2047,7 +2047,7 @@ SwitchToAnyMapAttributesBank::
|
||||
rst Bankswitch
|
||||
ret
|
||||
|
||||
GetMapAttributesBank::
|
||||
GetMapAttributesBank:: ; unreferenced
|
||||
ld a, [wMapGroup]
|
||||
ld b, a
|
||||
ld a, [wMapNumber]
|
||||
|
@@ -282,8 +282,9 @@ MenuBoxCoord2Attr::
|
||||
ld c, a
|
||||
ld a, [wMenuBorderTopCoord]
|
||||
ld b, a
|
||||
; fallthrough
|
||||
|
||||
Coord2Attr::
|
||||
Coord2Attr:: ; unreferenced
|
||||
; Return the address of wAttrmap(c, b) in hl.
|
||||
xor a
|
||||
ld h, a
|
||||
@@ -835,7 +836,7 @@ InterpretBattleMenu::
|
||||
ld a, [wMenuCursorBuffer]
|
||||
ret
|
||||
|
||||
InterpretMobileMenu::
|
||||
InterpretMobileMenu:: ; unreferenced
|
||||
ldh a, [hROMBank]
|
||||
ld [wMenuData_2DMenuItemStringsBank], a
|
||||
farcall _InterpretMobileMenu
|
||||
|
@@ -16,6 +16,7 @@ UpdateCGBPals::
|
||||
ldh a, [hCGBPalUpdate]
|
||||
and a
|
||||
ret z
|
||||
; fallthrough
|
||||
|
||||
ForceUpdateCGBPals::
|
||||
ldh a, [rSVBK]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
Cosine::
|
||||
Cosine:: ; unreferenced
|
||||
; a = d * cos(a * pi/32)
|
||||
add %010000 ; cos(x) = sin(x + pi/2)
|
||||
; fallthrough
|
||||
|
Reference in New Issue
Block a user