CHDK_DE Vorschauversion  Trunk Rev. 5411
 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   350
 

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   350

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 17 der Datei capt_seq.c.

17  {
18 asm volatile (
19 " STMFD SP!, {R3-R7,LR} \n"
20 " LDR R5, =0x22114 \n"
21 " LDR R7, =0x3930 \n"
22 " MOV R6, #0 \n"
23 
24 "loc_FF097624:\n"
25 " LDR R0, [R7, #8] \n"
26 " MOV R2, #0 \n"
27 " MOV R1, SP \n"
28 " BL sub_006B8568 /*_ReceiveMessageQueue*/ \n"
29 " TST R0, #1 \n"
30 " BEQ loc_FF097654 \n"
31 " LDR R2, =0x428 \n"
32 " LDR R1, =0xFF096FB4 /*'SsShootTask.c'*/ \n"
33 " MOV R0, #0 \n"
34 " BL _DebugAssert \n"
35 " BL _ExitTask \n"
36 " LDMFD SP!, {R3-R7,PC} \n"
37 
38 "loc_FF097654:\n"
39 " LDR R0, [SP] \n"
40 " LDR R0, [R0] \n"
41 " CMP R0, #1 \n"
42 " CMPNE R0, #0x2B \n"
43 " CMPNE R0, #0x1F \n"
44 " BLNE sub_FF1F7108 \n"
45 " LDR R0, [SP] \n"
46 " LDR R1, [R0] \n"
47 " CMP R1, #0x2E \n"
48 " ADDCC PC, PC, R1, LSL#2 \n"
49 " B loc_FF0978C8 \n"
50 " B loc_FF097738 \n"
51 " B loc_FF097754 \n"
52 " B loc_FF097760 \n"
53 " B loc_FF097774 \n"
54 " B loc_FF09776C \n"
55 " B loc_FF097784 \n"
56 " B loc_FF09778C \n"
57 " B loc_FF097798 \n"
58 " B loc_FF0977A4 \n"
59 " B loc_FF0977B8 \n"
60 " B loc_FF0977C4 \n"
61 " B loc_FF0977CC \n"
62 " B loc_FF0978C8 \n"
63 " B loc_FF0978C8 \n"
64 " B loc_FF0978C8 \n"
65 " B loc_FF0978C8 \n"
66 " B loc_FF0977D8 \n"
67 " B loc_FF0977E0 \n"
68 " B loc_FF0978C8 \n"
69 " B loc_FF0977E8 \n"
70 " B loc_FF0977F0 \n"
71 " B loc_FF0977F8 \n"
72 " B loc_FF097804 \n"
73 " B loc_FF09780C \n"
74 " B loc_FF097814 \n"
75 " B loc_FF09781C \n"
76 " B loc_FF097824 \n"
77 " B loc_FF0978C8 \n"
78 " B loc_FF0978C8 \n"
79 " B loc_FF09782C \n"
80 " B loc_FF097834 \n"
81 " B loc_FF09783C \n"
82 " B loc_FF097848 \n"
83 " B loc_FF0978C8 \n"
84 " B loc_FF097850 \n"
85 " B loc_FF0978C8 \n"
86 " B loc_FF097858 \n"
87 " B loc_FF097860 \n"
88 " B loc_FF097868 \n"
89 " B loc_FF097874 \n"
90 " B loc_FF09787C \n"
91 " B loc_FF0978C8 \n"
92 " B loc_FF0978A8 \n"
93 " B loc_FF0978B4 \n"
94 " B loc_FF0978C8 \n"
95 " B loc_FF0978D8 \n"
96 
97 "loc_FF097738:\n"
98 " LDR R0, [R0, #0xC] \n"
99 " BL sub_FF097F3C \n"
100 " BL shooting_expo_param_override\n" // added
101 " BL sub_FF094BE0 \n"
102 //To do: Check if this is needed.
103 //" MOV R0, #0\n" // added
104 //" STR R0, [R5,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
105 " LDR R0, [R5, #0x28] \n"
106 " CMP R0, #0 \n"
107 " BLNE sub_FF1F6030_my \n" // --> Patched. Old value = 0xFF1F6030.
108 " B loc_FF0978D8 \n"
109 
110 "loc_FF097754:\n"
111 " LDR R0, [R0, #0x10] \n"
112 " BL sub_FF1F5FA8_my \n" // --> Patched. Old value = 0xFF1F5FA8.
113 " B loc_FF0978D8 \n"
114 
115 "loc_FF097760:\n"
116 " MOV R0, #1 \n"
117 " BL sub_FF0982D8 \n"
118 " B loc_FF0978D8 \n"
119 
120 "loc_FF09776C:\n"
121 " BL sub_FF097AC0 \n"
122 " B loc_FF09777C \n"
123 
124 "loc_FF097774:\n"
125 " LDR R0, [R0, #0xC] \n"
126 " BL sub_FF097F10 \n"
127 
128 "loc_FF09777C:\n"
129 " STR R6, [R5, #0x28] \n"
130 " B loc_FF0978D8 \n"
131 
132 "loc_FF097784:\n"
133 " BL sub_FF097F1C \n"
134 " B loc_FF0978D8 \n"
135 
136 "loc_FF09778C:\n"
137 " BL sub_FF0981A0 \n"
138 " BL sub_FF094BE0 \n"
139 " B loc_FF0978D8 \n"
140 
141 "loc_FF097798:\n"
142 " LDR R0, [R0, #0x10] \n"
143 " BL sub_FF1F6128 \n"
144 " B loc_FF0978D8 \n"
145 
146 "loc_FF0977A4:\n"
147 " BL sub_FF098228 \n"
148 " BL sub_FF094BE0 \n"
149 " MOV R0, #0 \n"
150 " BL sub_FF031848 \n"
151 " B loc_FF0978D8 \n"
152 
153 "loc_FF0977B8:\n"
154 " LDR R0, [R5, #0x54] \n"
155 " BL sub_FF0988D4 \n"
156 " B loc_FF0978D8 \n"
157 
158 "loc_FF0977C4:\n"
159 " BL sub_FF098D28 \n"
160 " B loc_FF0978D8 \n"
161 
162 "loc_FF0977CC:\n"
163 " LDR R0, [R0, #0xC] \n"
164 " BL sub_FF098D90 \n"
165 " B loc_FF0978D8 \n"
166 
167 "loc_FF0977D8:\n"
168 " BL sub_FF1F47D4 \n"
169 " B loc_FF0978D8 \n"
170 
171 "loc_FF0977E0:\n"
172 " BL sub_FF1F4A20 \n"
173 " B loc_FF0978D8 \n"
174 
175 "loc_FF0977E8:\n"
176 " BL sub_FF1F4AEC \n"
177 " B loc_FF0978D8 \n"
178 
179 "loc_FF0977F0:\n"
180 " BL sub_FF1F4BEC \n"
181 " B loc_FF0978D8 \n"
182 
183 "loc_FF0977F8:\n"
184 " MOV R0, #0 \n"
185 " BL sub_FF1F4ED8 \n"
186 " B loc_FF0978D8 \n"
187 
188 "loc_FF097804:\n"
189 " BL sub_FF1F5054 \n"
190 " B loc_FF0978D8 \n"
191 
192 "loc_FF09780C:\n"
193 " BL sub_FF09F308 \n"
194 " B loc_FF0978D8 \n"
195 
196 "loc_FF097814:\n"
197 " BL sub_FF09F314 \n"
198 " B loc_FF0978D8 \n"
199 
200 "loc_FF09781C:\n"
201 " BL sub_FF1F50F8 \n"
202 " B loc_FF0978D8 \n"
203 
204 "loc_FF097824:\n"
205 " BL sub_FF1F51AC \n"
206 " B loc_FF0978D8 \n"
207 
208 "loc_FF09782C:\n"
209 " BL sub_FF0983FC \n"
210 " B loc_FF0978D8 \n"
211 
212 "loc_FF097834:\n"
213 " MOV R0, #0 \n"
214 " B loc_FF097840 \n"
215 
216 "loc_FF09783C:\n"
217 " LDR R0, [R0, #0xC] \n"
218 
219 "loc_FF097840:\n"
220 " BL sub_FF098494 \n"
221 " B loc_FF0978D8 \n"
222 
223 "loc_FF097848:\n"
224 " BL sub_FF1F4DA0 \n"
225 " B loc_FF0978D8 \n"
226 
227 "loc_FF097850:\n"
228 " BL sub_FF1F4E3C \n"
229 " B loc_FF0978D8 \n"
230 
231 "loc_FF097858:\n"
232 " BL sub_FF09B510 \n"
233 " B loc_FF0978D8 \n"
234 
235 "loc_FF097860:\n"
236 " BL sub_FF09B644 \n"
237 " B loc_FF0978D8 \n"
238 
239 "loc_FF097868:\n"
240 " LDR R0, [R0, #0xC] \n"
241 " BL sub_FF1F52CC \n"
242 " B loc_FF0978D8 \n"
243 
244 "loc_FF097874:\n"
245 " BL sub_FF1F535C \n"
246 " B loc_FF0978D8 \n"
247 
248 "loc_FF09787C:\n"
249 " BL sub_FF09DA44 \n"
250 " LDR R0, =0x22214 \n"
251 " LDRH R0, [R0, #0x9C] \n"
252 " CMP R0, #4 \n"
253 " LDRNEH R0, [R5] \n"
254 " SUBNE R1, R0, #0x8200 \n"
255 " SUBNES R1, R1, #0x36 \n"
256 " BNE loc_FF0978D8 \n"
257 " BL sub_FF09B644 \n"
258 " BL sub_FF09BC00 \n"
259 " B loc_FF0978D8 \n"
260 
261 "loc_FF0978A8:\n"
262 " MOV R2, #0 \n"
263 " MOV R1, #0x11 \n"
264 " B loc_FF0978BC \n"
265 
266 "loc_FF0978B4:\n"
267 " MOV R2, #0 \n"
268 " MOV R1, #0x10 \n"
269 
270 "loc_FF0978BC:\n"
271 " MOV R0, #0 \n"
272 " BL sub_FF095718 \n"
273 " B loc_FF0978D8 \n"
274 
275 "loc_FF0978C8:\n"
276 " LDR R2, =0x557 \n"
277 " LDR R1, =0xFF096FB4 /*'SsShootTask.c'*/ \n"
278 " MOV R0, #0 \n"
279 " BL _DebugAssert \n"
280 
281 "loc_FF0978D8:\n"
282 " LDR R0, [SP] \n"
283 " LDR R1, [R0, #4] \n"
284 " LDR R0, [R7, #4] \n"
285 " BL sub_006B82FC /*_SetEventFlag*/ \n"
286 " LDR R4, [SP] \n"
287 " LDR R0, [R4, #8] \n"
288 " CMP R0, #0 \n"
289 " LDREQ R1, =0xFF096FB4 /*'SsShootTask.c'*/ \n"
290 " MOVEQ R2, #0xFF \n"
291 " BLEQ _DebugAssert \n"
292 " STR R6, [R4, #8] \n"
293 " B loc_FF097624 \n"
294 );
295 }