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

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

!!

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, =0x3A468 \n"
20 " LDR R7, =0x3524 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF07707C:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_004372A4 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF0770A8 \n"
30 " LDR R1, =0x491 \n"
31 " LDR R0, =0xFF076A68 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF0770A8:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x24 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF077334 \n"
42 " B loc_FF07714C \n"
43 " B loc_FF077164 \n"
44 " B loc_FF0771C8 \n"
45 " B loc_FF0771DC \n"
46 " B loc_FF0771D4 \n"
47 " B loc_FF0771E8 \n"
48 " B loc_FF0771F0 \n"
49 " B loc_FF0771F8 \n"
50 " B loc_FF077214 \n"
51 " B loc_FF077240 \n"
52 " B loc_FF077220 \n"
53 " B loc_FF07722C \n"
54 " B loc_FF077234 \n"
55 " B loc_FF077248 \n"
56 " B loc_FF077250 \n"
57 " B loc_FF077258 \n"
58 " B loc_FF077260 \n"
59 " B loc_FF077268 \n"
60 " B loc_FF077270 \n"
61 " B loc_FF077278 \n"
62 " B loc_FF077280 \n"
63 " B loc_FF077288 \n"
64 " B loc_FF077290 \n"
65 " B loc_FF07729C \n"
66 " B loc_FF0772A4 \n"
67 " B loc_FF0772B0 \n"
68 " B loc_FF0772B8 \n"
69 " B loc_FF0772C0 \n"
70 " B loc_FF0772C8 \n"
71 " B loc_FF0772D0 \n"
72 " B loc_FF0772D8 \n"
73 " B loc_FF0772E0 \n"
74 " B loc_FF0772EC \n"
75 " B loc_FF0772F4 \n"
76 " B loc_FF077300 \n"
77 " B loc_FF077340 \n"
78 
79 "loc_FF07714C:\n"
80 " BL shooting_expo_iso_override\n" // added
81 " BL sub_FF077818 \n"
82 " BL shooting_expo_param_override\n" // added
83 " BL sub_FF074B88 \n"
84 " MOV R0, #0\n" // added
85 " STR R0, [R4,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
86 //" LDR R0, [R4, #0x28] \n" // above patch makes these three lines redundant
87 //" CMP R0, #0 \n"
88 //" BLNE _sub_FF18EE40 \n"
89 " B loc_FF077340 \n"
90 
91 "loc_FF077164:\n"
92 " LDR R5, [R0, #0x10] \n"
93 " LDR R0, [R4, #0x28] \n"
94 " CMP R0, #0 \n"
95 " BNE loc_FF0771A0 \n"
96 " BL sub_FF078938 \n"
97 " MOV R1, R5 \n"
98 " BL sub_FF078990 \n"
99 " LDR R0, =0x10F \n"
100 " MOV R2, #4 \n"
101 " ADD R1, R5, #0x24 \n"
102 " BL _SetPropertyCase \n"
103 " MOV R2, #4 \n"
104 " ADD R1, R5, #0x28 \n"
105 " MOV R0, #0x2C \n"
106 " BL _SetPropertyCase \n"
107 
108 "loc_FF0771A0:\n"
109 " MOV R0, R5 \n"
110 " BL sub_FF18ED84_my \n" // --> Patched. Old value = 0xFF18ED84.
111 " BL capt_seq_hook_raw_here \n" // added
112 " MOV R8, R0 \n"
113 " MOV R2, R5 \n"
114 " MOV R1, #1 \n"
115 " BL sub_FF075054 \n"
116 " TST R8, #1 \n"
117 " MOVEQ R0, R5 \n"
118 " BLEQ sub_FF18E6E4 \n"
119 " B loc_FF077340 \n"
120 
121 "loc_FF0771C8:\n"
122 " MOV R0, #1 \n"
123 " BL sub_FF077B20 \n"
124 " B loc_FF077340 \n"
125 
126 "loc_FF0771D4:\n"
127 " BL sub_FF077524 \n"
128 " B loc_FF0771E0 \n"
129 
130 "loc_FF0771DC:\n"
131 " BL sub_FF0777F8 \n"
132 
133 "loc_FF0771E0:\n"
134 " STR R6, [R4, #0x28] \n"
135 " B loc_FF077340 \n"
136 
137 "loc_FF0771E8:\n"
138 " BL sub_FF077800 \n"
139 " B loc_FF077340 \n"
140 
141 "loc_FF0771F0:\n"
142 " BL sub_FF0779FC \n"
143 " B loc_FF077218 \n"
144 
145 "loc_FF0771F8:\n"
146 " LDR R5, [R0, #0x10] \n"
147 " MOV R0, R5 \n"
148 " BL sub_FF18EED8 \n"
149 " MOV R2, R5 \n"
150 " MOV R1, #9 \n"
151 " BL sub_FF075054 \n"
152 " B loc_FF077340 \n"
153 
154 "loc_FF077214:\n"
155 " BL sub_FF077A8C \n"
156 
157 "loc_FF077218:\n"
158 " BL sub_FF074B88 \n"
159 " B loc_FF077340 \n"
160 
161 "loc_FF077220:\n"
162 " LDR R0, [R4, #0x58] \n"
163 " BL sub_FF07816C \n"
164 " B loc_FF077340 \n"
165 
166 "loc_FF07722C:\n"
167 " BL sub_FF0785B4 \n"
168 " B loc_FF077340 \n"
169 
170 "loc_FF077234:\n"
171 " MOV R0, #0 \n"
172 " BL sub_FF078618 \n"
173 " B loc_FF077340 \n"
174 
175 "loc_FF077240:\n"
176 " BL sub_FF0777F8 \n"
177 " B loc_FF077340 \n"
178 
179 "loc_FF077248:\n"
180 " BL sub_FF18D9A8 \n"
181 " B loc_FF077340 \n"
182 
183 "loc_FF077250:\n"
184 " BL sub_FF18DBD4 \n"
185 " B loc_FF077340 \n"
186 
187 "loc_FF077258:\n"
188 " BL sub_FF18DC8C \n"
189 " B loc_FF077340 \n"
190 
191 "loc_FF077260:\n"
192 " BL sub_FF18DD40 \n"
193 " B loc_FF077340 \n"
194 
195 "loc_FF077268:\n"
196 " BL sub_FF18DE18 \n"
197 " B loc_FF077340 \n"
198 
199 "loc_FF077270:\n"
200 " MOV R0, #0 \n"
201 " B loc_FF077294 \n"
202 
203 "loc_FF077278:\n"
204 " BL sub_FF18E238 \n"
205 " B loc_FF077340 \n"
206 
207 "loc_FF077280:\n"
208 " BL sub_FF18E2CC \n"
209 " B loc_FF077340 \n"
210 
211 "loc_FF077288:\n"
212 " BL sub_FF18E374 \n"
213 " B loc_FF077340 \n"
214 
215 "loc_FF077290:\n"
216 " MOV R0, #1 \n"
217 
218 "loc_FF077294:\n"
219 " BL sub_FF18E0D4 \n"
220 " B loc_FF077340 \n"
221 
222 "loc_FF07729C:\n"
223 " BL sub_FF077CB8 \n"
224 " B loc_FF077340 \n"
225 
226 "loc_FF0772A4:\n"
227 " BL sub_FF077D3C \n"
228 " BL sub_FF18FB08 \n"
229 " B loc_FF077340 \n"
230 
231 "loc_FF0772B0:\n"
232 " BL sub_FF18DFA8 \n"
233 " B loc_FF077340 \n"
234 
235 "loc_FF0772B8:\n"
236 " BL sub_FF18E040 \n"
237 " B loc_FF077340 \n"
238 
239 "loc_FF0772C0:\n"
240 " BL sub_FF18FBBC \n"
241 " B loc_FF077340 \n"
242 
243 "loc_FF0772C8:\n"
244 " BL sub_FF01CAB0 \n"
245 " B loc_FF077340 \n"
246 
247 "loc_FF0772D0:\n"
248 " BL sub_FF079E34 \n"
249 " B loc_FF077340 \n"
250 
251 "loc_FF0772D8:\n"
252 " BL sub_FF079F20 \n"
253 " B loc_FF077340 \n"
254 
255 "loc_FF0772E0:\n"
256 " LDR R0, [R0, #0xC] \n"
257 " BL sub_FF18E47C \n"
258 " B loc_FF077340 \n"
259 
260 "loc_FF0772EC:\n"
261 " BL sub_FF18E4EC \n"
262 " B loc_FF077340 \n"
263 
264 "loc_FF0772F4:\n"
265 " BL sub_FF07A0AC \n"
266 " BL sub_FF079F78 \n"
267 " B loc_FF077340 \n"
268 
269 "loc_FF077300:\n"
270 " MOV R0, #1 \n"
271 " BL sub_FF18F61C \n"
272 " MOV R0, #1 \n"
273 " BL sub_FF18F744 \n"
274 " LDRH R0, [R4, #0xA4] \n"
275 " CMP R0, #4 \n"
276 " LDRNEH R0, [R4] \n"
277 " SUBNE R1, R0, #0x8200 \n"
278 " SUBNES R1, R1, #0x2E \n"
279 " BNE loc_FF077340 \n"
280 " BL sub_FF079F20 \n"
281 " BL sub_FF07A51C \n"
282 " B loc_FF077340 \n"
283 
284 "loc_FF077334:\n"
285 " LDR R1, =0x5F2 \n"
286 " LDR R0, =0xFF076A68 /*'SsShootTask.c'*/ \n"
287 " BL _DebugAssert \n"
288 
289 "loc_FF077340:\n"
290 " LDR R0, [SP] \n"
291 " LDR R1, [R0, #4] \n"
292 " LDR R0, [R7] \n"
293 " BL sub_0043ACF8 /*_SetEventFlag*/ \n"
294 " LDR R5, [SP] \n"
295 " LDR R0, [R5, #8] \n"
296 " CMP R0, #0 \n"
297 " LDREQ R1, =0x117 \n"
298 " LDREQ R0, =0xFF076A68 /*'SsShootTask.c'*/ \n"
299 " BLEQ _DebugAssert \n"
300 " STR R6, [R5, #8] \n"
301 " B loc_FF07707C \n"
302 );
303 }