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_ffd7a308