summaryrefslogtreecommitdiff
path: root/home/rtc.asm
blob: 9fb71c0be7feeddaa7ef7933d14ddd5a3d01c622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
RTC:: ; 46f
; update time and time-sensitive palettes

; rtc enabled?
	ld a, [wSpriteUpdatesEnabled]
	cp 0
	ret z
	
	call UpdateTime
	
; obj update on?
	ld a, [VramState]
	bit 0, a ; obj update
	ret z

TimeOfDayPals:: ; 47e
	callab _TimeOfDayPals
	ret
; 485

UpdateTimePals:: ; 485
	callab _UpdateTimePals
	ret
; 48c