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, remove, or revise many unreferenced labels
This commit is contained in:
@@ -436,7 +436,7 @@ SpecialMapMusic::
|
||||
and a
|
||||
ret
|
||||
|
||||
.bike
|
||||
.bike ; unreferenced
|
||||
ld de, MUSIC_BICYCLE
|
||||
scf
|
||||
ret
|
||||
|
@@ -275,6 +275,6 @@ PushLYOverrides::
|
||||
ld a, HIGH(wLYOverrides)
|
||||
ld [wRequested2bppDest + 1], a
|
||||
|
||||
ld a, (wLYOverridesEnd - wLYOverrides) / 16
|
||||
ld [wRequested2bpp], a
|
||||
ld a, (wLYOverridesEnd - wLYOverrides) / LEN_2BPP_TILE
|
||||
ld [wRequested2bppSize], a
|
||||
ret
|
||||
|
@@ -80,7 +80,6 @@ LZ_LONG_HI EQU %00000011
|
||||
cp LZ_LONG
|
||||
jr nz, .short
|
||||
|
||||
.long
|
||||
; The count is now 10 bits.
|
||||
|
||||
; Read the next 3 bits.
|
||||
@@ -133,7 +132,7 @@ LZ_LONG_HI EQU %00000011
|
||||
cp LZ_ZERO
|
||||
jr z, .Zero
|
||||
|
||||
.Literal:
|
||||
; Literal
|
||||
; Read literal data for bc bytes.
|
||||
.lloop
|
||||
dec c
|
||||
@@ -215,10 +214,8 @@ LZ_LONG_HI EQU %00000011
|
||||
bit 7, a ; sign
|
||||
jr z, .positive
|
||||
|
||||
.negative
|
||||
; hl = de - a
|
||||
; Since we can't subtract a from de,
|
||||
; Make it negative and add de.
|
||||
; negative
|
||||
; hl = de + -a
|
||||
and %01111111
|
||||
cpl
|
||||
add e
|
||||
|
18
home/gfx.asm
18
home/gfx.asm
@@ -111,7 +111,7 @@ LoadFontsExtra::
|
||||
farcall _LoadFontsExtra2
|
||||
ret
|
||||
|
||||
LoadFontsExtra2:
|
||||
LoadFontsExtra2: ; unreferenced
|
||||
farcall _LoadFontsExtra2
|
||||
ret
|
||||
|
||||
@@ -226,10 +226,10 @@ Request2bpp::
|
||||
cp [hl]
|
||||
jr nc, .cycle
|
||||
|
||||
ld [wRequested2bpp], a
|
||||
ld [wRequested2bppSize], a
|
||||
.wait
|
||||
call DelayFrame
|
||||
ld a, [wRequested2bpp]
|
||||
ld a, [wRequested2bppSize]
|
||||
and a
|
||||
jr nz, .wait
|
||||
|
||||
@@ -245,11 +245,11 @@ Request2bpp::
|
||||
|
||||
.cycle
|
||||
ldh a, [hTilesPerCycle]
|
||||
ld [wRequested2bpp], a
|
||||
ld [wRequested2bppSize], a
|
||||
|
||||
.wait2
|
||||
call DelayFrame
|
||||
ld a, [wRequested2bpp]
|
||||
ld a, [wRequested2bppSize]
|
||||
and a
|
||||
jr nz, .wait2
|
||||
|
||||
@@ -300,10 +300,10 @@ Request1bpp::
|
||||
cp [hl]
|
||||
jr nc, .cycle
|
||||
|
||||
ld [wRequested1bpp], a
|
||||
ld [wRequested1bppSize], a
|
||||
.wait
|
||||
call DelayFrame
|
||||
ld a, [wRequested1bpp]
|
||||
ld a, [wRequested1bppSize]
|
||||
and a
|
||||
jr nz, .wait
|
||||
|
||||
@@ -319,11 +319,11 @@ Request1bpp::
|
||||
|
||||
.cycle
|
||||
ldh a, [hTilesPerCycle]
|
||||
ld [wRequested1bpp], a
|
||||
ld [wRequested1bppSize], a
|
||||
|
||||
.wait2
|
||||
call DelayFrame
|
||||
ld a, [wRequested1bpp]
|
||||
ld a, [wRequested1bppSize]
|
||||
and a
|
||||
jr nz, .wait2
|
||||
|
||||
|
@@ -33,10 +33,11 @@ PrintBCDNumber::
|
||||
jr nz, .loop
|
||||
bit PRINTNUM_LEADINGZEROS_F, b
|
||||
jr z, .done ; if so, we are done
|
||||
.numberEqualsZero ; if every digit of the BCD number is zero
|
||||
; every digit of the BCD number is zero
|
||||
bit PRINTNUM_LEFTALIGN_F, b
|
||||
jr nz, .skipLeftAlignmentAdjustment
|
||||
dec hl ; if the string is left-aligned, it needs to be moved back one space
|
||||
; the string is left-aligned; it needs to be moved back one space
|
||||
dec hl
|
||||
.skipLeftAlignmentAdjustment
|
||||
bit PRINTNUM_MONEY_F, b
|
||||
jr z, .skipCurrencySymbol
|
||||
@@ -53,7 +54,7 @@ PrintBCDDigit::
|
||||
and %00001111
|
||||
and a
|
||||
jr z, .zeroDigit
|
||||
.nonzeroDigit
|
||||
; nonzero digit
|
||||
bit PRINTNUM_LEADINGZEROS_F, b ; have any non-space characters been printed?
|
||||
jr z, .outputDigit
|
||||
; if bit 7 is set, then no numbers have been printed yet
|
||||
|
@@ -278,7 +278,7 @@ Serial_PrintWaitingTextAndSyncAndExchangeNybble::
|
||||
call WaitLinkTransfer
|
||||
jp SafeLoadTempTilemapToTilemap
|
||||
|
||||
Serial_SyncAndExchangeNybble::
|
||||
Serial_SyncAndExchangeNybble:: ; unreferenced
|
||||
call LoadTilemapToTempTilemap
|
||||
callfar PlaceWaitingText
|
||||
jp WaitLinkTransfer
|
||||
|
@@ -242,7 +242,7 @@ ENDM
|
||||
dict "゙", .place ; should be .diacritic
|
||||
jr .not_diacritic
|
||||
|
||||
.diacritic
|
||||
.diacritic ; unreferenced
|
||||
ld b, a
|
||||
call Diacritic
|
||||
jp NextChar
|
||||
@@ -250,18 +250,19 @@ ENDM
|
||||
.not_diacritic
|
||||
cp FIRST_REGULAR_TEXT_CHAR
|
||||
jr nc, .place
|
||||
|
||||
; dakuten or handakuten
|
||||
cp "パ"
|
||||
jr nc, .handakuten
|
||||
|
||||
.dakuten
|
||||
; dakuten
|
||||
cp FIRST_HIRAGANA_DAKUTEN_CHAR
|
||||
jr nc, .hiragana_dakuten
|
||||
; katakana dakuten
|
||||
add "カ" - "ガ"
|
||||
jr .katakana_dakuten
|
||||
jr .place_dakuten
|
||||
|
||||
.hiragana_dakuten
|
||||
add "か" - "が"
|
||||
.katakana_dakuten
|
||||
.place_dakuten
|
||||
ld b, "゙" ; dakuten
|
||||
call Diacritic
|
||||
jr .place
|
||||
@@ -269,11 +270,13 @@ ENDM
|
||||
.handakuten
|
||||
cp "ぱ"
|
||||
jr nc, .hiragana_handakuten
|
||||
; katakana handakuten
|
||||
add "ハ" - "パ"
|
||||
jr .katakana_handakuten
|
||||
jr .place_handakuten
|
||||
|
||||
.hiragana_handakuten
|
||||
add "は" - "ぱ"
|
||||
.katakana_handakuten
|
||||
.place_handakuten
|
||||
ld b, "゚" ; handakuten
|
||||
call Diacritic
|
||||
|
||||
|
@@ -184,7 +184,7 @@ UpdateBGMap::
|
||||
|
||||
THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
|
||||
|
||||
.bottom
|
||||
; bottom
|
||||
ld de, 2 * THIRD_HEIGHT * SCREEN_WIDTH
|
||||
add hl, de
|
||||
ld sp, hl
|
||||
@@ -267,7 +267,7 @@ endr
|
||||
Serve1bppRequest::
|
||||
; Only call during the first fifth of VBlank
|
||||
|
||||
ld a, [wRequested1bpp]
|
||||
ld a, [wRequested1bppSize]
|
||||
and a
|
||||
ret z
|
||||
|
||||
@@ -278,7 +278,7 @@ Serve1bppRequest::
|
||||
cp LY_VBLANK + 2
|
||||
ret nc
|
||||
|
||||
; Copy [wRequested1bpp] 1bpp tiles from [wRequested1bppSource] to [wRequested1bppDest]
|
||||
; Copy [wRequested1bppSize] 1bpp tiles from [wRequested1bppSource] to [wRequested1bppDest]
|
||||
|
||||
ld [hSPBuffer], sp
|
||||
|
||||
@@ -296,11 +296,11 @@ Serve1bppRequest::
|
||||
ld l, a
|
||||
|
||||
; # tiles to copy
|
||||
ld a, [wRequested1bpp]
|
||||
ld a, [wRequested1bppSize]
|
||||
ld b, a
|
||||
|
||||
xor a
|
||||
ld [wRequested1bpp], a
|
||||
ld [wRequested1bppSize], a
|
||||
|
||||
.next
|
||||
|
||||
@@ -345,7 +345,7 @@ endr
|
||||
Serve2bppRequest::
|
||||
; Only call during the first fifth of VBlank
|
||||
|
||||
ld a, [wRequested2bpp]
|
||||
ld a, [wRequested2bppSize]
|
||||
and a
|
||||
ret z
|
||||
|
||||
@@ -358,12 +358,12 @@ Serve2bppRequest::
|
||||
jr _Serve2bppRequest
|
||||
|
||||
Serve2bppRequest_VBlank::
|
||||
ld a, [wRequested2bpp]
|
||||
ld a, [wRequested2bppSize]
|
||||
and a
|
||||
ret z
|
||||
|
||||
_Serve2bppRequest::
|
||||
; Copy [wRequested2bpp] 2bpp tiles from [wRequested2bppSource] to [wRequested2bppDest]
|
||||
; Copy [wRequested2bppSize] 2bpp tiles from [wRequested2bppSource] to [wRequested2bppDest]
|
||||
|
||||
ld [hSPBuffer], sp
|
||||
|
||||
@@ -381,11 +381,11 @@ _Serve2bppRequest::
|
||||
ld l, a
|
||||
|
||||
; # tiles to copy
|
||||
ld a, [wRequested2bpp]
|
||||
ld a, [wRequested2bppSize]
|
||||
ld b, a
|
||||
|
||||
xor a
|
||||
ld [wRequested2bpp], a
|
||||
ld [wRequested2bppSize], a
|
||||
|
||||
.next
|
||||
|
||||
|
Reference in New Issue
Block a user