CHDK_DE Vorschauversion  Trunk Rev. 5214
 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   150
 

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   150

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)  )

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

!!

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

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 16 der Datei capt_seq.c.

16  {
17 asm volatile (
18 " STMFD SP!, {R3-R9,LR} \n"
19 " LDR R4, =0x41C48 \n"
20 " LDR R7, =0x3114 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF06D6CC:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_0068BBE4 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF06D6F8 \n"
30 " LDR R1, =0x493 \n"
31 " LDR R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF06D6F8:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x27 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF06D9DC \n"
42 " B loc_FF06D7A8 \n"
43 " B loc_FF06D7C0 \n"
44 " B loc_FF06D844 \n"
45 " B loc_FF06D858 \n"
46 " B loc_FF06D850 \n"
47 " B loc_FF06D864 \n"
48 " B loc_FF06D86C \n"
49 " B loc_FF06D874 \n"
50 " B loc_FF06D890 \n"
51 " B loc_FF06D8E4 \n"
52 " B loc_FF06D89C \n"
53 " B loc_FF06D8A8 \n"
54 " B loc_FF06D8B0 \n"
55 " B loc_FF06D8CC \n"
56 " B loc_FF06D8D4 \n"
57 " B loc_FF06D8DC \n"
58 " B loc_FF06D8EC \n"
59 " B loc_FF06D8F4 \n"
60 " B loc_FF06D8FC \n"
61 " B loc_FF06D904 \n"
62 " B loc_FF06D90C \n"
63 " B loc_FF06D914 \n"
64 " B loc_FF06D91C \n"
65 " B loc_FF06D924 \n"
66 " B loc_FF06D92C \n"
67 " B loc_FF06D934 \n"
68 " B loc_FF06D940 \n"
69 " B loc_FF06D948 \n"
70 " B loc_FF06D954 \n"
71 " B loc_FF06D95C \n"
72 " B loc_FF06D964 \n"
73 " B loc_FF06D96C \n"
74 " B loc_FF06D974 \n"
75 " B loc_FF06D97C \n"
76 " B loc_FF06D984 \n"
77 " B loc_FF06D990 \n"
78 " B loc_FF06D998 \n"
79 " B loc_FF06D9A4 \n"
80 " B loc_FF06D9E8 \n"
81 
82 "loc_FF06D7A8:\n"
83 " BL shooting_expo_iso_override\n" // added
84 " BL sub_FF06DF5C \n"
85 " BL shooting_expo_param_override\n" // added
86 " BL sub_FF06AA24 \n"
87 " MOV R0, #0\n" // added
88 " STR R0, [R4,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
89 //" LDR R0, [R4, #0x28] \n" // above patch makes these three lines redundant
90 //" CMP R0, #0 \n"
91 //" BLNE _sub_FF1BF2BC \n"
92 " B loc_FF06D9E8 \n"
93 
94 "loc_FF06D7C0:\n"
95 " LDR R5, [R0, #0x10] \n"
96 " LDR R0, [R4, #0x28] \n"
97 " CMP R0, #0 \n"
98 " BNE loc_FF06D808 \n"
99 " LDR R0, [R4, #0x94] \n"
100 " TST R0, #0x30 \n"
101 " BLNE sub_FF071910 \n"
102 " BL sub_FF0715A4 \n"
103 " MOV R1, R5 \n"
104 " BL sub_FF0715FC \n"
105 " LDR R0, =0x10F \n"
106 " MOV R2, #4 \n"
107 " ADD R1, R5, #0x78 \n"
108 " BL _SetPropertyCase \n"
109 " MOV R2, #4 \n"
110 " ADD R1, R5, #0x7C \n"
111 " MOV R0, #0x2C \n"
112 " BL _SetPropertyCase \n"
113 
114 "loc_FF06D808:\n"
115 " MOV R0, R5 \n"
116 " BL sub_FF1BF01C_my \n" // --> Patched. Old value = 0xFF1BF01C.
117 " BL capt_seq_hook_raw_here\n" // added
118 " MOV R8, R0 \n"
119 " MOV R2, R5 \n"
120 " MOV R1, #1 \n"
121 " BL sub_FF06B590 \n"
122 " TST R8, #1 \n"
123 " BNE loc_FF06D9E8 \n"
124 " MOV R0, R5 \n"
125 " BL sub_FF1BE00C \n"
126 " LDR R0, [R4, #0x94] \n"
127 " TST R0, #2 \n"
128 " MOVNE R0, R5 \n"
129 " BLNE sub_FF06B730 \n"
130 " B loc_FF06D9E8 \n"
131 
132 "loc_FF06D844:\n"
133 " MOV R0, #1 \n"
134 " BL sub_FF06E264 \n"
135 " B loc_FF06D9E8 \n"
136 
137 "loc_FF06D850:\n"
138 " BL sub_FF06DBD8 \n"
139 " B loc_FF06D85C \n"
140 
141 "loc_FF06D858:\n"
142 " BL sub_FF06DF3C \n"
143 
144 "loc_FF06D85C:\n"
145 " STR R6, [R4, #0x28] \n"
146 " B loc_FF06D9E8 \n"
147 
148 "loc_FF06D864:\n"
149 " BL sub_FF06DF44 \n"
150 " B loc_FF06D9E8 \n"
151 
152 "loc_FF06D86C:\n"
153 " BL sub_FF06E138 \n"
154 " B loc_FF06D894 \n"
155 
156 "loc_FF06D874:\n"
157 " LDR R5, [R0, #0x10] \n"
158 " MOV R0, R5 \n"
159 " BL sub_FF1BF354 \n"
160 " MOV R2, R5 \n"
161 " MOV R1, #9 \n"
162 " BL sub_FF06B590 \n"
163 " B loc_FF06D9E8 \n"
164 
165 "loc_FF06D890:\n"
166 " BL sub_FF06E1C8 \n"
167 
168 "loc_FF06D894:\n"
169 " BL sub_FF06AA24 \n"
170 " B loc_FF06D9E8 \n"
171 
172 "loc_FF06D89C:\n"
173 " LDR R0, [R4, #0x58] \n"
174 " BL sub_FF06EDC4 \n"
175 " B loc_FF06D9E8 \n"
176 
177 "loc_FF06D8A8:\n"
178 " BL sub_FF06F0B8 \n"
179 " B loc_FF06D9E8 \n"
180 
181 "loc_FF06D8B0:\n"
182 " LDRH R1, [R4] \n"
183 " SUB R0, R1, #0x8200 \n"
184 " SUBS R0, R0, #0x39 \n"
185 " MOVNE R0, #0 \n"
186 " MOVEQ R0, #1 \n"
187 " BL sub_FF06F11C \n"
188 " B loc_FF06D9E8 \n"
189 
190 "loc_FF06D8CC:\n"
191 " BL sub_FF06F308 \n"
192 " B loc_FF06D9E8 \n"
193 
194 "loc_FF06D8D4:\n"
195 " BL sub_FF06F784 \n"
196 " B loc_FF06D9E8 \n"
197 
198 "loc_FF06D8DC:\n"
199 " BL sub_FF06F838 \n"
200 " B loc_FF06D9E8 \n"
201 
202 "loc_FF06D8E4:\n"
203 " BL sub_FF06DF3C \n"
204 " B loc_FF06D9E8 \n"
205 
206 "loc_FF06D8EC:\n"
207 " BL sub_FF1BD384 \n"
208 " B loc_FF06D9E8 \n"
209 
210 "loc_FF06D8F4:\n"
211 " BL sub_FF1BD5EC \n"
212 " B loc_FF06D9E8 \n"
213 
214 "loc_FF06D8FC:\n"
215 " BL sub_FF1BD6A4 \n"
216 " B loc_FF06D9E8 \n"
217 
218 "loc_FF06D904:\n"
219 " BL sub_FF1BD78C \n"
220 " B loc_FF06D9E8 \n"
221 
222 "loc_FF06D90C:\n"
223 " BL sub_FF1BD860 \n"
224 " B loc_FF06D9E8 \n"
225 
226 "loc_FF06D914:\n"
227 " MOV R0, #0 \n"
228 " B loc_FF06D938 \n"
229 
230 "loc_FF06D91C:\n"
231 " BL sub_FF1BDAA0 \n"
232 " B loc_FF06D9E8 \n"
233 
234 "loc_FF06D924:\n"
235 " BL sub_FF1BDB34 \n"
236 " B loc_FF06D9E8 \n"
237 
238 "loc_FF06D92C:\n"
239 " BL sub_FF1BDBF0 \n"
240 " B loc_FF06D9E8 \n"
241 
242 "loc_FF06D934:\n"
243 " MOV R0, #1 \n"
244 
245 "loc_FF06D938:\n"
246 " BL sub_FF1BD930 \n"
247 " B loc_FF06D9E8 \n"
248 
249 "loc_FF06D940:\n"
250 " BL sub_FF06E474 \n"
251 " B loc_FF06D9E8 \n"
252 
253 "loc_FF06D948:\n"
254 " BL sub_FF06E508 \n"
255 " BL sub_FF1BFFFC \n"
256 " B loc_FF06D9E8 \n"
257 
258 "loc_FF06D954:\n"
259 " BL sub_FF06E8D4 \n"
260 " B loc_FF06D9E8 \n"
261 
262 "loc_FF06D95C:\n"
263 " BL sub_FF06EA0C \n"
264 " B loc_FF06D9E8 \n"
265 
266 "loc_FF06D964:\n"
267 " BL sub_FF1C00B0 \n"
268 " B loc_FF06D9E8 \n"
269 
270 "loc_FF06D96C:\n"
271 " BL sub_FF022B54 \n"
272 " B loc_FF06D9E8 \n"
273 
274 "loc_FF06D974:\n"
275 " BL sub_FF072C64 \n"
276 " B loc_FF06D9E8 \n"
277 
278 "loc_FF06D97C:\n"
279 " BL sub_FF072CEC \n"
280 " B loc_FF06D9E8 \n"
281 
282 "loc_FF06D984:\n"
283 " LDR R0, [R0, #0xC] \n"
284 " BL sub_FF1BDD18 \n"
285 " B loc_FF06D9E8 \n"
286 
287 "loc_FF06D990:\n"
288 " BL sub_FF1BDD88 \n"
289 " B loc_FF06D9E8 \n"
290 
291 "loc_FF06D998:\n"
292 " BL sub_FF072D54 \n"
293 " BL sub_FF072D0C \n"
294 " B loc_FF06D9E8 \n"
295 
296 "loc_FF06D9A4:\n"
297 " MOV R0, #1 \n"
298 " BL sub_FF1BFB04 \n"
299 " MOV R0, #1 \n"
300 " BL sub_FF1BFC38 \n"
301 " LDRH R0, [R4, #0xA4] \n"
302 " CMP R0, #4 \n"
303 " LDRNEH R0, [R4] \n"
304 " SUBNE R1, R0, #0x4200 \n"
305 " SUBNES R1, R1, #0x2E \n"
306 " BNE loc_FF06D9E8 \n"
307 " BL sub_FF072CEC \n"
308 " BL sub_FF073468 \n"
309 " BL sub_FF07317C \n"
310 " B loc_FF06D9E8 \n"
311 
312 "loc_FF06D9DC:\n"
313 " LDR R1, =0x5F4 \n"
314 " LDR R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
315 " BL _DebugAssert \n"
316 
317 "loc_FF06D9E8:\n"
318 " LDR R0, [SP] \n"
319 " LDR R1, [R0, #4] \n"
320 " LDR R0, [R7] \n"
321 " BL sub_0068B954 /*_SetEventFlag*/ \n"
322 " LDR R5, [SP] \n"
323 " LDR R0, [R5, #8] \n"
324 " CMP R0, #0 \n"
325 " LDREQ R1, =0x117 \n"
326 " LDREQ R0, =0xFF06D060 /*'SsShootTask.c'*/ \n"
327 " BLEQ _DebugAssert \n"
328 " STR R6, [R5, #8] \n"
329 " B loc_FF06D6CC \n"
330 );
331 }