ARM7 Registers: Difference between revisions
AuroraWright (talk | contribs) No edit summary |
document 0x10018110/0x10018114 |
||
Line 40: | Line 40: | ||
| <code>u32</code> | | <code>u32</code> | ||
| <code>0x10018110</code> | | <code>0x10018110</code> | ||
| <code> | | <code>ARM7_RTC_VAL_LO</code> | ||
| 4 | | 4 | ||
|- | |- | ||
| <code>u32</code> | | <code>u32</code> | ||
| <code>0x10018114</code> | | <code>0x10018114</code> | ||
| <code> | | <code>ARM7_RTC_VAL_HI</code> | ||
| 4 | | 4 | ||
|- | |- | ||
Line 74: | Line 74: | ||
===ARM7_SAVE_MODE=== | ===ARM7_SAVE_MODE=== | ||
This tells the save storage emulation hardware which device type to emulate (64k EEPROM, a 512k Flash chip model, and SRAM are all that have been used officially; several other 512k Flash chip models, two 1 Mbit Flash chip models and 8k EEPROM are also supported). This comes directly from the [[3DS_Virtual_Console#Footer|ROM footer]]. | This tells the save storage emulation hardware which device type to emulate (64k EEPROM, a 512k Flash chip model, and SRAM are all that have been used officially; several other 512k Flash chip models, two 1 Mbit Flash chip models and 8k EEPROM are also supported). This comes directly from the [[3DS_Virtual_Console#Footer|ROM footer]]. | ||
===ARM7_RTC_VAL=== | |||
These registers are set to the current LgyP9 date+time before ARM7_RTC_CNT/ARM7_RTC_? registers are used. | |||
They contain the following structure, set up on the stack then both u32 registers are written one after the other: | |||
s8 year_since_2000_bcd; | |||
s8 month_bcd; | |||
s8 day_bcd; | |||
s8 day_of_week; | |||
s8 hour_bcd; | |||
s8 minute_bcd; | |||
s8 second_bcd; | |||
===ARM7_RTC ''?''=== | ===ARM7_RTC ''?''=== |