source: branches/release-1_0/platform/a1000/sub/100b/stubs_min.S @ 1716

Revision 1716, 2.7 KB checked in by reyalp, 2 years ago (diff)

a1000 updates from srsa_4c in http://chdk.setepontos.com/index.php?topic=650.msg81931#msg81931

  • CAM_STARTUP_CRASH_FILE_OPEN_FIX
  • enabled_refresh_physical_screen
  • use stubs from sig finder
  • 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)
12DEF(led_table,                          0x2290) // 0x270C + 4
13
14// found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34))
15// ROM:FF957178   LDR     R4, =0xB37C
16// ..
17// ROM:FF9571BC   LDR     R0, [R4,#0x34]
18// ROM:FF9571C0   CMP     R0, #0
19// ROM:FF9571C4   MOVNE   R1, #0xE0
20// ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c"
21// ROM:FF9571CC   BLNE    assert
22//DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34
23
24// Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408
25//                                    <- MoveFocusLensToDistance (sub_FFA0D41C))
26// ROM:FF95071C   LDR     R4, =0xB274
27// ..
28// ROM:FF950770   LDR     R0, [R4,#8]
29// ROM:FF950774   CMP     R0, #0
30// ROM:FF950778   MOVNE   R1, #0x90
31// ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c"
32// ROM:FF950780   BLNE    assert
33//DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4
34
35// Same as previous variable, unusable. Originally found it by peeking through
36// memory and it looked suitable at first. This address along with 0xBE64
37// (suitable as canon_shoot_menu_active, code agrees) looked suitable but I got
38// the basic idea wrong. Listed for completeness.
39
40// Found in sub_FF982310 (deactivates shoot menu?). Ewavr found it but didn't
41// clearly specify where, so this is a guess.
42// ROM:FF982310   LDR     R1, =0xC05C
43// ROM:FF982314   MOV     R0, #0
44// ROM:FF982318   STRB    R0, [R1]
45// ROM:FF98231C   STRB    R0, [R1,#1]
46//DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1
47
48// Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer
49// 'search for LDR R12, =0x3007'. I guess this is the right one then :)
50// ROM:FF9754AC 000                 STMFD   SP!, {R4,LR}
51// ROM:FF9754B0 008                 LDR     R1, =0xBD60
52// ROM:FF9754B4 008                 LDR     R12, =0x3007
53// ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC]
54//DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC
55//DEF(movie_status,                       0x5868 + 0x38)
56DEF(mode_magic,                         0x58D4)
57DEF(enabled_refresh_physical_screen,    0xa460 + 0x30) // found in sub_ffd7a308
Note: See TracBrowser for help on using the repository browser.