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)
 
#define PAUSE_FOR_FILE_COUNTER   320
 

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   320

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 R5, =0x3EFA4 \n"
20 " LDR R7, =0x3EF4 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF078BD8:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF02B17C /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF078C04 \n"
30 " LDR R1, =0x47A \n"
31 " LDR R0, =0xFF0785F4 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF078C04:\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_FF078E84 \n"
42 " B loc_FF078CB4 \n"
43 " B loc_FF078CCC \n"
44 " B loc_FF078D04 \n"
45 " B loc_FF078D18 \n"
46 " B loc_FF078D10 \n"
47 " B loc_FF078D24 \n"
48 " B loc_FF078D2C \n"
49 " B loc_FF078D34 \n"
50 " B loc_FF078D50 \n"
51 " B loc_FF078D90 \n"
52 " B loc_FF078D5C \n"
53 " B loc_FF078D68 \n"
54 " B loc_FF078D70 \n"
55 " B loc_FF078D78 \n"
56 " B loc_FF078D80 \n"
57 " B loc_FF078D88 \n"
58 " B loc_FF078D98 \n"
59 " B loc_FF078DA0 \n"
60 " B loc_FF078DA8 \n"
61 " B loc_FF078DB0 \n"
62 " B loc_FF078DB8 \n"
63 " B loc_FF078DC0 \n"
64 " B loc_FF078DC8 \n"
65 " B loc_FF078DD0 \n"
66 " B loc_FF078DD8 \n"
67 " B loc_FF078DE0 \n"
68 " B loc_FF078DEC \n"
69 " B loc_FF078DF4 \n"
70 " B loc_FF078E00 \n"
71 " B loc_FF078E08 \n"
72 " B loc_FF078E10 \n"
73 " B loc_FF078E18 \n"
74 " B loc_FF078E20 \n"
75 " B loc_FF078E28 \n"
76 " B loc_FF078E30 \n"
77 " B loc_FF078E38 \n"
78 " B loc_FF078E40 \n"
79 " B loc_FF078E4C \n"
80 " B loc_FF078E90 \n"
81 
82 "loc_FF078CB4:\n"
83 " BL shooting_expo_iso_override\n" // added
84 " BL sub_FF0794A4 \n"
85 " BL shooting_expo_param_override\n" // added
86 " BL sub_FF076164 \n"
87 " MOV R0, #0\n" // added
88 " STR R0, [R5,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
89 //" LDR R0, [R5, #0x28] \n" // above patch makes these three lines redundant
90 //" CMP R0, #0 \n"
91 //" BLNE _sub_FF192EE0 \n"
92 " B loc_FF078E90 \n"
93 
94 "loc_FF078CCC:\n"
95 " LDR R8, [R0, #0xC] \n"
96 " MOV R0, R8 \n"
97 " BL sub_FF192CBC_my \n" // --> Patched. Old value = 0xFF192CBC.
98 " BL capt_seq_hook_raw_here\n"
99 " MOV R4, R0 \n"
100 " MOV R2, R8 \n"
101 " MOV R1, #1 \n"
102 " BL sub_FF076BEC \n"
103 " TST R4, #1 \n"
104 " BNE loc_FF078CFC \n"
105 " MOV R0, R8 \n"
106 " BL sub_FF1926A8 \n"
107 " B loc_FF078E90 \n"
108 
109 "loc_FF078CFC:\n"
110 " BL sub_FF192678 \n"
111 " B loc_FF078E90 \n"
112 
113 "loc_FF078D04:\n"
114 " MOV R0, #1 \n"
115 " BL sub_FF079784 \n"
116 " B loc_FF078E90 \n"
117 
118 "loc_FF078D10:\n"
119 " BL sub_FF0790E0 \n"
120 " B loc_FF078D1C \n"
121 
122 "loc_FF078D18:\n"
123 " BL sub_FF079484 \n"
124 
125 "loc_FF078D1C:\n"
126 " STR R6, [R5, #0x28] \n"
127 " B loc_FF078E90 \n"
128 
129 "loc_FF078D24:\n"
130 " BL sub_FF07948C \n"
131 " B loc_FF078E90 \n"
132 
133 "loc_FF078D2C:\n"
134 " BL sub_FF079678 \n"
135 " B loc_FF078D54 \n"
136 
137 "loc_FF078D34:\n"
138 " LDR R4, [R0, #0xC] \n"
139 " MOV R0, R4 \n"
140 " BL sub_FF192F34 \n"
141 " MOV R2, R4 \n"
142 " MOV R1, #9 \n"
143 " BL sub_FF076BEC \n"
144 " B loc_FF078E90 \n"
145 
146 "loc_FF078D50:\n"
147 " BL sub_FF0796EC \n"
148 
149 "loc_FF078D54:\n"
150 " BL sub_FF076164 \n"
151 " B loc_FF078E90 \n"
152 
153 "loc_FF078D5C:\n"
154 " LDR R0, [R5, #0x58] \n"
155 " BL sub_FF07A004 \n"
156 " B loc_FF078E90 \n"
157 
158 "loc_FF078D68:\n"
159 " BL sub_FF07A2D4 \n"
160 " B loc_FF078E90 \n"
161 
162 "loc_FF078D70:\n"
163 " BL sub_FF07A338 \n"
164 " B loc_FF078E90 \n"
165 
166 "loc_FF078D78:\n"
167 " BL sub_FF07A52C \n"
168 " B loc_FF078E90 \n"
169 
170 "loc_FF078D80:\n"
171 " BL sub_FF07A97C \n"
172 " B loc_FF078E90 \n"
173 
174 "loc_FF078D88:\n"
175 " BL sub_FF07AA2C \n"
176 " B loc_FF078E90 \n"
177 
178 "loc_FF078D90:\n"
179 " BL sub_FF079484 \n"
180 " B loc_FF078E90 \n"
181 
182 "loc_FF078D98:\n"
183 " BL sub_FF1917B4 \n"
184 " B loc_FF078E90 \n"
185 
186 "loc_FF078DA0:\n"
187 " BL sub_FF1919C8 \n"
188 " B loc_FF078E90 \n"
189 
190 "loc_FF078DA8:\n"
191 " BL sub_FF191A60 \n"
192 " B loc_FF078E90 \n"
193 
194 "loc_FF078DB0:\n"
195 " BL sub_FF191B4C \n"
196 " B loc_FF078E90 \n"
197 
198 "loc_FF078DB8:\n"
199 " BL sub_FF191C1C \n"
200 " B loc_FF078E90 \n"
201 
202 "loc_FF078DC0:\n"
203 " MOV R0, #0 \n"
204 " B loc_FF078DE4 \n"
205 
206 "loc_FF078DC8:\n"
207 " BL sub_FF1920A4 \n"
208 " B loc_FF078E90 \n"
209 
210 "loc_FF078DD0:\n"
211 " BL sub_FF19213C \n"
212 " B loc_FF078E90 \n"
213 
214 "loc_FF078DD8:\n"
215 " BL sub_FF19221C \n"
216 " B loc_FF078E90 \n"
217 
218 "loc_FF078DE0:\n"
219 " MOV R0, #1 \n"
220 
221 "loc_FF078DE4:\n"
222 " BL sub_FF191F3C \n"
223 " B loc_FF078E90 \n"
224 
225 "loc_FF078DEC:\n"
226 " BL sub_FF0799A8 \n"
227 " B loc_FF078E90 \n"
228 
229 "loc_FF078DF4:\n"
230 " BL sub_FF0799E8 \n"
231 " BL sub_FF193BE8 \n"
232 " B loc_FF078E90 \n"
233 
234 "loc_FF078E00:\n"
235 " BL sub_FF191DA0 \n"
236 " B loc_FF078E90 \n"
237 
238 "loc_FF078E08:\n"
239 " BL sub_FF191E6C \n"
240 " B loc_FF078E90 \n"
241 
242 "loc_FF078E10:\n"
243 " BL sub_FF193CB4 \n"
244 " B loc_FF078E90 \n"
245 
246 "loc_FF078E18:\n"
247 " BL sub_FF0282D4 \n"
248 " B loc_FF078E90 \n"
249 
250 "loc_FF078E20:\n"
251 " BL sub_FF07CE74 \n"
252 " B loc_FF078E90 \n"
253 
254 "loc_FF078E28:\n"
255 " BL sub_FF07CEF8 \n"
256 " B loc_FF078E90 \n"
257 
258 "loc_FF078E30:\n"
259 " BL sub_FF192310 \n"
260 " B loc_FF078E90 \n"
261 
262 "loc_FF078E38:\n"
263 " BL sub_FF192374 \n"
264 " B loc_FF078E90 \n"
265 
266 "loc_FF078E40:\n"
267 " BL sub_FF07CF54 \n"
268 " BL sub_FF07CF14 \n"
269 " B loc_FF078E90 \n"
270 
271 "loc_FF078E4C:\n"
272 " MOV R0, #1 \n"
273 " BL sub_FF1936E8 \n"
274 " MOV R0, #1 \n"
275 " BL sub_FF1937B8 \n"
276 " LDRH R0, [R5, #0xA0] \n"
277 " CMP R0, #4 \n"
278 " LDRNEH R0, [R5] \n"
279 " SUBNE R1, R0, #0x4200 \n"
280 " SUBNES R1, R1, #0x2A \n"
281 " BNE loc_FF078E90 \n"
282 " BL sub_FF07CEF8 \n"
283 " BL sub_FF07D53C \n"
284 " BL sub_FF07D378 \n"
285 " B loc_FF078E90 \n"
286 
287 "loc_FF078E84:\n"
288 " LDR R1, =0x5DB \n"
289 " LDR R0, =0xFF0785F4 /*'SsShootTask.c'*/ \n"
290 " BL _DebugAssert \n"
291 
292 "loc_FF078E90:\n"
293 " LDR R0, [SP] \n"
294 " LDR R1, [R0, #4] \n"
295 " LDR R0, [R7] \n"
296 " BL sub_FF083C60 /*_SetEventFlag*/ \n"
297 " LDR R4, [SP] \n"
298 " LDR R0, [R4, #8] \n"
299 " CMP R0, #0 \n"
300 " LDREQ R0, =0xFF0785F4 /*'SsShootTask.c'*/ \n"
301 " MOVEQ R1, #0x118 \n"
302 " BLEQ _DebugAssert \n"
303 " STR R6, [R4, #8] \n"
304 " B loc_FF078BD8 \n"
305 );
306 }