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

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

!!

Definiert in Zeile 17 der Datei capt_seq.c.

17  {
18 asm volatile (
19 " STMFD SP!, {R3-R7,LR} \n"
20 " LDR R5, =0x260AC \n"
21 " LDR R7, =0x3A20 \n"
22 " MOV R6, #0 \n"
23 
24 "loc_FF098FEC:\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_FF09901C \n"
31 " LDR R2, =0x428 \n"
32 " LDR R1, =0xFF0988EC /*'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_FF09901C:\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_FF2250F8 \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_FF0992AC \n"
50 " B loc_FF099100 \n"
51 " B loc_FF09911C \n"
52 " B loc_FF099128 \n"
53 " B loc_FF09913C \n"
54 " B loc_FF099134 \n"
55 " B loc_FF09914C \n"
56 " B loc_FF099154 \n"
57 " B loc_FF099160 \n"
58 " B loc_FF09916C \n"
59 " B loc_FF099180 \n"
60 " B loc_FF09918C \n"
61 " B loc_FF099194 \n"
62 " B loc_FF0992AC \n"
63 " B loc_FF0991A0 \n"
64 " B loc_FF0991A8 \n"
65 " B loc_FF0991B0 \n"
66 " B loc_FF0991B8 \n"
67 " B loc_FF0991C0 \n"
68 " B loc_FF0992AC \n"
69 " B loc_FF0991C8 \n"
70 " B loc_FF0991D0 \n"
71 " B loc_FF0991D8 \n"
72 " B loc_FF0991E4 \n"
73 " B loc_FF0991EC \n"
74 " B loc_FF0991F4 \n"
75 " B loc_FF0991FC \n"
76 " B loc_FF099204 \n"
77 " B loc_FF0992AC \n"
78 " B loc_FF0992AC \n"
79 " B loc_FF09920C \n"
80 " B loc_FF099214 \n"
81 " B loc_FF09921C \n"
82 " B loc_FF099228 \n"
83 " B loc_FF0992AC \n"
84 " B loc_FF099230 \n"
85 " B loc_FF0992AC \n"
86 " B loc_FF099238 \n"
87 " B loc_FF099240 \n"
88 " B loc_FF099248 \n"
89 " B loc_FF099254 \n"
90 " B loc_FF09925C \n"
91 " B loc_FF0992AC \n"
92 " B loc_FF09928C \n"
93 " B loc_FF099298 \n"
94 " B loc_FF0992AC \n"
95 " B loc_FF0992BC \n"
96 
97 "loc_FF099100:\n"
98 " LDR R0, [R0, #0xC] \n"
99 " BL sub_FF099950 \n"
100 " BL shooting_expo_param_override\n" // added
101 " BL sub_FF096290 \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_FF223FA8_my \n" // --> Patched. Old value = 0xFF223FA8.
108 " B loc_FF0992BC \n"
109 
110 "loc_FF09911C:\n"
111 " LDR R0, [R0, #0x10] \n"
112 " BL sub_FF223F20_my \n" // --> Patched. Old value = 0xFF223F20.
113 " B loc_FF0992BC \n"
114 
115 "loc_FF099128:\n"
116 " MOV R0, #1 \n"
117 " BL sub_FF099D04 \n"
118 " B loc_FF0992BC \n"
119 
120 "loc_FF099134:\n"
121 " BL sub_FF0994B0 \n"
122 " B loc_FF099144 \n"
123 
124 "loc_FF09913C:\n"
125 " LDR R0, [R0, #0xC] \n"
126 " BL sub_FF099924 \n"
127 
128 "loc_FF099144:\n"
129 " STR R6, [R5, #0x28] \n"
130 " B loc_FF0992BC \n"
131 
132 "loc_FF09914C:\n"
133 " BL sub_FF099930 \n"
134 " B loc_FF0992BC \n"
135 
136 "loc_FF099154:\n"
137 " BL sub_FF099BCC \n"
138 " BL sub_FF096290 \n"
139 " B loc_FF0992BC \n"
140 
141 "loc_FF099160:\n"
142 " LDR R0, [R0, #0x10] \n"
143 " BL sub_FF2240A4 \n"
144 " B loc_FF0992BC \n"
145 
146 "loc_FF09916C:\n"
147 " BL sub_FF099C54 \n"
148 " BL sub_FF096290 \n"
149 " MOV R0, #0 \n"
150 " BL sub_FF031B38 \n"
151 " B loc_FF0992BC \n"
152 
153 "loc_FF099180:\n"
154 " LDR R0, [R5, #0x54] \n"
155 " BL sub_FF09A470 \n"
156 " B loc_FF0992BC \n"
157 
158 "loc_FF09918C:\n"
159 " BL sub_FF09A7CC \n"
160 " B loc_FF0992BC \n"
161 
162 "loc_FF099194:\n"
163 " LDR R0, [R0, #0xC] \n"
164 " BL sub_FF09A834 \n"
165 " B loc_FF0992BC \n"
166 
167 "loc_FF0991A0:\n"
168 " BL sub_FF09A9E8 \n"
169 " B loc_FF0992BC \n"
170 
171 "loc_FF0991A8:\n"
172 " BL sub_FF09AF00 \n"
173 " B loc_FF0992BC \n"
174 
175 "loc_FF0991B0:\n"
176 " BL sub_FF09AFE8 \n"
177 " B loc_FF0992BC \n"
178 
179 "loc_FF0991B8:\n"
180 " BL sub_FF2223E0 \n"
181 " B loc_FF0992BC \n"
182 
183 "loc_FF0991C0:\n"
184 " BL sub_FF222634 \n"
185 " B loc_FF0992BC \n"
186 
187 "loc_FF0991C8:\n"
188 " BL sub_FF222700 \n"
189 " B loc_FF0992BC \n"
190 
191 "loc_FF0991D0:\n"
192 " BL sub_FF222800 \n"
193 " B loc_FF0992BC \n"
194 
195 "loc_FF0991D8:\n"
196 " MOV R0, #0 \n"
197 " BL sub_FF222AA0 \n"
198 " B loc_FF0992BC \n"
199 
200 "loc_FF0991E4:\n"
201 " BL sub_FF222C1C \n"
202 " B loc_FF0992BC \n"
203 
204 "loc_FF0991EC:\n"
205 " BL sub_FF0A1E64 \n"
206 " B loc_FF0992BC \n"
207 
208 "loc_FF0991F4:\n"
209 " BL sub_FF0A1E70 \n"
210 " B loc_FF0992BC \n"
211 
212 "loc_FF0991FC:\n"
213 " BL sub_FF222CC0 \n"
214 " B loc_FF0992BC \n"
215 
216 "loc_FF099204:\n"
217 " BL sub_FF222D74 \n"
218 " B loc_FF0992BC \n"
219 
220 "loc_FF09920C:\n"
221 " BL sub_FF099E34 \n"
222 " B loc_FF0992BC \n"
223 
224 "loc_FF099214:\n"
225 " MOV R0, #0 \n"
226 " B loc_FF099220 \n"
227 
228 "loc_FF09921C:\n"
229 " LDR R0, [R0, #0xC] \n"
230 
231 "loc_FF099220:\n"
232 " BL sub_FF099ECC \n"
233 " B loc_FF0992BC \n"
234 
235 "loc_FF099228:\n"
236 " BL sub_FF2228E0 \n"
237 " B loc_FF0992BC \n"
238 
239 "loc_FF099230:\n"
240 " BL sub_FF222930 \n"
241 " B loc_FF0992BC \n"
242 
243 "loc_FF099238:\n"
244 " BL sub_FF09DB5C \n"
245 " B loc_FF0992BC \n"
246 
247 "loc_FF099240:\n"
248 " BL sub_FF09DCA4 \n"
249 " B loc_FF0992BC \n"
250 
251 "loc_FF099248:\n"
252 " LDR R0, [R0, #0xC] \n"
253 " BL sub_FF222E94 \n"
254 " B loc_FF0992BC \n"
255 
256 "loc_FF099254:\n"
257 " BL sub_FF222F24 \n"
258 " B loc_FF0992BC \n"
259 
260 "loc_FF09925C:\n"
261 " BL sub_FF0A05A0 \n"
262 " LDR R0, =0x261AC \n"
263 " LDRH R0, [R0, #0x9C] \n"
264 " CMP R0, #4 \n"
265 " LDRNEH R0, [R5] \n"
266 " SUBNE R1, R0, #0x8200 \n"
267 " SUBNES R1, R1, #0x36 \n"
268 " BNE loc_FF0992BC \n"
269 " BL sub_FF09DCA4 \n"
270 " BL sub_FF09E3B4 \n"
271 " BL sub_FF09E228 \n"
272 " B loc_FF0992BC \n"
273 
274 "loc_FF09928C:\n"
275 " MOV R2, #0 \n"
276 " MOV R1, #0x11 \n"
277 " B loc_FF0992A0 \n"
278 
279 "loc_FF099298:\n"
280 " MOV R2, #0 \n"
281 " MOV R1, #0x10 \n"
282 
283 "loc_FF0992A0:\n"
284 " MOV R0, #0 \n"
285 " BL sub_FF096E70 \n"
286 " B loc_FF0992BC \n"
287 
288 "loc_FF0992AC:\n"
289 " LDR R2, =0x557 \n"
290 " LDR R1, =0xFF0988EC /*'SsShootTask.c'*/ \n"
291 " MOV R0, #0 \n"
292 " BL _DebugAssert \n"
293 
294 "loc_FF0992BC:\n"
295 " LDR R0, [SP] \n"
296 " LDR R1, [R0, #4] \n"
297 " LDR R0, [R7, #4] \n"
298 " BL sub_006B82FC /*_SetEventFlag*/ \n"
299 " LDR R4, [SP] \n"
300 " LDR R0, [R4, #8] \n"
301 " CMP R0, #0 \n"
302 " LDREQ R1, =0xFF0988EC /*'SsShootTask.c'*/ \n"
303 " MOVEQ R2, #0xFF \n"
304 " BLEQ _DebugAssert \n"
305 " STR R6, [R4, #8] \n"
306 " B loc_FF098FEC \n"
307 );
308 }