diff options
author | YamaArashi <shadow962@live.com> | 2016-02-03 00:26:25 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-03 00:26:25 -0800 |
commit | 5fd538d1802b2ae9e3e854140f68cb45fe50e97a (patch) | |
tree | a7d3cc4b70435a6cc4a94b4497307393d743f28d /data | |
parent | 6f965a9eca507c27049fbd90a57f620b63c92d6d (diff) |
RTC code/data
Diffstat (limited to 'data')
-rw-r--r-- | data/data2.s | 7 | ||||
-rw-r--r-- | data/rtc_util.s | 32 |
2 files changed, 34 insertions, 5 deletions
diff --git a/data/data2.s b/data/data2.s index 88cf02113..9f5b37cd8 100644 --- a/data/data2.s +++ b/data/data2.s @@ -363,11 +363,8 @@ gUnknown_081E75CC: ; 81E75CC gUnknown_081E75FC: ; 81E75FC .incbin "baserom.gba", 0x001e75fc, 0x14 -gUnknown_081E7610: ; 81E7610 - .incbin "baserom.gba", 0x001e7610, 0xc - -gUnknown_081E761C: ; 81E761C - .incbin "baserom.gba", 0x001e761c, 0x30 +; 81E7610 + .include "data/rtc_util.s" gUnknown_081E764C: ; 81E764C .incbin "baserom.gba", 0x001e764c, 0x40 diff --git a/data/rtc_util.s b/data/rtc_util.s new file mode 100644 index 000000000..9ee05f47e --- /dev/null +++ b/data/rtc_util.s @@ -0,0 +1,32 @@ + .align 2 + +; 2000 Jan 1 00:00:00 +gDefaultRtcInfo: ; 81E7610 + .byte 0 + .byte 1 + .byte 1 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + .byte 0 + + .align 2 + +gNumDaysInMonths: ; 81E761C + .4byte 31 + .4byte 28 + .4byte 31 + .4byte 30 + .4byte 31 + .4byte 30 + .4byte 31 + .4byte 31 + .4byte 30 + .4byte 31 + .4byte 30 + .4byte 31 |