Identify more bit flags (#1153)

This commit is contained in:
Sylvie
2024-11-29 19:29:30 -05:00
committed by GitHub
parent 8894e29da2
commit 644bd42fb0
78 changed files with 539 additions and 472 deletions

View File

@@ -443,7 +443,7 @@ ConfirmContinue:
Continue_CheckRTC_RestartClock:
call CheckRTCStatus
and %10000000 ; Day count exceeded 16383
and RTC_RESET
jr z, .pass
farcall RestartClock
ld a, c
@@ -464,8 +464,8 @@ FinishContinueFunction:
ld hl, wGameTimerPaused
set GAME_TIMER_COUNTING_F, [hl]
res GAME_TIMER_MOBILE_F, [hl]
ld hl, wEnteredMapFromContinue
set 1, [hl]
ld hl, wMapNameSignFlags
set SHOWN_MAP_NAME_SIGN, [hl]
farcall OverworldLoop
ld a, [wSpawnAfterChampion]
cp SPAWN_RED
@@ -478,7 +478,7 @@ FinishContinueFunction:
DisplaySaveInfoOnContinue:
call CheckRTCStatus
and %10000000
and RTC_RESET
jr z, .clock_ok
lb de, 4, 8
call DisplayContinueDataWithRTCError
@@ -1266,7 +1266,7 @@ ResetClock:
jp Init
UpdateTitleTrailSprite: ; unreferenced
; If bit 0 or 1 of [wTitleScreenTimer] is set, we don't need to be here.
; Only update every 4 seconds, when the low 2 bits of [wTitleScreenTimer] are 0.
ld a, [wTitleScreenTimer]
and %00000011
ret nz
@@ -1279,7 +1279,7 @@ UpdateTitleTrailSprite: ; unreferenced
add hl, hl
ld de, .TitleTrailCoords
add hl, de
; If bit 2 of [wTitleScreenTimer] is set, get the second coords; else, get the first coords
; Every 8 seconds (i.e. every other update), get the second coords; else, get the first coords
ld a, [wTitleScreenTimer]
and %00000100
srl a