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

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

!!

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

__MovieRecorder_c__100

__MovieRecorder_c__100

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 15 der Datei capt_seq.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R3-R7,LR} \n"
18 " LDR R7, =0x3648 \n"
19 " LDR R4, =0x3BC24 \n"
20 " MOV R6, #0 \n"
21 
22 "loc_FF8868D0:\n"
23 " LDR R0, [R7, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF83A4C8 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF8868FC \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF8863B0 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R7,PC} \n"
34 
35 "loc_FF8868FC:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x22 \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF886B50 \n"
41 " B loc_FF88699C \n"
42 " B loc_FF8869B4 \n"
43 " B loc_FF8869CC \n"
44 " B loc_FF8869EC \n"
45 " B loc_FF8869E4 \n"
46 " B loc_FF8869F8 \n"
47 " B loc_FF886A00 \n"
48 " B loc_FF886A08 \n"
49 " B loc_FF886A14 \n"
50 " B loc_FF886A3C \n"
51 " B loc_FF886A20 \n"
52 " B loc_FF886A2C \n"
53 " B loc_FF886A34 \n"
54 " B loc_FF886A44 \n"
55 " B loc_FF886A4C \n"
56 " B loc_FF886A54 \n"
57 " B loc_FF886A5C \n"
58 " B loc_FF886A64 \n"
59 " B loc_FF886A6C \n"
60 " B loc_FF886A74 \n"
61 " B loc_FF886A7C \n"
62 " B loc_FF886A84 \n"
63 " B loc_FF886A8C \n"
64 " B loc_FF886A98 \n"
65 " B loc_FF886AA0 \n"
66 " B loc_FF886AAC \n"
67 " B loc_FF886AB4 \n"
68 " B loc_FF886AE4 \n"
69 " B loc_FF886AEC \n"
70 " B loc_FF886AF4 \n"
71 " B loc_FF886AFC \n"
72 " B loc_FF886B04 \n"
73 " B loc_FF886B0C \n"
74 " B loc_FF886B18 \n"
75 " B loc_FF886B5C \n"
76 
77 "loc_FF88699C:\n"
78 " BL shooting_expo_iso_override\n" // added
79 " BL sub_FF887084 \n"
80 " BL shooting_expo_param_override\n" // added
81 " BL sub_FF8840BC \n"
82 " MOV R0, #0\n" // added
83 " STR R0, [R4,#0x24]\n" // added, fixes overrides behavior at short shutter press (from S95)
84 //" LDR R0, [R4, #0x24] \n" // above patch makes these three lines redundant
85 //" CMP R0, #0 \n"
86 //" BLNE _sub_FF992D20 \n"
87 " B loc_FF886B5C \n"
88 
89 "loc_FF8869B4:\n"
90 " LDRH R1, [R4] \n"
91 " SUB R12, R1, #0x8200 \n"
92 " SUBS R12, R12, #0x2E \n"
93 " LDRNE R0, [R0, #0xC] \n"
94 " BLNE sub_FF992B4C_my \n" // --> Patched. Old value = 0xFF992B4C.
95 " B loc_FF886B5C \n"
96 
97 "loc_FF8869CC:\n"
98 " MOV R0, #1 \n"
99 " BL sub_FF88739C \n"
100 " LDR R0, [R4, #0xC] \n"
101 " CMP R0, #0 \n"
102 " BLNE sub_FF888024 \n"
103 " B loc_FF886B5C \n"
104 
105 "loc_FF8869E4:\n"
106 " BL sub_FF886D20 \n"
107 " B loc_FF8869F0 \n"
108 
109 "loc_FF8869EC:\n"
110 " BL sub_FF887064 \n"
111 
112 "loc_FF8869F0:\n"
113 " STR R6, [R4, #0x24] \n"
114 " B loc_FF886B5C \n"
115 
116 "loc_FF8869F8:\n"
117 " BL sub_FF88706C \n"
118 " B loc_FF886B5C \n"
119 
120 "loc_FF886A00:\n"
121 " BL sub_FF887270 \n"
122 " B loc_FF886A18 \n"
123 
124 "loc_FF886A08:\n"
125 " LDR R0, [R0, #0xC] \n"
126 " BL sub_FF992D88 \n"
127 " B loc_FF886B5C \n"
128 
129 "loc_FF886A14:\n"
130 " BL sub_FF88730C \n"
131 
132 "loc_FF886A18:\n"
133 " BL sub_FF8840BC \n"
134 " B loc_FF886B5C \n"
135 
136 "loc_FF886A20:\n"
137 " LDR R0, [R4, #0x54] \n"
138 " BL sub_FF887A5C \n"
139 " B loc_FF886B5C \n"
140 
141 "loc_FF886A2C:\n"
142 " BL sub_FF887DDC \n"
143 " B loc_FF886B5C \n"
144 
145 "loc_FF886A34:\n"
146 " BL sub_FF887E40 \n"
147 " B loc_FF886B5C \n"
148 
149 "loc_FF886A3C:\n"
150 " BL sub_FF887064 \n"
151 " B loc_FF886B5C \n"
152 
153 "loc_FF886A44:\n"
154 " BL sub_FF991B28 \n"
155 " B loc_FF886B5C \n"
156 
157 "loc_FF886A4C:\n"
158 " BL sub_FF991D78 \n"
159 " B loc_FF886B5C \n"
160 
161 "loc_FF886A54:\n"
162 " BL sub_FF991E44 \n"
163 " B loc_FF886B5C \n"
164 
165 "loc_FF886A5C:\n"
166 " BL sub_FF991F58 \n"
167 " B loc_FF886B5C \n"
168 
169 "loc_FF886A64:\n"
170 " BL sub_FF992028 \n"
171 " B loc_FF886B5C \n"
172 
173 "loc_FF886A6C:\n"
174 " MOV R0, #0 \n"
175 " B loc_FF886A90 \n"
176 
177 "loc_FF886A74:\n"
178 " BL sub_FF99263C \n"
179 " B loc_FF886B5C \n"
180 
181 "loc_FF886A7C:\n"
182 " BL sub_FF9926D4 \n"
183 " B loc_FF886B5C \n"
184 
185 "loc_FF886A84:\n"
186 " BL sub_FF9927B4 \n"
187 " B loc_FF886B5C \n"
188 
189 "loc_FF886A8C:\n"
190 " MOV R0, #1 \n"
191 
192 "loc_FF886A90:\n"
193 " BL sub_FF9924E0 \n"
194 " B loc_FF886B5C \n"
195 
196 "loc_FF886A98:\n"
197 " BL sub_FF8875D8 \n"
198 " B loc_FF886B5C \n"
199 
200 "loc_FF886AA0:\n"
201 " BL sub_FF887680 \n"
202 " BL sub_FF9939E8 \n"
203 " B loc_FF886B5C \n"
204 
205 "loc_FF886AAC:\n"
206 " BL sub_FF992308 \n"
207 " B loc_FF886B5C \n"
208 
209 "loc_FF886AB4:\n"
210 " MOV R2, #2 \n"
211 " ADD R1, R4, #0x68 \n"
212 " MOV R0, #0x6F \n"
213 " BL _GetPropertyCase \n"
214 " TST R0, #1 \n"
215 " LDRNE R1, =0x531 \n"
216 " LDRNE R0, =0xFF8863B0 /*'SsShootTask.c'*/ \n"
217 " BLNE _DebugAssert \n"
218 " LDRH R0, [R4, #0x68] \n"
219 " CMP R0, #1 \n"
220 " BLEQ sub_FF9922FC \n"
221 " B loc_FF886B5C \n"
222 
223 "loc_FF886AE4:\n"
224 " BL sub_FF992434 \n"
225 " B loc_FF886B5C \n"
226 
227 "loc_FF886AEC:\n"
228 " BL sub_FF993AB8 \n"
229 " B loc_FF886B5C \n"
230 
231 "loc_FF886AF4:\n"
232 " BL sub_FF837D44 \n"
233 " B loc_FF886B5C \n"
234 
235 "loc_FF886AFC:\n"
236 " BL sub_FF88A2D8 \n"
237 " B loc_FF886B5C \n"
238 
239 "loc_FF886B04:\n"
240 " BL sub_FF88A360 \n"
241 " B loc_FF886B5C \n"
242 
243 "loc_FF886B0C:\n"
244 " BL sub_FF88A3BC \n"
245 " BL sub_FF88A37C \n"
246 " B loc_FF886B5C \n"
247 
248 "loc_FF886B18:\n"
249 " MOV R0, #1 \n"
250 " BL sub_FF993524 \n"
251 " MOV R0, #1 \n"
252 " BL sub_FF993654 \n"
253 " LDRH R0, [R4, #0xA4] \n"
254 " CMP R0, #4 \n"
255 " LDRNEH R0, [R4] \n"
256 " SUBNE R12, R0, #0x4200 \n"
257 " SUBNES R12, R12, #0x2A \n"
258 " BNE loc_FF886B5C \n"
259 " BL sub_FF88A360 \n"
260 " BL sub_FF88A8D4 \n"
261 " BL sub_FF88A7DC \n"
262 " B loc_FF886B5C \n"
263 
264 "loc_FF886B50:\n"
265 " LDR R1, =0x591 \n"
266 " LDR R0, =0xFF8863B0 /*'SsShootTask.c'*/ \n"
267 " BL _DebugAssert \n"
268 
269 "loc_FF886B5C:\n"
270 " LDR R0, [SP] \n"
271 " LDR R1, [R0, #4] \n"
272 " LDR R0, [R7] \n"
273 " BL sub_FF891798 /*_SetEventFlag*/ \n"
274 " LDR R5, [SP] \n"
275 " LDR R0, [R5, #8] \n"
276 " CMP R0, #0 \n"
277 " LDREQ R1, =0x115 \n"
278 " LDREQ R0, =0xFF8863B0 /*'SsShootTask.c'*/ \n"
279 " BLEQ _DebugAssert \n"
280 " STR R6, [R5, #8] \n"
281 " B loc_FF8868D0 \n"
282 );
283 }