| 1 | #include "stubs_asm.h" |
|---|
| 2 | |
|---|
| 3 | // RAM addresses |
|---|
| 4 | |
|---|
| 5 | // --- already changed but unshure if 100% correct |
|---|
| 6 | DEF(physw_status, 0x32E94) // ROM:FF8347D4, in ShowPhySwStatus() search "GpioStatus" or ROM:FF833F4C |
|---|
| 7 | |
|---|
| 8 | DEF(physw_run, 0x1C34) // ROM:FF834400, in task_PhySw() 0x1C28 + 0xC = 0x1C34 |
|---|
| 9 | |
|---|
| 10 | // ROM:FF860864 LDR R0, =0x24A4 <--- |
|---|
| 11 | // ROM:FF860868 STMFD SP!, {R4,LR} |
|---|
| 12 | // ROM:FF86086C LDR R0, [R0,#8] <--- |
|---|
| 13 | // ROM:FF860870 BL sub_FF839B50 |
|---|
| 14 | // ROM:FF860874 TST R0, #1 |
|---|
| 15 | // ROM:FF860878 LDMNEFD SP!, {R4,LR} |
|---|
| 16 | // ROM:FF86087C MOVNE R1, #0x42 |
|---|
| 17 | // ROM:FF860880 ADRNE R0, aLeddrv_c ; "LEDDrv.c" |
|---|
| 18 | // ROM:FF860884 BNE DebugAssert |
|---|
| 19 | // ROM:FF860888 LDMFD SP!, {R4,PC} |
|---|
| 20 | DEF(led_table, 0x24AC) // R0 -> 0x24A4 + 0x8 |
|---|
| 21 | |
|---|
| 22 | DEF(playrec_mode,0x2D78) // ROM:FF838AE4 (ROM:FF882328) search for String "MenuIn" 0x2D74 + 4, OK, play: 0x3, rec: 0x2 |
|---|
| 23 | |
|---|
| 24 | // like SX210 |
|---|
| 25 | // ROM:FFA1356C ScreenLock ; CODE XREF: sub_FFA121C0 |
|---|
| 26 | // ROM:FFA1356C STMFD SP!, {R4,LR} |
|---|
| 27 | // ROM:FFA13570 LDR R4, =0x92AC <--- |
|---|
| 28 | // ROM:FFA13574 LDR R0, [R4,#0x20] <--- |
|---|
| 29 | // ROM:FFA13578 CMP R0, #0 |
|---|
| 30 | // ROM:FFA1357C BNE loc_FFA13590 |
|---|
| 31 | // ROM:FFA13580 ADR R1, aScreenlock ; "ScreenLock" |
|---|
| 32 | // ROM:FFA13584 MOV R0, #0x60 |
|---|
| 33 | // ROM:FFA13588 BL CameraLog ; LOCATION: CameraLog.c:237 |
|---|
| 34 | // ROM:FFA1358C BL sub_FF8ABEF8 |
|---|
| 35 | DEF(enabled_refresh_physical_screen, 0x92CC) // ROM:FFA1339C or ROM:FFA13570, 0x92AC + 0x20 = 0x92CC |
|---|
| 36 | |
|---|
| 37 | // ROM:FFAC96B8 sub_FFAC96B8 |
|---|
| 38 | // ROM:FFAC96B8 LDR R1, =FlashParamsTable |
|---|
| 39 | // ROM:FFAC96BC LDR R0, [R1,R0,LSL#2] |
|---|
| 40 | // ROM:FFAC96C0 BX LR |
|---|
| 41 | DEF(FlashParamsTable, 0xFFC00624) // referenced at ROM:FFAC96B8 |
|---|
| 42 | |
|---|
| 43 | // ToDo: check if correct, in playback CHDK OSD does not hide if function menu is active |
|---|
| 44 | // ROM:FF890234, in function StartRecModeMenu() or eventproc_StartRecModeMenu() |
|---|
| 45 | //DEF(canon_menu_active, 0x303C) // ROM:FF890234 0x303C |
|---|
| 46 | DEF(canon_menu_active, 0x3040) // ROM:FF890234 0x303C + ROM:FF890238 4 |
|---|
| 47 | |
|---|
| 48 | // ToDo: check if correct |
|---|
| 49 | // if canon_shoot_menu_active is wrong enable CAM_SHOW_OSD_IN_SHOOT_MENU as a workaround to display CHDK OSD in record mode |
|---|
| 50 | DEF(canon_shoot_menu_active, 0x7B5D) // ROM:FF9ABD94 0x7B5C + ROM:FF9ABD98 1 |
|---|
| 51 | |
|---|
| 52 | // search for string "PressRightButton" |
|---|
| 53 | DEF(levent_table, 0xFFB9F59C) |
|---|
| 54 | |
|---|
| 55 | // ROM:FF96B418 or ROM:FF96A780 or ROM:FF96B0F8, found in task_MovieRecord() |
|---|
| 56 | DEF(movie_status, 0x6A14) // 0x69D8 + 0x3C, OK |
|---|
| 57 | |
|---|
| 58 | // ROM:FF99D340 |
|---|
| 59 | DEF(recreview_hold, 0x780E) // 0x780C + 2 ?!? |
|---|
| 60 | |
|---|
| 61 | // ROM:FF965978 |
|---|
| 62 | DEF(zoom_busy, 0x6908) // 0x68EC + 0x1C ?!? |
|---|
| 63 | |
|---|
| 64 | // ROM:FF961C50 |
|---|
| 65 | DEF(focus_busy, 0x67F0) // 0x67E8 + 0x8 ?!? |
|---|
| 66 | |
|---|
| 67 | // ROM:FFACC8B4, search for "ZoomCon_EnterCaptModeChange" |
|---|
| 68 | DEF(zoom_status, 0x315B) // ?!? |
|---|
| 69 | |
|---|
| 70 | // ROM:FFA114FC, called by RefreshPhysicalScreen() |
|---|
| 71 | DEF(full_screen_refresh, 0x926C) |
|---|
| 72 | |
|---|
| 73 | // ROM:FF96F398, like SX210 and SD990 |
|---|
| 74 | DEF(some_flag_for_af_scan, 0x6DD8) |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | // --- ToDo: required ? |
|---|
| 78 | DEF(some_f_for_dng, 0xDEAD) // ??? TODO NOT FOUND! |
|---|
| 79 | DEF(second_ext_for_dng, 0xDEAD) // ??? TODO NOT FOUND! |
|---|