| Revision 1721,
769 bytes
checked in by philmoz, 15 months ago
(diff) |
|
Minor changes:
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #include "stubs_asm.h" |
|---|
| 2 | |
|---|
| 3 | // found in taskcreate_LEDCon (sub_FF84CCD0) |
|---|
| 4 | // ROM:FF84CCD4 LDR R4, =0x270C @ Base addr |
|---|
| 5 | // ROM:FF84CCD8 LDR R0, [R4] @ Load value (dereference) |
|---|
| 6 | // ROM:FF84CCDC CMP R0, #0 @ If it's not 0, it's already initialized, |
|---|
| 7 | // ROM:FF84CCE0 BNE locret_FF84CDC8 @ so return. |
|---|
| 8 | // ROM:FF84CCE4 MOV R0, #0x3C0 @ Else (if it's 1) |
|---|
| 9 | // ROM:FF84CCE8 BL sub_FF82AC28 @ R0 = malloc(0x3C0); // allocate the LED table |
|---|
| 10 | // .. |
|---|
| 11 | // ROM:FF84CCFC STR R0, [R4,#4] @ Store the address of the LED table (base+4) |
|---|
| 12 | DEF(led_table, 0x2290) // 0x270C + 4 |
|---|
| 13 | |
|---|
| 14 | DEF(mode_magic, 0x58D4) |
|---|
| 15 | DEF(enabled_refresh_physical_screen, 0xA460 + 0x30) // Found in sub_ffd7a36c |
|---|
Note: See
TracBrowser
for help on using the repository browser.