summaryrefslogtreecommitdiff
path: root/engine/rtc.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-08 11:18:39 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-08 11:18:39 -0500
commit5c4dc08ee451f699471ce69fc8f98265bc80939d (patch)
tree33223a7ef5c01b7fbf4a3a3a176c65b237d5e5ab /engine/rtc.asm
parentd4aa6edfa744a45cc82b20cd813462af870b6fef (diff)
parent740f91370db08d2e30c16f34be83c6d14e7d1c60 (diff)
Merge branch 'master' into refactor-preprocessor
Diffstat (limited to 'engine/rtc.asm')
-rw-r--r--engine/rtc.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/engine/rtc.asm b/engine/rtc.asm
new file mode 100644
index 000000000..91428d03b
--- /dev/null
+++ b/engine/rtc.asm
@@ -0,0 +1,25 @@
+RTC: ; 46f
+; update time and time-sensitive palettes
+
+; rtc enabled?
+ ld a, [$c2ce]
+ 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
+