CHDK_DE Vorschauversion  Trunk Rev. 5546
 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, =0x19EBC \n"
18 " LDR R5, =0x54E0 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FF85E050:\n"
23 " LDR R0, [R5, #0xC] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF827D90 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF85E07C \n"
29 " LDR R1, =0x48E \n"
30 " LDR R0, =0xFF85DD14 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FF85E07C:\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_FF85E29C \n"
41 " B loc_FF85E100 \n"
42 " B loc_FF85E168 \n"
43 " B loc_FF85E170 \n"
44 " B loc_FF85E188 \n"
45 " B loc_FF85E17C \n"
46 " B loc_FF85E190 \n"
47 " B loc_FF85E198 \n"
48 " B loc_FF85E1A0 \n"
49 " B loc_FF85E1F8 \n"
50 " B loc_FF85E204 \n"
51 " B loc_FF85E20C \n"
52 " B loc_FF85E214 \n"
53 " B loc_FF85E21C \n"
54 " B loc_FF85E224 \n"
55 " B loc_FF85E22C \n"
56 " B loc_FF85E234 \n"
57 " B loc_FF85E23C \n"
58 " B loc_FF85E248 \n"
59 " B loc_FF85E250 \n"
60 " B loc_FF85E258 \n"
61 " B loc_FF85E260 \n"
62 " B loc_FF85E26C \n"
63 " B loc_FF85E274 \n"
64 " B loc_FF85E27C \n"
65 " B loc_FF85E284 \n"
66 " B loc_FF85E28C \n"
67 " B loc_FF85E294 \n"
68 " B loc_FF85E2A8 \n"
69 
70 "loc_FF85E100:\n"
71 " BL sub_FF93C448 \n"
72 // only do quick press hack if overrides are active
73 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
74 " STR R0,[SP,#-4]!\n" // push return value
75 " BL shooting_expo_param_override\n" // added
76 " BL sub_FF85C1C4 \n"
77 " LDR R0,[SP],#4\n" // pop override hack
78 " CMP R0, #1\n" // +
79 " MOVEQ R0, #0\n" // +
80 " STREQ R0, [R6,#0x24]\n" // fixes overrides behavior at short shutter press
81 " LDRNE R0, [R6,#0x24]\n" // modified NE
82 " CMPNE R0, #0\n" // modified NE
83 " BEQ loc_FF85E2A8 \n"
84 " BL sub_FF85D9E4 \n"
85 " MOV R4, R0 \n"
86 " LDR R0, [R6, #0x24] \n"
87 " CMP R0, #0 \n"
88 " BEQ loc_FF85E148 \n"
89 " MOV R0, #0xC \n"
90 " BL sub_FF8610AC \n"
91 " TST R0, #1 \n"
92 " STRNE R9, [R5, #4] \n"
93 " LDRNE R0, [R4, #8] \n"
94 " ORRNE R0, R0, #0x40000000 \n"
95 " STRNE R0, [R4, #8] \n"
96 " BNE loc_FF85E2A8 \n"
97 
98 "loc_FF85E148:\n"
99 " BL sub_FF95DEA0 \n"
100 " BL sub_FF86D198 \n"
101 " STR R0, [R4, #0x14] \n"
102 " MOV R0, R4 \n"
103 " BL sub_FF93DB30_my \n" // --> Patched. Old value = 0xFF93DB30.
104 " BL capt_seq_hook_raw_here \n" // added
105 " TST R0, #1 \n"
106 " STRNE R9, [R5, #4] \n"
107 " B loc_FF85E2A8 \n"
108 
109 "loc_FF85E168:\n"
110 " BL sub_FF85E3C0_my \n" // --> Patched. Old value = 0xFF85E3C0.
111 " B loc_FF85E180 \n"
112 
113 "loc_FF85E170:\n"
114 " MOV R0, #1 \n"
115 " BL sub_FF93C5F0 \n"
116 " B loc_FF85E2A8 \n"
117 
118 "loc_FF85E17C:\n"
119 " BL sub_FF93C0E0 \n"
120 
121 "loc_FF85E180:\n"
122 " STR R7, [R6, #0x24] \n"
123 " B loc_FF85E2A8 \n"
124 
125 "loc_FF85E188:\n"
126 " BL sub_FF93C414 \n"
127 " B loc_FF85E180 \n"
128 
129 "loc_FF85E190:\n"
130 " BL sub_FF93C41C \n"
131 " B loc_FF85E2A8 \n"
132 
133 "loc_FF85E198:\n"
134 " BL sub_FF93C510 \n"
135 " B loc_FF85E1FC \n"
136 
137 "loc_FF85E1A0:\n"
138 " LDR R4, [R0, #0xC] \n"
139 " BL sub_FF93C424 \n"
140 " MOV R0, R4 \n"
141 " BL sub_FF93CC38 \n"
142 " TST R0, #1 \n"
143 " MOV R8, R0 \n"
144 " BNE loc_FF85E1E0 \n"
145 " BL sub_FF86D198 \n"
146 " STR R0, [R4, #0x14] \n"
147 " MOV R0, R4 \n"
148 " BL sub_FF93DA48 \n"
149 " MOV R0, R4 \n"
150 " BL sub_FF93DF9C \n"
151 " MOV R8, R0 \n"
152 " LDR R0, [R4, #0x14] \n"
153 " BL sub_FF86D3A4 \n"
154 
155 "loc_FF85E1E0:\n"
156 " BL sub_FF93C414 \n"
157 " MOV R2, R4 \n"
158 " MOV R1, #9 \n"
159 " MOV R0, R8 \n"
160 " BL sub_FF85C718 \n"
161 " B loc_FF85E2A8 \n"
162 
163 "loc_FF85E1F8:\n"
164 " BL sub_FF93C570 \n"
165 
166 "loc_FF85E1FC:\n"
167 " BL sub_FF85C1C4 \n"
168 " B loc_FF85E2A8 \n"
169 
170 "loc_FF85E204:\n"
171 " BL sub_FF93C414 \n"
172 " B loc_FF85E2A8 \n"
173 
174 "loc_FF85E20C:\n"
175 " BL sub_FF93CEA4 \n"
176 " B loc_FF85E2A8 \n"
177 
178 "loc_FF85E214:\n"
179 " BL sub_FF93D08C \n"
180 " B loc_FF85E2A8 \n"
181 
182 "loc_FF85E21C:\n"
183 " BL sub_FF93D11C \n"
184 " B loc_FF85E2A8 \n"
185 
186 "loc_FF85E224:\n"
187 " BL sub_FF93D1D0 \n"
188 " B loc_FF85E2A8 \n"
189 
190 "loc_FF85E22C:\n"
191 " BL sub_FF93D3C8 \n"
192 " B loc_FF85E2A8 \n"
193 
194 "loc_FF85E234:\n"
195 " BL sub_FF93D418 \n"
196 " B loc_FF85E2A8 \n"
197 
198 "loc_FF85E23C:\n"
199 " MOV R0, #0 \n"
200 " BL sub_FF93D49C \n"
201 " B loc_FF85E2A8 \n"
202 
203 "loc_FF85E248:\n"
204 " BL sub_FF93D5EC \n"
205 " B loc_FF85E2A8 \n"
206 
207 "loc_FF85E250:\n"
208 " BL sub_FF93D680 \n"
209 " B loc_FF85E2A8 \n"
210 
211 "loc_FF85E258:\n"
212 " BL sub_FF93D748 \n"
213 " B loc_FF85E2A8 \n"
214 
215 "loc_FF85E260:\n"
216 " BL sub_FF93C714 \n"
217 " BL sub_FF824C38 \n"
218 " B loc_FF85E2A8 \n"
219 
220 "loc_FF85E26C:\n"
221 " BL sub_FF93D28C \n"
222 " B loc_FF85E2A8 \n"
223 
224 "loc_FF85E274:\n"
225 " BL sub_FF93D2F8 \n"
226 " B loc_FF85E2A8 \n"
227 
228 "loc_FF85E27C:\n"
229 " BL sub_FF93F558 \n"
230 " B loc_FF85E2A8 \n"
231 
232 "loc_FF85E284:\n"
233 " BL sub_FF93F574 \n"
234 " B loc_FF85E2A8 \n"
235 
236 "loc_FF85E28C:\n"
237 " BL sub_FF93F584 \n"
238 " B loc_FF85E2A8 \n"
239 
240 "loc_FF85E294:\n"
241 " BL sub_FF93F5B0 \n"
242 " B loc_FF85E2A8 \n"
243 
244 "loc_FF85E29C:\n"
245 " LDR R1, =0x58E \n"
246 " LDR R0, =0xFF85DD14 /*'SsShootTask.c'*/ \n"
247 " BL _DebugAssert \n"
248 
249 "loc_FF85E2A8:\n"
250 " LDR R0, [SP] \n"
251 " LDR R1, [R0, #4] \n"
252 " LDR R0, [R5, #8] \n"
253 " BL sub_FF827B0C /*_SetEventFlag*/ \n"
254 " LDR R4, [SP] \n"
255 " LDR R0, [R4, #8] \n"
256 " CMP R0, #0 \n"
257 " LDREQ R1, =0x10D \n"
258 " LDREQ R0, =0xFF85DD14 /*'SsShootTask.c'*/ \n"
259 " BLEQ _DebugAssert \n"
260 " STR R7, [R4, #8] \n"
261 " B loc_FF85E050 \n"
262 );
263 }