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
 

Funktionen

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

Makro-Dokumentation

#define USE_STUBS_NRFLAG   1

Definiert in Zeile 8 der Datei capt_seq.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

__MovieRecorder_c__100

__MovieRecorder_c__100

Definiert in Zeile 14 der Datei capt_seq.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R3-R9,LR} \n"
17 " LDR R6, =0x5584 \n"
18 " LDR R4, =0x1BE24 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FF868C4C:\n"
23 " LDR R0, [R6, #0x14] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF8274FC /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF868C78 \n"
29 " LDR R1, =0x539 \n"
30 " LDR R0, =0xFF8683DC /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FF868C78:\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_FF868F54 \n"
41 " B loc_FF868D20 \n"
42 " B loc_FF868D8C \n"
43 " B loc_FF868D94 \n"
44 " B loc_FF868DB8 \n"
45 " B loc_FF868DAC \n"
46 " B loc_FF868DC0 \n"
47 " B loc_FF868DC8 \n"
48 " B loc_FF868DD0 \n"
49 " B loc_FF868E28 \n"
50 " B loc_FF868E50 \n"
51 " B loc_FF868E34 \n"
52 " B loc_FF868E40 \n"
53 " B loc_FF868E48 \n"
54 " B loc_FF868E58 \n"
55 " B loc_FF868E60 \n"
56 " B loc_FF868E68 \n"
57 " B loc_FF868E70 \n"
58 " B loc_FF868E78 \n"
59 " B loc_FF868E80 \n"
60 " B loc_FF868E88 \n"
61 " B loc_FF868E90 \n"
62 " B loc_FF868E98 \n"
63 " B loc_FF868EA0 \n"
64 " B loc_FF868EA8 \n"
65 " B loc_FF868EB0 \n"
66 " B loc_FF868EBC \n"
67 " B loc_FF868EC4 \n"
68 " B loc_FF868ED0 \n"
69 " B loc_FF868ED8 \n"
70 " B loc_FF868F08 \n"
71 " B loc_FF868F10 \n"
72 " B loc_FF868F18 \n"
73 " B loc_FF868F20 \n"
74 " B loc_FF868F28 \n"
75 " B loc_FF868F30 \n"
76 " B loc_FF868F3C \n"
77 " B loc_FF868F60 \n"
78 
79 "loc_FF868D20:\n"
80 " BL sub_FF869560 \n"
81 
82 // only do quick press hack if overrides are active
83 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
84 " STR R0,[SP,#-4]!\n" // push return value
85 " BL shooting_expo_param_override\n" // added
86 
87 " BL sub_FF8665F0 \n"
88 
89 " LDR R0, [SP], #4\n" // pop override hack
90 " CMP R0, #1\n" // +
91 " MOVEQ R0, #0\n" // +
92 " STREQ R0, [R4, #0x24]\n" // fixes overrides behavior at short shutter press
93 " LDRNE R0, [R4, #0x24]\n" // modified NE
94 " CMPNE R0, #0\n" // modified NE
95 
96 //" LDR R0, [R4, #0x24] \n" // above patch makes these lines redundant
97 //" CMP R0, #0 \n"
98 " BEQ loc_FF868F60 \n"
99 " BL sub_FF8680AC \n"
100 " MOV R5, R0 \n"
101 " LDR R0, [R4, #0x24] \n"
102 " CMP R0, #0 \n"
103 " BEQ loc_FF868D68 \n"
104 " MOV R0, #0xC \n"
105 " BL sub_FF86D1F0 \n"
106 " TST R0, #1 \n"
107 " STRNE R9, [R6, #4] \n"
108 " LDRNE R0, [R5, #8] \n"
109 " ORRNE R0, R0, #0x40000000 \n"
110 " STRNE R0, [R5, #8] \n"
111 " BNE loc_FF868F60 \n"
112 
113 "loc_FF868D68:\n"
114 " MOV R0, R5 \n"
115 " BL sub_FF94C32C \n"
116 " MOV R0, R5 \n"
117 " BL sub_FF86848C \n"
118 " MOV R0, R5 \n"
119 " BL sub_FF94CA04_my \n" // --> Patched. Old value = 0xFF94CA04.
120 " TST R0, #1 \n"
121 " STRNE R9, [R6, #4] \n"
122 " B loc_FF868F60 \n"
123 
124 "loc_FF868D8C:\n"
125 " BL sub_FF868504_my \n" // --> Patched. Old value = 0xFF868504.
126 " B loc_FF868DB0 \n"
127 
128 "loc_FF868D94:\n"
129 " MOV R0, #1 \n"
130 " BL sub_FF8697D4 \n"
131 " LDR R0, [R4, #0xC] \n"
132 " CMP R0, #0 \n"
133 " BLNE sub_FF86A2D8 \n"
134 " B loc_FF868F60 \n"
135 
136 "loc_FF868DAC:\n"
137 " BL sub_FF86922C \n"
138 
139 "loc_FF868DB0:\n"
140 " STR R7, [R4, #0x24] \n"
141 " B loc_FF868F60 \n"
142 
143 "loc_FF868DB8:\n"
144 " BL sub_FF869540 \n"
145 " B loc_FF868DB0 \n"
146 
147 "loc_FF868DC0:\n"
148 " BL sub_FF869548 \n"
149 " B loc_FF868F60 \n"
150 
151 "loc_FF868DC8:\n"
152 " BL sub_FF8696C4 \n"
153 " B loc_FF868E2C \n"
154 
155 "loc_FF868DD0:\n"
156 " LDR R5, [R0, #0xC] \n"
157 " BL sub_FF869550 \n"
158 " MOV R0, R5 \n"
159 " BL sub_FF94B310 \n"
160 " TST R0, #1 \n"
161 " MOV R8, R0 \n"
162 " BNE loc_FF868E10 \n"
163 " BL sub_FF879908 \n"
164 " STR R0, [R5, #0x18] \n"
165 " MOV R0, R5 \n"
166 " BL sub_FF94C8C0 \n"
167 " MOV R0, R5 \n"
168 " BL sub_FF94CCCC \n"
169 " MOV R8, R0 \n"
170 " LDR R0, [R5, #0x18] \n"
171 " BL sub_FF879B1C \n"
172 
173 "loc_FF868E10:\n"
174 " BL sub_FF869540 \n"
175 " MOV R2, R5 \n"
176 " MOV R1, #9 \n"
177 " MOV R0, R8 \n"
178 " BL sub_FF866B7C \n"
179 " B loc_FF868F60 \n"
180 
181 "loc_FF868E28:\n"
182 " BL sub_FF869754 \n"
183 
184 "loc_FF868E2C:\n"
185 " BL sub_FF8665F0 \n"
186 " B loc_FF868F60 \n"
187 
188 "loc_FF868E34:\n"
189 " LDR R0, [R4, #0x54] \n"
190 " BL sub_FF869DEC \n"
191 " B loc_FF868F60 \n"
192 
193 "loc_FF868E40:\n"
194 " BL sub_FF86A098 \n"
195 " B loc_FF868F60 \n"
196 
197 "loc_FF868E48:\n"
198 " BL sub_FF86A128 \n"
199 " B loc_FF868F60 \n"
200 
201 "loc_FF868E50:\n"
202 " BL sub_FF869540 \n"
203 " B loc_FF868F60 \n"
204 
205 "loc_FF868E58:\n"
206 " BL sub_FF94B550 \n"
207 " B loc_FF868F60 \n"
208 
209 "loc_FF868E60:\n"
210 " BL sub_FF94B77C \n"
211 " B loc_FF868F60 \n"
212 
213 "loc_FF868E68:\n"
214 " BL sub_FF94B810 \n"
215 " B loc_FF868F60 \n"
216 
217 "loc_FF868E70:\n"
218 " BL sub_FF94B938 \n"
219 " B loc_FF868F60 \n"
220 
221 "loc_FF868E78:\n"
222 " BL sub_FF94B9EC \n"
223 " B loc_FF868F60 \n"
224 
225 "loc_FF868E80:\n"
226 " BL sub_FF94BE7C \n"
227 " B loc_FF868F60 \n"
228 
229 "loc_FF868E88:\n"
230 " BL sub_FF94BED4 \n"
231 " B loc_FF868F60 \n"
232 
233 "loc_FF868E90:\n"
234 " MOV R0, #0 \n"
235 " B loc_FF868EB4 \n"
236 
237 "loc_FF868E98:\n"
238 " BL sub_FF94C070 \n"
239 " B loc_FF868F60 \n"
240 
241 "loc_FF868EA0:\n"
242 " BL sub_FF94C100 \n"
243 " B loc_FF868F60 \n"
244 
245 "loc_FF868EA8:\n"
246 " BL sub_FF94C1C0 \n"
247 " B loc_FF868F60 \n"
248 
249 "loc_FF868EB0:\n"
250 " MOV R0, #1 \n"
251 
252 "loc_FF868EB4:\n"
253 " BL sub_FF94BF48 \n"
254 " B loc_FF868F60 \n"
255 
256 "loc_FF868EBC:\n"
257 " BL sub_FF869A0C \n"
258 " B loc_FF868F60 \n"
259 
260 "loc_FF868EC4:\n"
261 " BL sub_FF869AAC \n"
262 " BL sub_FF869088 \n"
263 " B loc_FF868F60 \n"
264 
265 "loc_FF868ED0:\n"
266 " BL sub_FF94BCA4 \n"
267 " B loc_FF868F60 \n"
268 
269 "loc_FF868ED8:\n"
270 " MOV R2, #2 \n"
271 " ADD R1, R4, #0x74 \n"
272 " MOV R0, #0x6F \n"
273 " BL _GetPropertyCase \n"
274 " TST R0, #1 \n"
275 " LDRNE R1, =0x61C \n"
276 " LDRNE R0, =0xFF8683DC /*'SsShootTask.c'*/ \n"
277 " BLNE _DebugAssert \n"
278 " LDRH R0, [R4, #0x74] \n"
279 " CMP R0, #1 \n"
280 " BLEQ sub_FF94BC98 \n"
281 " B loc_FF868F60 \n"
282 
283 "loc_FF868F08:\n"
284 " BL sub_FF94BDD0 \n"
285 " B loc_FF868F60 \n"
286 
287 "loc_FF868F10:\n"
288 " BL sub_FF86836C \n"
289 " B loc_FF868F60 \n"
290 
291 "loc_FF868F18:\n"
292 " BL sub_FF824960 \n"
293 " B loc_FF868F60 \n"
294 
295 "loc_FF868F20:\n"
296 " BL sub_FF86B930 \n"
297 " B loc_FF868F60 \n"
298 
299 "loc_FF868F28:\n"
300 " BL sub_FF86B998 \n"
301 " B loc_FF868F60 \n"
302 
303 "loc_FF868F30:\n"
304 " BL sub_FF86B9F4 \n"
305 " BL sub_FF86B9B4 \n"
306 " B loc_FF868F60 \n"
307 
308 "loc_FF868F3C:\n"
309 " MOV R0, #1 \n"
310 " BL sub_FF94D4D0 \n"
311 " LDRH R0, [R4, #0xA0] \n"
312 " CMP R0, #3 \n"
313 " BLNE sub_FF86BBB0 \n"
314 " B loc_FF868F60 \n"
315 
316 "loc_FF868F54:\n"
317 " LDR R1, =0x65E \n"
318 " LDR R0, =0xFF8683DC /*'SsShootTask.c'*/ \n"
319 " BL _DebugAssert \n"
320 
321 "loc_FF868F60:\n"
322 " LDR R0, [SP] \n"
323 " LDR R1, [R0, #4] \n"
324 " LDR R0, [R6, #0x10] \n"
325 " BL sub_FF8714A4 /*_SetEventFlag*/ \n"
326 " LDR R5, [SP] \n"
327 " LDR R0, [R5, #8] \n"
328 " CMP R0, #0 \n"
329 " LDREQ R1, =0x11D \n"
330 " LDREQ R0, =0xFF8683DC /*'SsShootTask.c'*/ \n"
331 " BLEQ _DebugAssert \n"
332 " STR R7, [R5, #8] \n"
333 " B loc_FF868C4C \n"
334 );
335 }