CHDK_DE Vorschauversion  Trunk Rev. 5428
 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)
 
#define PAUSE_FOR_FILE_COUNTER   300
 

Funktionen

void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define NR_AUTO   (0)

Definiert in Zeile 9 der Datei capt_seq.c.

#define PAUSE_FOR_FILE_COUNTER   300

Definiert in Zeile 10 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 16 der Datei capt_seq.c.

16  {
17 asm volatile (
18 " STMFD SP!, {R3-R9,LR} \n"
19 " LDR R4, =0x9DDA4 \n"
20 " LDR R7, =0x3540 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF0A3004:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_0068EF6C /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF0A3030 \n"
30 " LDR R1, =0x493 \n"
31 " LDR R0, =0xFF0A2ADC /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF0A3030:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x23 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF0A32E4 \n"
42 " B loc_FF0A30D0 \n"
43 " B loc_FF0A30E8 \n"
44 " B loc_FF0A316C \n"
45 " B loc_FF0A3180 \n"
46 " B loc_FF0A3178 \n"
47 " B loc_FF0A318C \n"
48 " B loc_FF0A3194 \n"
49 " B loc_FF0A319C \n"
50 " B loc_FF0A31B8 \n"
51 " B loc_FF0A320C \n"
52 " B loc_FF0A31C4 \n"
53 " B loc_FF0A31D0 \n"
54 " B loc_FF0A31D8 \n"
55 " B loc_FF0A31F4 \n"
56 " B loc_FF0A31FC \n"
57 " B loc_FF0A3204 \n"
58 " B loc_FF0A3214 \n"
59 " B loc_FF0A321C \n"
60 " B loc_FF0A3224 \n"
61 " B loc_FF0A322C \n"
62 " B loc_FF0A3234 \n"
63 " B loc_FF0A3240 \n"
64 " B loc_FF0A3248 \n"
65 " B loc_FF0A3250 \n"
66 " B loc_FF0A3258 \n"
67 " B loc_FF0A3260 \n"
68 " B loc_FF0A326C \n"
69 " B loc_FF0A3274 \n"
70 " B loc_FF0A327C \n"
71 " B loc_FF0A3284 \n"
72 " B loc_FF0A328C \n"
73 " B loc_FF0A3298 \n"
74 " B loc_FF0A32A0 \n"
75 " B loc_FF0A32AC \n"
76 " B loc_FF0A32F0 \n"
77 
78 "loc_FF0A30D0:\n"
79 " BL shooting_expo_iso_override\n" // added
80 " BL sub_FF0A38A0 \n"
81 " BL shooting_expo_param_override\n" // added
82 " BL sub_FF0A0484 \n"
83 " MOV R0, #0\n" // added
84 " STR R0, [R4,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
85 //" LDR R0, [R4, #0x28] \n" // above patch makes these three lines redundant
86 //" CMP R0, #0 \n"
87 //" BLNE _sub_FF219BE4 \n"
88 " B loc_FF0A32F0 \n"
89 
90 "loc_FF0A30E8:\n"
91 " LDR R5, [R0, #0x10] \n"
92 " LDR R0, [R4, #0x28] \n"
93 " CMP R0, #0 \n"
94 " BNE loc_FF0A3130 \n"
95 " LDR R0, [R4, #0x8C] \n"
96 " TST R0, #0x30 \n"
97 " BLNE sub_FF0A6FF0 \n"
98 " BL sub_FF0A6BB4 \n"
99 " MOV R1, R5 \n"
100 " BL sub_FF0A6C0C \n"
101 " LDR R0, =0x10F \n"
102 " MOV R2, #4 \n"
103 " ADD R1, R5, #0x40 \n"
104 " BL _SetPropertyCase \n"
105 " MOV R2, #4 \n"
106 " ADD R1, R5, #0x44 \n"
107 " MOV R0, #0x2C \n"
108 " BL _SetPropertyCase \n"
109 
110 "loc_FF0A3130:\n"
111 " MOV R0, R5 \n"
112 " BL sub_FF2199FC_my \n" // --> Patched. Old value = 0xFF2199FC.
113 " BL capt_seq_hook_raw_here\n" // added
114 " MOV R8, R0 \n"
115 " MOV R2, R5 \n"
116 " MOV R1, #1 \n"
117 " BL sub_FF0A0F34 \n"
118 " TST R8, #1 \n"
119 " BNE loc_FF0A32F0 \n"
120 " MOV R0, R5 \n"
121 " BL sub_FF218AF4 \n"
122 " LDR R0, [R4, #0x8C] \n"
123 " TST R0, #2 \n"
124 " MOVNE R0, R5 \n"
125 " BLNE sub_FF0A10D4 \n"
126 " B loc_FF0A32F0 \n"
127 
128 "loc_FF0A316C:\n"
129 " MOV R0, #1 \n"
130 " BL sub_FF0A3BA8 \n"
131 " B loc_FF0A32F0 \n"
132 
133 "loc_FF0A3178:\n"
134 " BL sub_FF0A34C4 \n"
135 " B loc_FF0A3184 \n"
136 
137 "loc_FF0A3180:\n"
138 " BL sub_FF0A3880 \n"
139 
140 "loc_FF0A3184:\n"
141 " STR R6, [R4, #0x28] \n"
142 " B loc_FF0A32F0 \n"
143 
144 "loc_FF0A318C:\n"
145 " BL sub_FF0A3888 \n"
146 " B loc_FF0A32F0 \n"
147 
148 "loc_FF0A3194:\n"
149 " BL sub_FF0A3A7C \n"
150 " B loc_FF0A31BC \n"
151 
152 "loc_FF0A319C:\n"
153 " LDR R5, [R0, #0x10] \n"
154 " MOV R0, R5 \n"
155 " BL sub_FF219C7C \n"
156 " MOV R2, R5 \n"
157 " MOV R1, #9 \n"
158 " BL sub_FF0A0F34 \n"
159 " B loc_FF0A32F0 \n"
160 
161 "loc_FF0A31B8:\n"
162 " BL sub_FF0A3B0C \n"
163 
164 "loc_FF0A31BC:\n"
165 " BL sub_FF0A0484 \n"
166 " B loc_FF0A32F0 \n"
167 
168 "loc_FF0A31C4:\n"
169 " LDR R0, [R4, #0x58] \n"
170 " BL sub_FF0A41D0 \n"
171 " B loc_FF0A32F0 \n"
172 
173 "loc_FF0A31D0:\n"
174 " BL sub_FF0A44C8 \n"
175 " B loc_FF0A32F0 \n"
176 
177 "loc_FF0A31D8:\n"
178 " LDRH R1, [R4] \n"
179 " SUB R0, R1, #0x8200 \n"
180 " SUBS R0, R0, #0x39 \n"
181 " MOVNE R0, #0 \n"
182 " MOVEQ R0, #1 \n"
183 " BL sub_FF0A452C \n"
184 " B loc_FF0A32F0 \n"
185 
186 "loc_FF0A31F4:\n"
187 " BL sub_FF0A4720 \n"
188 " B loc_FF0A32F0 \n"
189 
190 "loc_FF0A31FC:\n"
191 " BL sub_FF0A4B9C \n"
192 " B loc_FF0A32F0 \n"
193 
194 "loc_FF0A3204:\n"
195 " BL sub_FF0A4C50 \n"
196 " B loc_FF0A32F0 \n"
197 
198 "loc_FF0A320C:\n"
199 " BL sub_FF0A3880 \n"
200 " B loc_FF0A32F0 \n"
201 
202 "loc_FF0A3214:\n"
203 " BL sub_FF217DE4 \n"
204 " B loc_FF0A32F0 \n"
205 
206 "loc_FF0A321C:\n"
207 " BL sub_FF21804C \n"
208 " B loc_FF0A32F0 \n"
209 
210 "loc_FF0A3224:\n"
211 " BL sub_FF218104 \n"
212 " B loc_FF0A32F0 \n"
213 
214 "loc_FF0A322C:\n"
215 " BL sub_FF2181D8 \n"
216 " B loc_FF0A32F0 \n"
217 
218 "loc_FF0A3234:\n"
219 " MOV R0, #0 \n"
220 " BL sub_FF218438 \n"
221 " B loc_FF0A32F0 \n"
222 
223 "loc_FF0A3240:\n"
224 " BL sub_FF2185A8 \n"
225 " B loc_FF0A32F0 \n"
226 
227 "loc_FF0A3248:\n"
228 " BL sub_FF21863C \n"
229 " B loc_FF0A32F0 \n"
230 
231 "loc_FF0A3250:\n"
232 " BL sub_FF2186F8 \n"
233 " B loc_FF0A32F0 \n"
234 
235 "loc_FF0A3258:\n"
236 " BL sub_FF0A3D20 \n"
237 " B loc_FF0A32F0 \n"
238 
239 "loc_FF0A3260:\n"
240 " BL sub_FF0A3DA4 \n"
241 " BL sub_FF038CCC \n"
242 " B loc_FF0A32F0 \n"
243 
244 "loc_FF0A326C:\n"
245 " BL sub_FF2182A8 \n"
246 " B loc_FF0A32F0 \n"
247 
248 "loc_FF0A3274:\n"
249 " BL sub_FF2182E8 \n"
250 " B loc_FF0A32F0 \n"
251 
252 "loc_FF0A327C:\n"
253 " BL sub_FF0A82EC \n"
254 " B loc_FF0A32F0 \n"
255 
256 "loc_FF0A3284:\n"
257 " BL sub_FF0A836C \n"
258 " B loc_FF0A32F0 \n"
259 
260 "loc_FF0A328C:\n"
261 " LDR R0, [R0, #0xC] \n"
262 " BL sub_FF218820 \n"
263 " B loc_FF0A32F0 \n"
264 
265 "loc_FF0A3298:\n"
266 " BL sub_FF218890 \n"
267 " B loc_FF0A32F0 \n"
268 
269 "loc_FF0A32A0:\n"
270 " BL sub_FF0A83D4 \n"
271 " BL sub_FF0A838C \n"
272 " B loc_FF0A32F0 \n"
273 
274 "loc_FF0A32AC:\n"
275 " MOV R0, #1 \n"
276 " BL sub_FF21A410 \n"
277 " MOV R0, #1 \n"
278 " BL sub_FF21A538 \n"
279 " LDRH R0, [R4, #0x9C] \n"
280 " CMP R0, #4 \n"
281 " LDRNEH R0, [R4] \n"
282 " SUBNE R1, R0, #0x8200 \n"
283 " SUBNES R1, R1, #0x2E \n"
284 " BNE loc_FF0A32F0 \n"
285 " BL sub_FF0A836C \n"
286 " BL sub_FF0A8ABC \n"
287 " BL sub_FF0A87FC \n"
288 " B loc_FF0A32F0 \n"
289 
290 "loc_FF0A32E4:\n"
291 " LDR R1, =0x5F4 \n"
292 " LDR R0, =0xFF0A2ADC /*'SsShootTask.c'*/ \n"
293 " BL _DebugAssert \n"
294 
295 "loc_FF0A32F0:\n"
296 " LDR R0, [SP] \n"
297 " LDR R1, [R0, #4] \n"
298 " LDR R0, [R7] \n"
299 " BL sub_0068ECDC /*_SetEventFlag*/ \n"
300 " LDR R5, [SP] \n"
301 " LDR R0, [R5, #8] \n"
302 " CMP R0, #0 \n"
303 " LDREQ R1, =0x117 \n"
304 " LDREQ R0, =0xFF0A2ADC /*'SsShootTask.c'*/ \n"
305 " BLEQ _DebugAssert \n"
306 " STR R6, [R5, #8] \n"
307 " B loc_FF0A3004 \n"
308 );
309 }