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

Funktionen

void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#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

Definiert in Zeile 14 der Datei capt_seq.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R3-R9,LR} \n"
17 " LDR R6, =0x2850 \n"
18 " LDR R4, =0x11F70 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FFC49FF4:\n"
23 " LDR R0, [R6, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FFC167B8 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FFC4A020 \n"
29 " LDR R1, =0x588 \n"
30 " LDR R0, =0xFFC49B94 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FFC4A020:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1D \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FFC4A294 \n"
41 " B loc_FFC4A0AC \n"
42 " B loc_FFC4A110 \n"
43 " B loc_FFC4A14C \n"
44 " B loc_FFC4A160 \n"
45 " B loc_FFC4A158 \n"
46 " B loc_FFC4A168 \n"
47 " B loc_FFC4A170 \n"
48 " B loc_FFC4A178 \n"
49 " B loc_FFC4A1D0 \n"
50 " B loc_FFC4A1F8 \n"
51 " B loc_FFC4A1DC \n"
52 " B loc_FFC4A1E8 \n"
53 " B loc_FFC4A1F0 \n"
54 " B loc_FFC4A200 \n"
55 " B loc_FFC4A208 \n"
56 " B loc_FFC4A210 \n"
57 " B loc_FFC4A218 \n"
58 " B loc_FFC4A220 \n"
59 " B loc_FFC4A22C \n"
60 " B loc_FFC4A234 \n"
61 " B loc_FFC4A23C \n"
62 " B loc_FFC4A244 \n"
63 " B loc_FFC4A24C \n"
64 " B loc_FFC4A258 \n"
65 " B loc_FFC4A260 \n"
66 " B loc_FFC4A268 \n"
67 " B loc_FFC4A270 \n"
68 " B loc_FFC4A278 \n"
69 " B loc_FFC4A284 \n"
70 " B loc_FFC4A2A0 \n"
71 
72 "loc_FFC4A0AC:\n"
73 " BL sub_FFC4A8B8 \n"
74 // only do quick press hack if overrides are active
75 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
76 " STR R0,[SP,#-4]!\n" // push return value
77 " BL shooting_expo_param_override\n" // added
78 " BL sub_FFC47F08 \n"
79 " LDR R0,[SP],#4\n" // pop override hack
80 " CMP R0, #1\n" // +
81 " MOVEQ R0, #0\n" // +
82 " STREQ R0, [R4,#0x24]\n" // fixes overrides behavior at short shutter press
83 " LDRNE R0, [R4,#0x24]\n" // modified NE
84 " CMPNE R0, #0\n" // modified NE
85 //" LDR R0, [R4, #0x24] \n" // above patch makes these lines redundant
86 //" CMP R0, #0 \n"
87 " BEQ loc_FFC4A2A0 \n"
88 " BL sub_FFC49870 \n"
89 " MOV R5, R0 \n"
90 " LDR R0, [R4, #0x24] \n"
91 " CMP R0, #0 \n"
92 " BEQ loc_FFC4A0F4 \n"
93 " MOV R0, #0xC \n"
94 " BL sub_FFC4E41C \n"
95 " TST R0, #1 \n"
96 " STRNE R9, [R6, #0x10] \n"
97 " LDRNE R0, [R5, #8] \n"
98 " ORRNE R0, R0, #0x40000000 \n"
99 " STRNE R0, [R5, #8] \n"
100 " BNE loc_FFC4A2A0 \n"
101 
102 "loc_FFC4A0F4:\n"
103 " MOV R0, R5 \n"
104 " BL sub_FFC49B14 \n"
105 " MOV R0, R5 \n"
106 " BL sub_FFCFC540 \n"
107 " TST R0, #1 \n"
108 " STRNE R9, [R6, #0x10] \n"
109 " B loc_FFC4A2A0 \n"
110 
111 "loc_FFC4A110:\n"
112 " LDR R0, [R4, #0x24] \n"
113 " CMP R0, #0 \n"
114 " BNE loc_FFC4A13C \n"
115 " MOV R0, #0xC \n"
116 " BL sub_FFC4E41C \n"
117 " TST R0, #1 \n"
118 " LDRNE R0, [SP] \n"
119 " MOVNE R1, #1 \n"
120 " LDRNE R2, [R0, #0xC] \n"
121 " MOVNE R0, #1 \n"
122 " BNE loc_FFC4A1C8 \n"
123 
124 "loc_FFC4A13C:\n"
125 " LDR R0, [SP] \n"
126 " BL sub_FFC4A3B8_my \n" // --> Patched. Old value = 0xFFC4A3B8.
127 
128 "loc_FFC4A144:\n"
129 " STR R7, [R4, #0x24] \n"
130 " B loc_FFC4A2A0 \n"
131 
132 "loc_FFC4A14C:\n"
133 " MOV R0, #1 \n"
134 " BL sub_FFC4AAC4 \n"
135 " B loc_FFC4A2A0 \n"
136 
137 "loc_FFC4A158:\n"
138 " BL sub_FFC4A528 \n"
139 " B loc_FFC4A144 \n"
140 
141 "loc_FFC4A160:\n"
142 " BL sub_FFC4A898 \n"
143 " B loc_FFC4A144 \n"
144 
145 "loc_FFC4A168:\n"
146 " BL sub_FFC4A8A0 \n"
147 " B loc_FFC4A2A0 \n"
148 
149 "loc_FFC4A170:\n"
150 " BL sub_FFC4A9E4 \n"
151 " B loc_FFC4A1D4 \n"
152 
153 "loc_FFC4A178:\n"
154 " LDR R5, [R0, #0xC] \n"
155 " BL sub_FFC4A8A8 \n"
156 " MOV R0, R5 \n"
157 " BL sub_FFCFB5EC \n"
158 " TST R0, #1 \n"
159 " MOV R8, R0 \n"
160 " BNE loc_FFC4A1B8 \n"
161 " BL sub_FFC5A478 \n"
162 " STR R0, [R5, #0x18] \n"
163 " MOV R0, R5 \n"
164 " BL sub_FFCFC478 \n"
165 " MOV R0, R5 \n"
166 " BL sub_FFCFC824 \n"
167 " MOV R8, R0 \n"
168 " LDR R0, [R5, #0x18] \n"
169 " BL sub_FFC5A68C \n"
170 
171 "loc_FFC4A1B8:\n"
172 " BL sub_FFC4A898 \n"
173 " MOV R2, R5 \n"
174 " MOV R1, #9 \n"
175 " MOV R0, R8 \n"
176 
177 "loc_FFC4A1C8:\n"
178 " BL sub_FFC483E8 \n"
179 " B loc_FFC4A2A0 \n"
180 
181 "loc_FFC4A1D0:\n"
182 " BL sub_FFC4AA44 \n"
183 
184 "loc_FFC4A1D4:\n"
185 " BL sub_FFC47F08 \n"
186 " B loc_FFC4A2A0 \n"
187 
188 "loc_FFC4A1DC:\n"
189 " LDR R0, [R4, #0x54] \n"
190 " BL sub_FFC4AE20 \n"
191 " B loc_FFC4A2A0 \n"
192 
193 "loc_FFC4A1E8:\n"
194 " BL sub_FFC4B0C8 \n"
195 " B loc_FFC4A2A0 \n"
196 
197 "loc_FFC4A1F0:\n"
198 " BL sub_FFC4B15C \n"
199 " B loc_FFC4A2A0 \n"
200 
201 "loc_FFC4A1F8:\n"
202 " BL sub_FFC4A898 \n"
203 " B loc_FFC4A2A0 \n"
204 
205 "loc_FFC4A200:\n"
206 " BL sub_FFCFB7FC \n"
207 " B loc_FFC4A2A0 \n"
208 
209 "loc_FFC4A208:\n"
210 " BL sub_FFCFB9DC \n"
211 " B loc_FFC4A2A0 \n"
212 
213 "loc_FFC4A210:\n"
214 " BL sub_FFCFBA6C \n"
215 " B loc_FFC4A2A0 \n"
216 
217 "loc_FFC4A218:\n"
218 " BL sub_FFCFBB14 \n"
219 " B loc_FFC4A2A0 \n"
220 
221 "loc_FFC4A220:\n"
222 " MOV R0, #0 \n"
223 " BL sub_FFCFBCD0 \n"
224 " B loc_FFC4A2A0 \n"
225 
226 "loc_FFC4A22C:\n"
227 " BL sub_FFCFBE08 \n"
228 " B loc_FFC4A2A0 \n"
229 
230 "loc_FFC4A234:\n"
231 " BL sub_FFCFBE98 \n"
232 " B loc_FFC4A2A0 \n"
233 
234 "loc_FFC4A23C:\n"
235 " BL sub_FFCFBF58 \n"
236 " B loc_FFC4A2A0 \n"
237 
238 "loc_FFC4A244:\n"
239 " BL sub_FFC4AC24 \n"
240 " B loc_FFC4A2A0 \n"
241 
242 "loc_FFC4A24C:\n"
243 " BL sub_FFC4ACB0 \n"
244 " BL sub_FFC1498C \n"
245 " B loc_FFC4A2A0 \n"
246 
247 "loc_FFC4A258:\n"
248 " BL sub_FFCFBBD0 \n"
249 " B loc_FFC4A2A0 \n"
250 
251 "loc_FFC4A260:\n"
252 " BL sub_FFCFBC14 \n"
253 " B loc_FFC4A2A0 \n"
254 
255 "loc_FFC4A268:\n"
256 " BL sub_FFC4CC98 \n"
257 " B loc_FFC4A2A0 \n"
258 
259 "loc_FFC4A270:\n"
260 " BL sub_FFC4CCF4 \n"
261 " B loc_FFC4A2A0 \n"
262 
263 "loc_FFC4A278:\n"
264 " BL sub_FFC4CD50 \n"
265 " BL sub_FFC4CD10 \n"
266 " B loc_FFC4A2A0 \n"
267 
268 "loc_FFC4A284:\n"
269 " LDRH R0, [R4, #0x98] \n"
270 " CMP R0, #4 \n"
271 " BLNE sub_FFC4CFBC \n"
272 " B loc_FFC4A2A0 \n"
273 
274 "loc_FFC4A294:\n"
275 " LDR R1, =0x6C9 \n"
276 " LDR R0, =0xFFC49B94 /*'SsShootTask.c'*/ \n"
277 " BL _DebugAssert \n"
278 
279 "loc_FFC4A2A0:\n"
280 " LDR R0, [SP] \n"
281 " LDR R1, [R0, #4] \n"
282 " LDR R0, [R6] \n"
283 " BL sub_FFC524CC /*_SetEventFlag*/ \n"
284 " LDR R5, [SP] \n"
285 " LDR R0, [R5, #8] \n"
286 " CMP R0, #0 \n"
287 " LDREQ R1, =0x12B \n"
288 " LDREQ R0, =0xFFC49B94 /*'SsShootTask.c'*/ \n"
289 " BLEQ _DebugAssert \n"
290 " STR R7, [R5, #8] \n"
291 " B loc_FFC49FF4 \n"
292 );
293 }