From 9f53825ce2701f94470a98b3decd8013fbeba91a Mon Sep 17 00:00:00 2001 From: yenatch Date: Sat, 7 Sep 2013 23:38:19 -0400 Subject: move common asm from engine/ to common/ engine/ was getting really bloated and common asm wasnt what it was made for --- common/rtc.asm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 common/rtc.asm (limited to 'common/rtc.asm') 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 + -- cgit v1.2.3