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

Revision 1639, 2.7 KB checked in by philmoz, 17 months ago (diff)

Set SVN properties on newly added directories and files.

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