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-02-10 23:14:41 +00:00
|
|
|
ld a, [wc2ce]
|
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
|
|
|
|
|