summaryrefslogtreecommitdiff
path: root/engine/rtc.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-05 11:30:12 -0700
committerBryan Bishop <kanzure@gmail.com>2013-09-05 11:30:12 -0700
commit40b4c87db7e9472d99186b67bdec3d48a2132e73 (patch)
treeb0ea0d40187c103dbb9f8bd185ee5f40770b5b53 /engine/rtc.asm
parent4e36d85ee966f8f22531183679549061263b2166 (diff)
parent60dde1d03ed43de1e7ef777e4198963620c73958 (diff)
Merge pull request #188 from yenatch/split-common
recomment and split out a ton of common asm (bank 0)
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
+