CHDK_DE Vorschauversion  Trunk Rev. 5429
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
capt_seq.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.h"
#include "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define USE_STUBS_NRFLAG   1
 
#define NR_AUTO   (0)
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define NR_AUTO   (0)

Definiert in Zeile 9 der Datei capt_seq.c.

#define USE_STUBS_NRFLAG   1

Definiert in Zeile 8 der Datei capt_seq.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 15 der Datei capt_seq.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R3-R7,LR} \n"
18 " LDR R7, =0x2E38 \n"
19 " LDR R4, =0x3BB24 \n"
20 " MOV R6, #0 \n"
21 
22 "loc_FF88262C:\n"
23 " LDR R0, [R7, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF83A460 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF882658 \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF8820BC /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R7,PC} \n"
34 
35 "loc_FF882658:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x24 \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF8828C4 \n"
41 " B loc_FF882700 \n"
42 " B loc_FF882718 \n"
43 " B loc_FF88273C \n"
44 " B loc_FF882750 \n"
45 " B loc_FF882748 \n"
46 " B loc_FF88275C \n"
47 " B loc_FF882764 \n"
48 " B loc_FF88276C \n"
49 " B loc_FF882778 \n"
50 " B loc_FF8827A0 \n"
51 " B loc_FF882784 \n"
52 " B loc_FF882790 \n"
53 " B loc_FF882798 \n"
54 " B loc_FF8827A8 \n"
55 " B loc_FF8827B0 \n"
56 " B loc_FF8827B8 \n"
57 " B loc_FF8827C0 \n"
58 " B loc_FF8827C8 \n"
59 " B loc_FF8827D0 \n"
60 " B loc_FF8827D8 \n"
61 " B loc_FF8827E0 \n"
62 " B loc_FF8827E8 \n"
63 " B loc_FF8827F0 \n"
64 " B loc_FF8827FC \n"
65 " B loc_FF882804 \n"
66 " B loc_FF882810 \n"
67 " B loc_FF882818 \n"
68 " B loc_FF882848 \n"
69 " B loc_FF882850 \n"
70 " B loc_FF882858 \n"
71 " B loc_FF882860 \n"
72 " B loc_FF882868 \n"
73 " B loc_FF882870 \n"
74 " B loc_FF882878 \n"
75 " B loc_FF882880 \n"
76 " B loc_FF88288C \n"
77 " B loc_FF8828D0 \n"
78 
79 "loc_FF882700:\n"
80 " BL shooting_expo_iso_override\n" // added
81 " BL sub_FF882E00 \n"
82 " BL shooting_expo_param_override\n" // added
83 " BL sub_FF87FF5C \n"
84 " MOV R0, #0\n" // added
85 " STR R0, [R4,#0x24]\n" // added, fixes overrides behavior at short shutter press (from S95)
86 //" LDR R0, [R4, #0x24] \n" // above patch makes these three lines redundant
87 //" CMP R0, #0 \n"
88 //" BLNE _sub_FF98C6A0 \n"
89 " B loc_FF8828D0 \n"
90 
91 "loc_FF882718:\n"
92 " LDRH R1, [R4] \n"
93 " LDR R0, [R0, #0xC] \n"
94 " SUB R12, R1, #0x4200 \n"
95 " SUBS R12, R12, #0x2E \n"
96 " BNE loc_FF882734 \n"
97 " BL sub_FF98D484 \n"
98 " B loc_FF8828D0 \n"
99 
100 "loc_FF882734:\n"
101 " BL sub_FF98C4CC_my \n" // --> Patched. Old value = 0xFF98C4CC.
102 " B loc_FF8828D0 \n"
103 
104 "loc_FF88273C:\n"
105 " MOV R0, #1 \n"
106 " BL sub_FF883140 \n"
107 " B loc_FF8828D0 \n"
108 
109 "loc_FF882748:\n"
110 " BL sub_FF882A98 \n"
111 " B loc_FF882754 \n"
112 
113 "loc_FF882750:\n"
114 " BL sub_FF882DE0 \n"
115 
116 "loc_FF882754:\n"
117 " STR R6, [R4, #0x24] \n"
118 " B loc_FF8828D0 \n"
119 
120 "loc_FF88275C:\n"
121 " BL sub_FF882DE8 \n"
122 " B loc_FF8828D0 \n"
123 
124 "loc_FF882764:\n"
125 " BL sub_FF883014 \n"
126 " B loc_FF88277C \n"
127 
128 "loc_FF88276C:\n"
129 " LDR R0, [R0, #0xC] \n"
130 " BL sub_FF98C708 \n"
131 " B loc_FF8828D0 \n"
132 
133 "loc_FF882778:\n"
134 " BL sub_FF8830B0 \n"
135 
136 "loc_FF88277C:\n"
137 " BL sub_FF87FF5C \n"
138 " B loc_FF8828D0 \n"
139 
140 "loc_FF882784:\n"
141 " LDR R0, [R4, #0x54] \n"
142 " BL sub_FF883808 \n"
143 " B loc_FF8828D0 \n"
144 
145 "loc_FF882790:\n"
146 " BL sub_FF883B6C \n"
147 " B loc_FF8828D0 \n"
148 
149 "loc_FF882798:\n"
150 " BL sub_FF883BD0 \n"
151 " B loc_FF8828D0 \n"
152 
153 "loc_FF8827A0:\n"
154 " BL sub_FF882DE0 \n"
155 " B loc_FF8828D0 \n"
156 
157 "loc_FF8827A8:\n"
158 " BL sub_FF98B3B8 \n"
159 " B loc_FF8828D0 \n"
160 
161 "loc_FF8827B0:\n"
162 " BL sub_FF98B608 \n"
163 " B loc_FF8828D0 \n"
164 
165 "loc_FF8827B8:\n"
166 " BL sub_FF98B6D4 \n"
167 " B loc_FF8828D0 \n"
168 
169 "loc_FF8827C0:\n"
170 " BL sub_FF98B7E8 \n"
171 " B loc_FF8828D0 \n"
172 
173 "loc_FF8827C8:\n"
174 " BL sub_FF98B8E0 \n"
175 " B loc_FF8828D0 \n"
176 
177 "loc_FF8827D0:\n"
178 " MOV R0, #0 \n"
179 " B loc_FF8827F4 \n"
180 
181 "loc_FF8827D8:\n"
182 " BL sub_FF98BEA0 \n"
183 " B loc_FF8828D0 \n"
184 
185 "loc_FF8827E0:\n"
186 " BL sub_FF98BF44 \n"
187 " B loc_FF8828D0 \n"
188 
189 "loc_FF8827E8:\n"
190 " BL sub_FF98C024 \n"
191 " B loc_FF8828D0 \n"
192 
193 "loc_FF8827F0:\n"
194 " MOV R0, #1 \n"
195 
196 "loc_FF8827F4:\n"
197 " BL sub_FF98BD28 \n"
198 " B loc_FF8828D0 \n"
199 
200 "loc_FF8827FC:\n"
201 " BL sub_FF883380 \n"
202 " B loc_FF8828D0 \n"
203 
204 "loc_FF882804:\n"
205 " BL sub_FF883428 \n"
206 " BL sub_FF98D9AC \n"
207 " B loc_FF8828D0 \n"
208 
209 "loc_FF882810:\n"
210 " BL sub_FF98BBB8 \n"
211 " B loc_FF8828D0 \n"
212 
213 "loc_FF882818:\n"
214 " MOV R2, #2 \n"
215 " ADD R1, R4, #0x60 \n"
216 " MOV R0, #0x6F \n"
217 " BL _GetPropertyCase \n"
218 " TST R0, #1 \n"
219 " LDRNE R1, =0x531 \n"
220 " LDRNE R0, =0xFF8820BC /*'SsShootTask.c'*/ \n"
221 " BLNE _DebugAssert \n"
222 " LDRH R0, [R4, #0x60] \n"
223 " CMP R0, #1 \n"
224 " BLEQ sub_FF98BBAC \n"
225 " B loc_FF8828D0 \n"
226 
227 "loc_FF882848:\n"
228 " BL sub_FF98BC7C \n"
229 " B loc_FF8828D0 \n"
230 
231 "loc_FF882850:\n"
232 " BL sub_FF98DA7C \n"
233 " B loc_FF8828D0 \n"
234 
235 "loc_FF882858:\n"
236 " BL sub_FF837D1C \n"
237 " B loc_FF8828D0 \n"
238 
239 "loc_FF882860:\n"
240 " BL sub_FF8861E8 \n"
241 " B loc_FF8828D0 \n"
242 
243 "loc_FF882868:\n"
244 " BL sub_FF886274 \n"
245 " B loc_FF8828D0 \n"
246 
247 "loc_FF882870:\n"
248 " BL sub_FF98C15C \n"
249 " B loc_FF8828D0 \n"
250 
251 "loc_FF882878:\n"
252 " BL sub_FF98C1C0 \n"
253 " B loc_FF8828D0 \n"
254 
255 "loc_FF882880:\n"
256 " BL sub_FF8862D0 \n"
257 " BL sub_FF886290 \n"
258 " B loc_FF8828D0 \n"
259 
260 "loc_FF88288C:\n"
261 " MOV R0, #1 \n"
262 " BL sub_FF98CEAC \n"
263 " MOV R0, #1 \n"
264 " BL sub_FF98CFDC \n"
265 " LDRH R0, [R4, #0x9C] \n"
266 " CMP R0, #4 \n"
267 " LDRNEH R0, [R4] \n"
268 " SUBNE R12, R0, #0x4200 \n"
269 " SUBNES R12, R12, #0x2A \n"
270 " BNE loc_FF8828D0 \n"
271 " BL sub_FF886274 \n"
272 " BL sub_FF886874 \n"
273 " BL sub_FF8866F0 \n"
274 " B loc_FF8828D0 \n"
275 
276 "loc_FF8828C4:\n"
277 " LDR R1, =0x591 \n"
278 " LDR R0, =0xFF8820BC /*'SsShootTask.c'*/ \n"
279 " BL _DebugAssert \n"
280 
281 "loc_FF8828D0:\n"
282 " LDR R0, [SP] \n"
283 " LDR R1, [R0, #4] \n"
284 " LDR R0, [R7] \n"
285 " BL sub_FF88D27C /*_SetEventFlag*/ \n"
286 " LDR R5, [SP] \n"
287 " LDR R0, [R5, #8] \n"
288 " CMP R0, #0 \n"
289 " LDREQ R1, =0x115 \n"
290 " LDREQ R0, =0xFF8820BC /*'SsShootTask.c'*/ \n"
291 " BLEQ _DebugAssert \n"
292 " STR R6, [R5, #8] \n"
293 " B loc_FF88262C \n"
294 );
295 }