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

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   100

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

16  {
17 asm volatile (
18 " STMFD SP!, {R3-R9,LR} \n"
19 " LDR R4, =0x3B3CC \n"
20 " LDR R7, =0x2E98 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF076A08:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF02B314 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF076A34 \n"
30 " LDR R1, =0x491 \n"
31 " LDR R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF076A34:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x23 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF076CCC \n"
42 " B loc_FF076AD4 \n"
43 " B loc_FF076AEC \n"
44 " B loc_FF076B68 \n"
45 " B loc_FF076B7C \n"
46 " B loc_FF076B74 \n"
47 " B loc_FF076B88 \n"
48 " B loc_FF076B90 \n"
49 " B loc_FF076B98 \n"
50 " B loc_FF076BB4 \n"
51 " B loc_FF076BF4 \n"
52 " B loc_FF076BC0 \n"
53 " B loc_FF076BCC \n"
54 " B loc_FF076BD4 \n"
55 " B loc_FF076BDC \n"
56 " B loc_FF076BE4 \n"
57 " B loc_FF076BEC \n"
58 " B loc_FF076BFC \n"
59 " B loc_FF076C04 \n"
60 " B loc_FF076C0C \n"
61 " B loc_FF076C14 \n"
62 " B loc_FF076C1C \n"
63 " B loc_FF076C28 \n"
64 " B loc_FF076C30 \n"
65 " B loc_FF076C38 \n"
66 " B loc_FF076C40 \n"
67 " B loc_FF076C48 \n"
68 " B loc_FF076C54 \n"
69 " B loc_FF076C5C \n"
70 " B loc_FF076C64 \n"
71 " B loc_FF076C6C \n"
72 " B loc_FF076C74 \n"
73 " B loc_FF076C80 \n"
74 " B loc_FF076C88 \n"
75 " B loc_FF076C94 \n"
76 " B loc_FF076CD8 \n"
77 
78 "loc_FF076AD4:\n"
79 " BL shooting_expo_iso_override\n"
80 " BL sub_FF0772A4 \n"
81 " BL shooting_expo_param_override\n"
82 " BL sub_FF07416C \n"
83 //" LDR R0, [R4, #0x28] \n" // 3 lines removed - redundant with added lines below
84 //" CMP R0, #0 \n"
85 //" BLNE _sub_FF18C580 \n"
86  " MOV R0, #0 \n" // added
87  " STR R0, [R4,#0x28] \n" //added, fixes overrides behavior at short shutter press (S95)
88 " B loc_FF076CD8 \n"
89 
90 "loc_FF076AEC:\n"
91 " LDR R5, [R0, #0x10] \n"
92 " LDR R0, [R4, #0x28] \n"
93 " CMP R0, #0 \n"
94 " BNE loc_FF076B40 \n"
95 " LDRH R0, [R4] \n"
96 " SUB R1, R0, #0x8200 \n"
97 " SUBS R1, R1, #0x2F \n"
98 " SUBNE R1, R0, #0x8200 \n"
99 " SUBNES R1, R1, #0x2E \n"
100 " BLEQ sub_FF0790F0 \n"
101 " BL sub_FF078D90 \n"
102 " MOV R1, R5 \n"
103 " BL sub_FF078DE8 \n"
104 " LDR R0, =0x10F \n"
105 " MOV R2, #4 \n"
106 " ADD R1, R5, #0x24 \n"
107 " BL _SetPropertyCase \n"
108 " MOV R2, #4 \n"
109 " ADD R1, R5, #0x28 \n"
110 " MOV R0, #0x2C \n"
111 " BL _SetPropertyCase \n"
112 
113 "loc_FF076B40:\n"
114 " MOV R0, R5 \n"
115 " BL sub_FF18C3EC_my \n" // --> Patched. Old value = 0xFF18C3EC.
116 " BL capt_seq_hook_raw_here \n"
117 " MOV R8, R0 \n"
118 " MOV R2, R5 \n"
119 " MOV R1, #1 \n"
120 " BL sub_FF074B24 \n"
121 " TST R8, #1 \n"
122 " MOVEQ R0, R5 \n"
123 " BLEQ sub_FF18BD5C \n"
124 " B loc_FF076CD8 \n"
125 
126 "loc_FF076B68:\n"
127 " MOV R0, #1 \n"
128 " BL sub_FF0775A0 \n"
129 " B loc_FF076CD8 \n"
130 
131 "loc_FF076B74:\n"
132 " BL sub_FF076EA8 \n"
133 " B loc_FF076B80 \n"
134 
135 "loc_FF076B7C:\n"
136 " BL sub_FF077284 \n"
137 
138 "loc_FF076B80:\n"
139 " STR R6, [R4, #0x28] \n"
140 " B loc_FF076CD8 \n"
141 
142 "loc_FF076B88:\n"
143 " BL sub_FF07728C \n"
144 " B loc_FF076CD8 \n"
145 
146 "loc_FF076B90:\n"
147 " BL sub_FF077478 \n"
148 " B loc_FF076BB8 \n"
149 
150 "loc_FF076B98:\n"
151 " LDR R5, [R0, #0x10] \n"
152 " MOV R0, R5 \n"
153 " BL sub_FF18C608 \n"
154 " MOV R2, R5 \n"
155 " MOV R1, #9 \n"
156 " BL sub_FF074B24 \n"
157 " B loc_FF076CD8 \n"
158 
159 "loc_FF076BB4:\n"
160 " BL sub_FF077508 \n"
161 
162 "loc_FF076BB8:\n"
163 " BL sub_FF07416C \n"
164 " B loc_FF076CD8 \n"
165 
166 "loc_FF076BC0:\n"
167 " LDR R0, [R4, #0x58] \n"
168 " BL sub_FF077C2C \n"
169 " B loc_FF076CD8 \n"
170 
171 "loc_FF076BCC:\n"
172 " BL sub_FF077F10 \n"
173 " B loc_FF076CD8 \n"
174 
175 "loc_FF076BD4:\n"
176 " BL sub_FF077F74 \n"
177 " B loc_FF076CD8 \n"
178 
179 "loc_FF076BDC:\n"
180 " BL sub_FF078168 \n"
181 " B loc_FF076CD8 \n"
182 
183 "loc_FF076BE4:\n"
184 " BL sub_FF0785B8 \n"
185 " B loc_FF076CD8 \n"
186 
187 "loc_FF076BEC:\n"
188 " BL sub_FF078668 \n"
189 " B loc_FF076CD8 \n"
190 
191 "loc_FF076BF4:\n"
192 " BL sub_FF077284 \n"
193 " B loc_FF076CD8 \n"
194 
195 "loc_FF076BFC:\n"
196 " BL sub_FF18AFD0 \n"
197 " B loc_FF076CD8 \n"
198 
199 "loc_FF076C04:\n"
200 " BL sub_FF18B23C \n"
201 " B loc_FF076CD8 \n"
202 
203 "loc_FF076C0C:\n"
204 " BL sub_FF18B2F8 \n"
205 " B loc_FF076CD8 \n"
206 
207 "loc_FF076C14:\n"
208 " BL sub_FF18B3CC \n"
209 " B loc_FF076CD8 \n"
210 
211 "loc_FF076C1C:\n"
212 " MOV R0, #0 \n"
213 " BL sub_FF18B680 \n"
214 " B loc_FF076CD8 \n"
215 
216 "loc_FF076C28:\n"
217 " BL sub_FF18B7F0 \n"
218 " B loc_FF076CD8 \n"
219 
220 "loc_FF076C30:\n"
221 " BL sub_FF18B884 \n"
222 " B loc_FF076CD8 \n"
223 
224 "loc_FF076C38:\n"
225 " BL sub_FF18B940 \n"
226 " B loc_FF076CD8 \n"
227 
228 "loc_FF076C40:\n"
229 " BL sub_FF077758 \n"
230 " B loc_FF076CD8 \n"
231 
232 "loc_FF076C48:\n"
233 " BL sub_FF0777EC \n"
234 " BL sub_FF028E3C \n"
235 " B loc_FF076CD8 \n"
236 
237 "loc_FF076C54:\n"
238 " BL sub_FF18B49C \n"
239 " B loc_FF076CD8 \n"
240 
241 "loc_FF076C5C:\n"
242 " BL sub_FF18B504 \n"
243 " B loc_FF076CD8 \n"
244 
245 "loc_FF076C64:\n"
246 " BL sub_FF07ACBC \n"
247 " B loc_FF076CD8 \n"
248 
249 "loc_FF076C6C:\n"
250 " BL sub_FF07AD44 \n"
251 " B loc_FF076CD8 \n"
252 
253 "loc_FF076C74:\n"
254 " LDR R0, [R0, #0xC] \n"
255 " BL sub_FF18BA68 \n"
256 " B loc_FF076CD8 \n"
257 
258 "loc_FF076C80:\n"
259 " BL sub_FF18BAD8 \n"
260 " B loc_FF076CD8 \n"
261 
262 "loc_FF076C88:\n"
263 " BL sub_FF07ADAC \n"
264 " BL sub_FF07AD64 \n"
265 " B loc_FF076CD8 \n"
266 
267 "loc_FF076C94:\n"
268 " MOV R0, #1 \n"
269 " BL sub_FF18CD70 \n"
270 " MOV R0, #1 \n"
271 " BL sub_FF18CEA4 \n"
272 " LDRH R0, [R4, #0x98] \n"
273 " CMP R0, #4 \n"
274 " LDRNEH R0, [R4] \n"
275 " SUBNE R1, R0, #0x8200 \n"
276 " SUBNES R1, R1, #0x2B \n"
277 " BNE loc_FF076CD8 \n"
278 " BL sub_FF07AD44 \n"
279 " BL sub_FF07B378 \n"
280 " BL sub_FF07B1D4 \n"
281 " B loc_FF076CD8 \n"
282 
283 "loc_FF076CCC:\n"
284 " LDR R1, =0x5F2 \n"
285 " LDR R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
286 " BL _DebugAssert \n"
287 
288 "loc_FF076CD8:\n"
289 " LDR R0, [SP] \n"
290 " LDR R1, [R0, #4] \n"
291 " LDR R0, [R7] \n"
292 " BL sub_FF081D00 /*_SetEventFlag*/ \n"
293 " LDR R5, [SP] \n"
294 " LDR R0, [R5, #8] \n"
295 " CMP R0, #0 \n"
296 " LDREQ R1, =0x117 \n"
297 " LDREQ R0, =0xFF0764B4 /*'SsShootTask.c'*/ \n"
298 " BLEQ _DebugAssert \n"
299 " STR R6, [R5, #8] \n"
300 " B loc_FF076A08 \n"
301 );
302 }