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)
 

Funktionen

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

Makro-Dokumentation

#define NR_AUTO   (0)

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

18  {
19 asm volatile (
20 " STMFD SP!, {R3-R7,LR} \n"
21 " LDR R5, =0x1D6B4 \n"
22 " LDR R7, =0x35C0 \n"
23 " MOV R6, #0 \n"
24 
25 "loc_FF88F798:\n"
26 " LDR R0, [R7, #4] \n"
27 " MOV R2, #0 \n"
28 " MOV R1, SP \n"
29 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
30 " TST R0, #1 \n"
31 " BEQ loc_FF88F7C8 \n"
32 " LDR R2, =0x443 \n"
33 " LDR R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
34 " MOV R0, #0 \n"
35 " BL _DebugAssert \n"
36 " BL _ExitTask \n"
37 " LDMFD SP!, {R3-R7,PC} \n"
38 
39 "loc_FF88F7C8:\n"
40 " LDR R0, [SP] \n"
41 " LDR R0, [R0] \n"
42 " CMP R0, #1 \n"
43 " CMPNE R0, #0x23 \n"
44 " CMPNE R0, #0x19 \n"
45 " BLNE sub_FF99FA5C \n"
46 " LDR R0, [SP] \n"
47 " LDR R1, [R0] \n"
48 " CMP R1, #0x25 \n"
49 " ADDCC PC, PC, R1, LSL#2 \n"
50 " B loc_FF88FA18 \n"
51 " B loc_FF88F888 \n"
52 " B loc_FF88F8A0 \n"
53 " B loc_FF88F8AC \n"
54 " B loc_FF88F8C0 \n"
55 " B loc_FF88F8B8 \n"
56 " B loc_FF88F8CC \n"
57 " B loc_FF88F8D4 \n"
58 " B loc_FF88F8DC \n"
59 " B loc_FF88F8E8 \n"
60 " B loc_FF88F914 \n"
61 " B loc_FF88F8F4 \n"
62 " B loc_FF88F900 \n"
63 " B loc_FF88F908 \n"
64 " B loc_FF88F91C \n"
65 " B loc_FF88F924 \n"
66 " B loc_FF88F92C \n"
67 " B loc_FF88F934 \n"
68 " B loc_FF88F93C \n"
69 " B loc_FF88F948 \n"
70 " B loc_FF88F950 \n"
71 " B loc_FF88F958 \n"
72 " B loc_FF88F960 \n"
73 " B loc_FF88F968 \n"
74 " B loc_FF88F970 \n"
75 " B loc_FF88F978 \n"
76 " B loc_FF88F980 \n"
77 " B loc_FF88F98C \n"
78 " B loc_FF88F994 \n"
79 " B loc_FF88F99C \n"
80 " B loc_FF88F9A4 \n"
81 " B loc_FF88F9AC \n"
82 " B loc_FF88F9B8 \n"
83 " B loc_FF88F9C0 \n"
84 " B loc_FF88F9CC \n"
85 " B loc_FF88F9F8 \n"
86 " B loc_FF88FA04 \n"
87 " B loc_FF88FA28 \n"
88 
89 "loc_FF88F888:\n"
90 " BL shooting_expo_iso_override\n" // added
91 " BL sub_FF88FFC4 \n"
92 " BL shooting_expo_param_override\n" // added
93 " BL sub_FF88CD14 \n"
94 //To do: Check if this is needed.
95 //" MOV R0, #0\n" // added
96 //" STR R0, [R5,#0x28]\n" // added, fixes overrides behavior at short shutter press (from S95)
97 " LDR R0, [R5, #0x28] \n"
98 " CMP R0, #0 \n"
99 " BLNE sub_FF99E970_my \n" // --> Patched. Old value = 0xFF99E970.
100 " B loc_FF88FA28 \n"
101 
102 "loc_FF88F8A0:\n"
103 " LDR R0, [R0, #0x10] \n"
104 " BL sub_FF99E7A4_my \n" // --> Patched. Old value = 0xFF99E7A4.
105 " B loc_FF88FA28 \n"
106 
107 "loc_FF88F8AC:\n"
108 " MOV R0, #1 \n"
109 " BL sub_FF89031C \n"
110 " B loc_FF88FA28 \n"
111 
112 "loc_FF88F8B8:\n"
113 " BL sub_FF88FBFC \n"
114 " B loc_FF88F8C4 \n"
115 
116 "loc_FF88F8C0:\n"
117 " BL sub_FF88FFA0 \n"
118 
119 "loc_FF88F8C4:\n"
120 " STR R6, [R5, #0x28] \n"
121 " B loc_FF88FA28 \n"
122 
123 "loc_FF88F8CC:\n"
124 " BL sub_FF88FFA8 \n"
125 " B loc_FF88FA28 \n"
126 
127 "loc_FF88F8D4:\n"
128 " BL sub_FF8901E0 \n"
129 " B loc_FF88F8EC \n"
130 
131 "loc_FF88F8DC:\n"
132 " LDR R0, [R0, #0x10] \n"
133 " BL sub_FF99EA58 \n"
134 " B loc_FF88FA28 \n"
135 
136 "loc_FF88F8E8:\n"
137 " BL sub_FF890274 \n"
138 
139 "loc_FF88F8EC:\n"
140 " BL sub_FF88CD14 \n"
141 " B loc_FF88FA28 \n"
142 
143 "loc_FF88F8F4:\n"
144 " LDR R0, [R5, #0x54] \n"
145 " BL sub_FF8908E0 \n"
146 " B loc_FF88FA28 \n"
147 
148 "loc_FF88F900:\n"
149 " BL sub_FF890D34 \n"
150 " B loc_FF88FA28 \n"
151 
152 "loc_FF88F908:\n"
153 " LDR R0, [R0, #0xC] \n"
154 " BL sub_FF890D9C \n"
155 " B loc_FF88FA28 \n"
156 
157 "loc_FF88F914:\n"
158 " BL sub_FF88FFA0 \n"
159 " B loc_FF88FA28 \n"
160 
161 "loc_FF88F91C:\n"
162 " BL sub_FF99D300 \n"
163 " B loc_FF88FA28 \n"
164 
165 "loc_FF88F924:\n"
166 " BL sub_FF99D538 \n"
167 " B loc_FF88FA28 \n"
168 
169 "loc_FF88F92C:\n"
170 " BL sub_FF99D5F4 \n"
171 " B loc_FF88FA28 \n"
172 
173 "loc_FF88F934:\n"
174 " BL sub_FF99D6CC \n"
175 " B loc_FF88FA28 \n"
176 
177 "loc_FF88F93C:\n"
178 " MOV R0, #0 \n"
179 " BL sub_FF99D934 \n"
180 " B loc_FF88FA28 \n"
181 
182 "loc_FF88F948:\n"
183 " BL sub_FF99DA94 \n"
184 " B loc_FF88FA28 \n"
185 
186 "loc_FF88F950:\n"
187 " BL sub_FF896970 \n"
188 " B loc_FF88FA28 \n"
189 
190 "loc_FF88F958:\n"
191 " BL sub_FF89697C \n"
192 " B loc_FF88FA28 \n"
193 
194 "loc_FF88F960:\n"
195 " BL sub_FF99DB30 \n"
196 " B loc_FF88FA28 \n"
197 
198 "loc_FF88F968:\n"
199 " BL sub_FF99DBDC \n"
200 " B loc_FF88FA28 \n"
201 
202 "loc_FF88F970:\n"
203 " BL sub_FF890464 \n"
204 " B loc_FF88FA28 \n"
205 
206 "loc_FF88F978:\n"
207 " MOV R0, #0 \n"
208 " B loc_FF88F984 \n"
209 
210 "loc_FF88F980:\n"
211 " LDR R0, [R0, #0xC] \n"
212 
213 "loc_FF88F984:\n"
214 " BL sub_FF8904F4 \n"
215 " B loc_FF88FA28 \n"
216 
217 "loc_FF88F98C:\n"
218 " BL sub_FF99D79C \n"
219 " B loc_FF88FA28 \n"
220 
221 "loc_FF88F994:\n"
222 " BL sub_FF99D7DC \n"
223 " B loc_FF88FA28 \n"
224 
225 "loc_FF88F99C:\n"
226 " BL sub_FF893304 \n"
227 " B loc_FF88FA28 \n"
228 
229 "loc_FF88F9A4:\n"
230 " BL sub_FF8933F4 \n"
231 " B loc_FF88FA28 \n"
232 
233 "loc_FF88F9AC:\n"
234 " LDR R0, [R0, #0xC] \n"
235 " BL sub_FF99DCEC \n"
236 " B loc_FF88FA28 \n"
237 
238 "loc_FF88F9B8:\n"
239 " BL sub_FF99DD74 \n"
240 " B loc_FF88FA28 \n"
241 
242 "loc_FF88F9C0:\n"
243 " BL sub_FF893584 \n"
244 " BL sub_FF89344C \n"
245 " B loc_FF88FA28 \n"
246 
247 "loc_FF88F9CC:\n"
248 " BL sub_FF895620 \n"
249 " LDR R0, =0x1D7B4 \n"
250 " LDRH R0, [R0, #0x9C] \n"
251 " CMP R0, #4 \n"
252 " LDRNEH R0, [R5] \n"
253 " SUBNE R1, R0, #0x8200 \n"
254 " SUBNES R1, R1, #0x36 \n"
255 " BNE loc_FF88FA28 \n"
256 " BL sub_FF8933F4 \n"
257 " BL sub_FF89391C \n"
258 " B loc_FF88FA28 \n"
259 
260 "loc_FF88F9F8:\n"
261 " MOV R2, #0 \n"
262 " MOV R1, #0x11 \n"
263 " B loc_FF88FA0C \n"
264 
265 "loc_FF88FA04:\n"
266 " MOV R2, #0 \n"
267 " MOV R1, #0x10 \n"
268 
269 "loc_FF88FA0C:\n"
270 " MOV R0, #0 \n"
271 " BL sub_FF88D82C \n"
272 " B loc_FF88FA28 \n"
273 
274 "loc_FF88FA18:\n"
275 " LDR R2, =0x57B \n"
276 " LDR R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
277 " MOV R0, #0 \n"
278 " BL _DebugAssert \n"
279 
280 "loc_FF88FA28:\n"
281 " LDR R0, [SP] \n"
282 " LDR R1, [R0, #4] \n"
283 " LDR R0, [R7] \n"
284 " BL sub_FF829BC4 /*_SetEventFlag*/ \n"
285 " LDR R4, [SP] \n"
286 " LDR R0, [R4, #8] \n"
287 " CMP R0, #0 \n"
288 " LDREQ R1, =0xFF88F0FC /*'SsShootTask.c'*/ \n"
289 " MOVEQ R2, #0x124 \n"
290 " BLEQ _DebugAssert \n"
291 " STR R6, [R4, #8] \n"
292 " B loc_FF88F798 \n"
293 );
294 }