summaryrefslogtreecommitdiff
path: root/common/rtc.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-09-07 23:38:19 -0400
committeryenatch <yenatch@gmail.com>2013-09-07 23:38:19 -0400
commit9f53825ce2701f94470a98b3decd8013fbeba91a (patch)
tree47c7a1380ebf0569eb7d5765b28f25843d636675 /common/rtc.asm
parent7a3a4f913b32784480dc297e8a4794934ec87b06 (diff)
move common asm from engine/ to common/
engine/ was getting really bloated and common asm wasnt what it was made for
Diffstat (limited to 'common/rtc.asm')
-rw-r--r--common/rtc.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/common/rtc.asm b/common/rtc.asm
new file mode 100644
index 000000000..91428d03b
--- /dev/null
+++ b/common/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
+