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

Makro-Dokumentation

#define USE_STUBS_NRFLAG   1

Definiert in Zeile 8 der Datei capt_seq.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 14 der Datei capt_seq.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R3-R9,LR} \n"
17 " LDR R6, =0x291C \n"
18 " LDR R4, =0x14520 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FF85D768:\n"
23 " LDR R0, [R6, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF826978 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF85D794 \n"
29 " LDR R1, =0x588 \n"
30 " LDR R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FF85D794:\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_FF85DA10 \n"
41 " B loc_FF85D820 \n"
42 " B loc_FF85D884 \n"
43 " B loc_FF85D8C0 \n"
44 " B loc_FF85D8D4 \n"
45 " B loc_FF85D8CC \n"
46 " B loc_FF85D8DC \n"
47 " B loc_FF85D8E4 \n"
48 " B loc_FF85D8EC \n"
49 " B loc_FF85D944 \n"
50 " B loc_FF85D96C \n"
51 " B loc_FF85D950 \n"
52 " B loc_FF85D95C \n"
53 " B loc_FF85D964 \n"
54 " B loc_FF85D974 \n"
55 " B loc_FF85D97C \n"
56 " B loc_FF85D984 \n"
57 " B loc_FF85D98C \n"
58 " B loc_FF85D994 \n"
59 " B loc_FF85D9A0 \n"
60 " B loc_FF85D9A8 \n"
61 " B loc_FF85D9B0 \n"
62 " B loc_FF85D9B8 \n"
63 " B loc_FF85D9C0 \n"
64 " B loc_FF85D9CC \n"
65 " B loc_FF85D9D4 \n"
66 " B loc_FF85D9DC \n"
67 " B loc_FF85D9E4 \n"
68 " B loc_FF85D9EC \n"
69 " B loc_FF85D9F8 \n"
70 " B loc_FF85DA1C \n"
71 
72 "loc_FF85D820:\n"
73 " BL sub_FF85E074 \n"
74 
75 // only do quick press hack if overrides are active
76 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
77 " STR R0,[SP,#-4]!\n" // push return value
78 " BL shooting_expo_param_override\n" // added
79 
80 " BL sub_FF85B5A8 \n"
81 
82 " LDR R0, [SP], #4\n" // pop override hack
83 " CMP R0, #1\n" // +
84 " MOVEQ R0, #0\n" // +
85 " STREQ R0, [R4, #0x24]\n" // fixes overrides behavior at short shutter press
86 " LDRNE R0, [R4, #0x24]\n" // modified NE
87 " CMPNE R0, #0\n" // modified NE
88 
89 //" LDR R0, [R4, #0x24] \n" // above patch makes these lines redundant
90 //" CMP R0, #0 \n"
91 " BEQ loc_FF85DA1C \n"
92 " BL sub_FF85CFBC \n"
93 " MOV R5, R0 \n"
94 " LDR R0, [R4, #0x24] \n"
95 " CMP R0, #0 \n"
96 " BEQ loc_FF85D868 \n"
97 " MOV R0, #0xC \n"
98 " BL sub_FF862090 \n"
99 " TST R0, #1 \n"
100 " STRNE R9, [R6, #0x10] \n"
101 " LDRNE R0, [R5, #8] \n"
102 " ORRNE R0, R0, #0x40000000 \n"
103 " STRNE R0, [R5, #8] \n"
104 " BNE loc_FF85DA1C \n"
105 
106 "loc_FF85D868:\n"
107 " MOV R0, R5 \n"
108 " BL sub_FF85D260 \n"
109 " MOV R0, R5 \n"
110 " BL sub_FF91F5BC_my \n" // --> Patched. Old value = 0xFF91F5BC.
111 " TST R0, #1 \n"
112 " STRNE R9, [R6, #0x10] \n"
113 " B loc_FF85DA1C \n"
114 
115 "loc_FF85D884:\n"
116 " LDR R0, [R4, #0x24] \n"
117 " CMP R0, #0 \n"
118 " BNE loc_FF85D8B0 \n"
119 " MOV R0, #0xC \n"
120 " BL sub_FF862090 \n"
121 " TST R0, #1 \n"
122 " LDRNE R0, [SP] \n"
123 " MOVNE R1, #1 \n"
124 " LDRNE R2, [R0, #0xC] \n"
125 " MOVNE R0, #1 \n"
126 " BNE loc_FF85D93C \n"
127 
128 "loc_FF85D8B0:\n"
129 " LDR R0, [SP] \n"
130 " BL sub_FF85DB34_my \n" // --> Patched. Old value = 0xFF85DB34.
131 
132 "loc_FF85D8B8:\n"
133 " STR R7, [R4, #0x24] \n"
134 " B loc_FF85DA1C \n"
135 
136 "loc_FF85D8C0:\n"
137 " MOV R0, #1 \n"
138 " BL sub_FF85E28C \n"
139 " B loc_FF85DA1C \n"
140 
141 "loc_FF85D8CC:\n"
142 " BL sub_FF85DCBC \n"
143 " B loc_FF85D8B8 \n"
144 
145 "loc_FF85D8D4:\n"
146 " BL sub_FF85E054 \n"
147 " B loc_FF85D8B8 \n"
148 
149 "loc_FF85D8DC:\n"
150 " BL sub_FF85E05C \n"
151 " B loc_FF85DA1C \n"
152 
153 "loc_FF85D8E4:\n"
154 " BL sub_FF85E1AC \n"
155 " B loc_FF85D948 \n"
156 
157 "loc_FF85D8EC:\n"
158 " LDR R5, [R0, #0xC] \n"
159 " BL sub_FF85E064 \n"
160 " MOV R0, R5 \n"
161 " BL sub_FF91E5A0 \n"
162 " TST R0, #1 \n"
163 " MOV R8, R0 \n"
164 " BNE loc_FF85D92C \n"
165 " BL sub_FF86E414 \n"
166 " STR R0, [R5, #0x18] \n"
167 " MOV R0, R5 \n"
168 " BL sub_FF91F4D4 \n"
169 " MOV R0, R5 \n"
170 " BL sub_FF91F8C4 \n"
171 " MOV R8, R0 \n"
172 " LDR R0, [R5, #0x18] \n"
173 " BL sub_FF86E628 \n"
174 
175 "loc_FF85D92C:\n"
176 " BL sub_FF85E054 \n"
177 " MOV R2, R5 \n"
178 " MOV R1, #9 \n"
179 " MOV R0, R8 \n"
180 
181 "loc_FF85D93C:\n"
182 " BL sub_FF85BABC \n"
183 " B loc_FF85DA1C \n"
184 
185 "loc_FF85D944:\n"
186 " BL sub_FF85E20C \n"
187 
188 "loc_FF85D948:\n"
189 " BL sub_FF85B5A8 \n"
190 " B loc_FF85DA1C \n"
191 
192 "loc_FF85D950:\n"
193 " LDR R0, [R4, #0x54] \n"
194 " BL sub_FF85E620 \n"
195 " B loc_FF85DA1C \n"
196 
197 "loc_FF85D95C:\n"
198 " BL sub_FF85E8D4 \n"
199 " B loc_FF85DA1C \n"
200 
201 "loc_FF85D964:\n"
202 " BL sub_FF85E968 \n"
203 " B loc_FF85DA1C \n"
204 
205 "loc_FF85D96C:\n"
206 " BL sub_FF85E054 \n"
207 " B loc_FF85DA1C \n"
208 
209 "loc_FF85D974:\n"
210 " BL sub_FF91E7B0 \n"
211 " B loc_FF85DA1C \n"
212 
213 "loc_FF85D97C:\n"
214 " BL sub_FF91E998 \n"
215 " B loc_FF85DA1C \n"
216 
217 "loc_FF85D984:\n"
218 " BL sub_FF91EA28 \n"
219 " B loc_FF85DA1C \n"
220 
221 "loc_FF85D98C:\n"
222 " BL sub_FF91EADC \n"
223 " B loc_FF85DA1C \n"
224 
225 "loc_FF85D994:\n"
226 " MOV R0, #0 \n"
227 " BL sub_FF91ED00 \n"
228 " B loc_FF85DA1C \n"
229 
230 "loc_FF85D9A0:\n"
231 " BL sub_FF91EE38 \n"
232 " B loc_FF85DA1C \n"
233 
234 "loc_FF85D9A8:\n"
235 " BL sub_FF91EEC8 \n"
236 " B loc_FF85DA1C \n"
237 
238 "loc_FF85D9B0:\n"
239 " BL sub_FF91EF88 \n"
240 " B loc_FF85DA1C \n"
241 
242 "loc_FF85D9B8:\n"
243 " BL sub_FF85E40C \n"
244 " B loc_FF85DA1C \n"
245 
246 "loc_FF85D9C0:\n"
247 " BL sub_FF85E4AC \n"
248 " BL sub_FF824A04 \n"
249 " B loc_FF85DA1C \n"
250 
251 "loc_FF85D9CC:\n"
252 " BL sub_FF91EB98 \n"
253 " B loc_FF85DA1C \n"
254 
255 "loc_FF85D9D4:\n"
256 " BL sub_FF91EC04 \n"
257 " B loc_FF85DA1C \n"
258 
259 "loc_FF85D9DC:\n"
260 " BL sub_FF8608A0 \n"
261 " B loc_FF85DA1C \n"
262 
263 "loc_FF85D9E4:\n"
264 " BL sub_FF860908 \n"
265 " B loc_FF85DA1C \n"
266 
267 "loc_FF85D9EC:\n"
268 " BL sub_FF860964 \n"
269 " BL sub_FF860924 \n"
270 " B loc_FF85DA1C \n"
271 
272 "loc_FF85D9F8:\n"
273 " MOV R0, #1 \n"
274 " BL sub_FF9201A4 \n"
275 " LDRH R0, [R4, #0x98] \n"
276 " CMP R0, #4 \n"
277 " BLNE sub_FF860BD0 \n"
278 " B loc_FF85DA1C \n"
279 
280 "loc_FF85DA10:\n"
281 " LDR R1, =0x6C9 \n"
282 " LDR R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
283 " BL _DebugAssert \n"
284 
285 "loc_FF85DA1C:\n"
286 " LDR R0, [SP] \n"
287 " LDR R1, [R0, #4] \n"
288 " LDR R0, [R6] \n"
289 " BL sub_FF866178 /*_SetEventFlag*/ \n"
290 " LDR R5, [SP] \n"
291 " LDR R0, [R5, #8] \n"
292 " CMP R0, #0 \n"
293 " LDREQ R1, =0x12B \n"
294 " LDREQ R0, =0xFF85D2E0 /*'SsShootTask.c'*/ \n"
295 " BLEQ _DebugAssert \n"
296 " STR R7, [R5, #8] \n"
297 " B loc_FF85D768 \n"
298 );
299 }