2014-02-02 01:26:39 +00:00
|
|
|
RTC:: ; 46f
|
2013-09-03 22:35:37 +00:00
|
|
|
; update time and time-sensitive palettes
|
|
|
|
|
|
|
|
; rtc enabled?
|
2015-11-25 15:26:30 +00:00
|
|
|
ld a, [wSpriteUpdatesEnabled]
|
2013-09-03 22:35:37 +00:00
|
|
|
cp 0
|
|
|
|
ret z
|
|
|
|
|
|
|
|
call UpdateTime
|
|
|
|
|
|
|
|
; obj update on?
|
|
|
|
ld a, [VramState]
|
|
|
|
bit 0, a ; obj update
|
|
|
|
ret z
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
TimeOfDayPals:: ; 47e
|
2013-09-03 22:35:37 +00:00
|
|
|
callab _TimeOfDayPals
|
|
|
|
ret
|
|
|
|
; 485
|
|
|
|
|
2014-02-02 01:26:39 +00:00
|
|
|
UpdateTimePals:: ; 485
|
2013-09-03 22:35:37 +00:00
|
|
|
callab _UpdateTimePals
|
|
|
|
ret
|
|
|
|
; 48c
|