CHDK_DE Vorschauversion  Trunk Rev. 5426
 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, =0x19A84 \n"
18 " LDR R5, =0x54B8 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FF85DE1C:\n"
23 " LDR R0, [R5, #0xC] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF827E54 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF85DE48 \n"
29 " LDR R1, =0x48E \n"
30 " LDR R0, =0xFF85DAE0 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FF85DE48:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1B \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF85E068 \n"
41 " B loc_FF85DECC \n"
42 " B loc_FF85DF34 \n"
43 " B loc_FF85DF3C \n"
44 " B loc_FF85DF54 \n"
45 " B loc_FF85DF48 \n"
46 " B loc_FF85DF5C \n"
47 " B loc_FF85DF64 \n"
48 " B loc_FF85DF6C \n"
49 " B loc_FF85DFC4 \n"
50 " B loc_FF85DFD0 \n"
51 " B loc_FF85DFD8 \n"
52 " B loc_FF85DFE0 \n"
53 " B loc_FF85DFE8 \n"
54 " B loc_FF85DFF0 \n"
55 " B loc_FF85DFF8 \n"
56 " B loc_FF85E000 \n"
57 " B loc_FF85E008 \n"
58 " B loc_FF85E014 \n"
59 " B loc_FF85E01C \n"
60 " B loc_FF85E024 \n"
61 " B loc_FF85E02C \n"
62 " B loc_FF85E038 \n"
63 " B loc_FF85E040 \n"
64 " B loc_FF85E048 \n"
65 " B loc_FF85E050 \n"
66 " B loc_FF85E058 \n"
67 " B loc_FF85E060 \n"
68 " B loc_FF85E074 \n"
69 
70 "loc_FF85DECC:\n"
71 " BL sub_FF93876C \n"
72 
73 // only do quick press hack if overrides are active
74 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
75 " STR R0,[SP,#-4]!\n" // push return value
76 " BL shooting_expo_param_override\n" // added
77 
78 " BL sub_FF85BFE8 \n"
79 
80 " LDR R0, [SP], #4\n" // pop override hack
81 " CMP R0, #1\n" // +
82 " MOVEQ R0, #0\n" // +
83 " STREQ R0, [R6, #0x24]\n" // fixes overrides behavior at short shutter press
84 " LDRNE R0, [R6, #0x24]\n" // modified NE
85 " CMPNE R0, #0\n" // modified NE
86 
87 //" LDR R0, [R6, #0x24] \n" // above patch makes these lines redundant
88 //" CMP R0, #0 \n"
89 " BEQ loc_FF85E074 \n"
90 " BL sub_FF85D7B0 \n"
91 " MOV R4, R0 \n"
92 " LDR R0, [R6, #0x24] \n"
93 " CMP R0, #0 \n"
94 " BEQ loc_FF85DF14 \n"
95 " MOV R0, #0xC \n"
96 " BL sub_FF860E24 \n"
97 " TST R0, #1 \n"
98 " STRNE R9, [R5, #4] \n"
99 " LDRNE R0, [R4, #8] \n"
100 " ORRNE R0, R0, #0x40000000 \n"
101 " STRNE R0, [R4, #8] \n"
102 " BNE loc_FF85E074 \n"
103 
104 "loc_FF85DF14:\n"
105 " BL sub_FF95BA50 \n"
106 " BL sub_FF86CF10 \n"
107 " STR R0, [R4, #0x14] \n"
108 " MOV R0, R4 \n"
109 " BL sub_FF939E24_my \n" // --> Patched. Old value = 0xFF939E24.
110 " TST R0, #1 \n"
111 " STRNE R9, [R5, #4] \n"
112 " B loc_FF85E074 \n"
113 
114 "loc_FF85DF34:\n"
115 " BL sub_FF85E18C_my \n" // --> Patched. Old value = 0xFF85E18C.
116 " B loc_FF85DF4C \n"
117 
118 "loc_FF85DF3C:\n"
119 " MOV R0, #1 \n"
120 " BL sub_FF938914 \n"
121 " B loc_FF85E074 \n"
122 
123 "loc_FF85DF48:\n"
124 " BL sub_FF938404 \n"
125 
126 "loc_FF85DF4C:\n"
127 " STR R7, [R6, #0x24] \n"
128 " B loc_FF85E074 \n"
129 
130 "loc_FF85DF54:\n"
131 " BL sub_FF938738 \n"
132 " B loc_FF85DF4C \n"
133 
134 "loc_FF85DF5C:\n"
135 " BL sub_FF938740 \n"
136 " B loc_FF85E074 \n"
137 
138 "loc_FF85DF64:\n"
139 " BL sub_FF938834 \n"
140 " B loc_FF85DFC8 \n"
141 
142 "loc_FF85DF6C:\n"
143 " LDR R4, [R0, #0xC] \n"
144 " BL sub_FF938748 \n"
145 " MOV R0, R4 \n"
146 " BL sub_FF938F5C \n"
147 " TST R0, #1 \n"
148 " MOV R8, R0 \n"
149 " BNE loc_FF85DFAC \n"
150 " BL sub_FF86CF10 \n"
151 " STR R0, [R4, #0x14] \n"
152 " MOV R0, R4 \n"
153 " BL sub_FF939D3C \n"
154 " MOV R0, R4 \n"
155 " BL sub_FF93A250 \n"
156 " MOV R8, R0 \n"
157 " LDR R0, [R4, #0x14] \n"
158 " BL sub_FF86D11C \n"
159 
160 "loc_FF85DFAC:\n"
161 " BL sub_FF938738 \n"
162 " MOV R2, R4 \n"
163 " MOV R1, #9 \n"
164 " MOV R0, R8 \n"
165 " BL sub_FF85C418 \n"
166 " B loc_FF85E074 \n"
167 
168 "loc_FF85DFC4:\n"
169 " BL sub_FF938894 \n"
170 
171 "loc_FF85DFC8:\n"
172 " BL sub_FF85BFE8 \n"
173 " B loc_FF85E074 \n"
174 
175 "loc_FF85DFD0:\n"
176 " BL sub_FF938738 \n"
177 " B loc_FF85E074 \n"
178 
179 "loc_FF85DFD8:\n"
180 " BL sub_FF9391C8 \n"
181 " B loc_FF85E074 \n"
182 
183 "loc_FF85DFE0:\n"
184 " BL sub_FF9393B0 \n"
185 " B loc_FF85E074 \n"
186 
187 "loc_FF85DFE8:\n"
188 " BL sub_FF939440 \n"
189 " B loc_FF85E074 \n"
190 
191 "loc_FF85DFF0:\n"
192 " BL sub_FF9394F4 \n"
193 " B loc_FF85E074 \n"
194 
195 "loc_FF85DFF8:\n"
196 " BL sub_FF9396EC \n"
197 " B loc_FF85E074 \n"
198 
199 "loc_FF85E000:\n"
200 " BL sub_FF93973C \n"
201 " B loc_FF85E074 \n"
202 
203 "loc_FF85E008:\n"
204 " MOV R0, #0 \n"
205 " BL sub_FF9397C0 \n"
206 " B loc_FF85E074 \n"
207 
208 "loc_FF85E014:\n"
209 " BL sub_FF939910 \n"
210 " B loc_FF85E074 \n"
211 
212 "loc_FF85E01C:\n"
213 " BL sub_FF9399A4 \n"
214 " B loc_FF85E074 \n"
215 
216 "loc_FF85E024:\n"
217 " BL sub_FF939A6C \n"
218 " B loc_FF85E074 \n"
219 
220 "loc_FF85E02C:\n"
221 " BL sub_FF938A38 \n"
222 " BL sub_FF824CFC \n"
223 " B loc_FF85E074 \n"
224 
225 "loc_FF85E038:\n"
226 " BL sub_FF9395B0 \n"
227 " B loc_FF85E074 \n"
228 
229 "loc_FF85E040:\n"
230 " BL sub_FF93961C \n"
231 " B loc_FF85E074 \n"
232 
233 "loc_FF85E048:\n"
234 " BL sub_FF93B7D0 \n"
235 " B loc_FF85E074 \n"
236 
237 "loc_FF85E050:\n"
238 " BL sub_FF93B7EC \n"
239 " B loc_FF85E074 \n"
240 
241 "loc_FF85E058:\n"
242 " BL sub_FF93B7FC \n"
243 " B loc_FF85E074 \n"
244 
245 "loc_FF85E060:\n"
246 " BL sub_FF93B828 \n"
247 " B loc_FF85E074 \n"
248 
249 "loc_FF85E068:\n"
250 " LDR R1, =0x58E \n"
251 " LDR R0, =0xFF85DAE0 /*'SsShootTask.c'*/ \n"
252 " BL _DebugAssert \n"
253 
254 "loc_FF85E074:\n"
255 " LDR R0, [SP] \n"
256 " LDR R1, [R0, #4] \n"
257 " LDR R0, [R5, #8] \n"
258 " BL sub_FF827BD0 /*_SetEventFlag*/ \n"
259 " LDR R4, [SP] \n"
260 " LDR R0, [R4, #8] \n"
261 " CMP R0, #0 \n"
262 " LDREQ R1, =0x10D \n"
263 " LDREQ R0, =0xFF85DAE0 /*'SsShootTask.c'*/ \n"
264 " BLEQ _DebugAssert \n"
265 " STR R7, [R4, #8] \n"
266 " B loc_FF85DE1C \n"
267 );
268 }