Comment more ROM labels as unreferenced

(Some unreferenced labels are above code which is still used via fallthrough!)
This commit is contained in:
Rangi
2020-06-21 18:33:31 -04:00
parent 91774f206e
commit c3c18dd196
21 changed files with 50 additions and 53 deletions

View File

@@ -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

View File

@@ -117,7 +117,7 @@ GetFarWRAMByte::
ldh a, [hFarByte]
ret
GetFarWRAMWord::
GetFarWRAMWord:: ; unreferenced
ldh [hTempBank], a
ldh a, [rSVBK]
push af

View File

@@ -24,6 +24,7 @@ FarCall_hl::
ldh a, [hTempBank]
rst Bankswitch
call FarCall_JumpToHL
; fallthrough
ReturnFarCall::
; We want to retain the contents of f.

View File

@@ -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

View File

@@ -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

View File

@@ -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]

View File

@@ -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

View File

@@ -16,6 +16,7 @@ UpdateCGBPals::
ldh a, [hCGBPalUpdate]
and a
ret z
; fallthrough
ForceUpdateCGBPals::
ldh a, [rSVBK]

View File

@@ -1,4 +1,4 @@
Cosine::
Cosine:: ; unreferenced
; a = d * cos(a * pi/32)
add %010000 ; cos(x) = sin(x + pi/2)
; fallthrough