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

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 R5, =0x3A27C \n"
20 " LDR R7, =0x2B90 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF87AA9C:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF87AAC8 \n"
30 " LDR R1, =0x476 \n"
31 " LDR R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF87AAC8:\n"
37 " LDR R0, [SP] \n"
38 " LDR R1, [R0] \n"
39 " CMP R1, #0x20 \n"
40 " ADDCC PC, PC, R1, LSL#2 \n"
41 " B loc_FF87ACE8 \n"
42 " B loc_FF87AB5C \n"
43 " B loc_FF87AB74 \n"
44 " B loc_FF87ABA0 \n"
45 " B loc_FF87ABB4 \n"
46 " B loc_FF87ABAC \n"
47 " B loc_FF87ABC0 \n"
48 " B loc_FF87ABC8 \n"
49 " B loc_FF87ABD0 \n"
50 " B loc_FF87ABEC \n"
51 " B loc_FF87AC14 \n"
52 " B loc_FF87ABF8 \n"
53 " B loc_FF87AC04 \n"
54 " B loc_FF87AC0C \n"
55 " B loc_FF87AC1C \n"
56 " B loc_FF87AC24 \n"
57 " B loc_FF87AC2C \n"
58 " B loc_FF87AC34 \n"
59 " B loc_FF87AC3C \n"
60 " B loc_FF87AC48 \n"
61 " B loc_FF87AC50 \n"
62 " B loc_FF87AC58 \n"
63 " B loc_FF87AC60 \n"
64 " B loc_FF87AC68 \n"
65 " B loc_FF87AC74 \n"
66 " B loc_FF87AC7C \n"
67 " B loc_FF87AC84 \n"
68 " B loc_FF87AC8C \n"
69 " B loc_FF87AC94 \n"
70 " B loc_FF87AC9C \n"
71 " B loc_FF87ACA4 \n"
72 " B loc_FF87ACB0 \n"
73 " B loc_FF87ACF4 \n"
74 
75 "loc_FF87AB5C:\n"
76 " BL shooting_expo_iso_override\n" // added
77 " BL sub_FF87B26C \n"
78 // only do quick press hack if overrides are active
79 " BL captseq_hack_override_active\n" // returns 1 if tv or sv override in effect
80 " STR R0,[SP,#-4]!\n" // push return value
81 " BL shooting_expo_param_override\n" // added
82 " BL sub_FF8786B8 \n"
83 " LDR R0,[SP],#4\n" // pop override hack
84 " CMP R0, #1\n" // +
85 " MOVEQ R0, #0\n" // +
86 " STREQ R0, [R5,#0x28]\n" // fixes overrides behavior at short shutter press
87 " LDRNE R0, [R5,#0x28]\n" // modified NE
88 " CMPNE R0, #0\n" // modified NE
89 //" LDR R0, [R5, #0x28] \n" // above patch makes these lines redundant
90 //" CMP R0, #0 \n"
91 " BLNE sub_FF96E9FC \n"
92 " B loc_FF87ACF4 \n"
93 
94 "loc_FF87AB74:\n"
95 " LDR R8, [R0, #0xC] \n"
96 " MOV R0, R8 \n"
97 " BL sub_FF96E91C_my \n" // --> Patched. Old value = 0xFF96E91C.
98 " BL capt_seq_hook_raw_here \n" // added
99 " MOV R4, R0 \n"
100 " MOV R2, R8 \n"
101 " MOV R1, #1 \n"
102 " BL sub_FF878CAC \n"
103 " TST R4, #1 \n"
104 " MOVEQ R0, R8 \n"
105 " BLEQ sub_FF96E3BC \n"
106 " B loc_FF87ACF4 \n"
107 
108 "loc_FF87ABA0:\n"
109 " MOV R0, #1 \n"
110 " BL sub_FF87B50C \n"
111 " B loc_FF87ACF4 \n"
112 
113 "loc_FF87ABAC:\n"
114 " BL sub_FF87AF00 \n"
115 " B loc_FF87ABB8 \n"
116 
117 "loc_FF87ABB4:\n"
118 " BL sub_FF87B24C \n"
119 
120 "loc_FF87ABB8:\n"
121 " STR R6, [R5, #0x28] \n"
122 " B loc_FF87ACF4 \n"
123 
124 "loc_FF87ABC0:\n"
125 " BL sub_FF87B254 \n"
126 " B loc_FF87ACF4 \n"
127 
128 "loc_FF87ABC8:\n"
129 " BL sub_FF87B420 \n"
130 " B loc_FF87ABF0 \n"
131 
132 "loc_FF87ABD0:\n"
133 " LDR R4, [R0, #0xC] \n"
134 " MOV R0, R4 \n"
135 " BL sub_FF96EA50 \n"
136 " MOV R2, R4 \n"
137 " MOV R1, #9 \n"
138 " BL sub_FF878CAC \n"
139 " B loc_FF87ACF4 \n"
140 
141 "loc_FF87ABEC:\n"
142 " BL sub_FF87B484 \n"
143 
144 "loc_FF87ABF0:\n"
145 " BL sub_FF8786B8 \n"
146 " B loc_FF87ACF4 \n"
147 
148 "loc_FF87ABF8:\n"
149 " LDR R0, [R5, #0x58] \n"
150 " BL sub_FF87B950 \n"
151 " B loc_FF87ACF4 \n"
152 
153 "loc_FF87AC04:\n"
154 " BL sub_FF87BCC8 \n"
155 " B loc_FF87ACF4 \n"
156 
157 "loc_FF87AC0C:\n"
158 " BL sub_FF87BD2C \n"
159 " B loc_FF87ACF4 \n"
160 
161 "loc_FF87AC14:\n"
162 " BL sub_FF87B24C \n"
163 " B loc_FF87ACF4 \n"
164 
165 "loc_FF87AC1C:\n"
166 " BL sub_FF96D7C4 \n"
167 " B loc_FF87ACF4 \n"
168 
169 "loc_FF87AC24:\n"
170 " BL sub_FF96D9D0 \n"
171 " B loc_FF87ACF4 \n"
172 
173 "loc_FF87AC2C:\n"
174 " BL sub_FF96DA74 \n"
175 " B loc_FF87ACF4 \n"
176 
177 "loc_FF87AC34:\n"
178 " BL sub_FF96DB44 \n"
179 " B loc_FF87ACF4 \n"
180 
181 "loc_FF87AC3C:\n"
182 " MOV R0, #0 \n"
183 " BL sub_FF96DD4C \n"
184 " B loc_FF87ACF4 \n"
185 
186 "loc_FF87AC48:\n"
187 " BL sub_FF96DEC4 \n"
188 " B loc_FF87ACF4 \n"
189 
190 "loc_FF87AC50:\n"
191 " BL sub_FF96DF68 \n"
192 " B loc_FF87ACF4 \n"
193 
194 "loc_FF87AC58:\n"
195 " BL sub_FF96E048 \n"
196 " B loc_FF87ACF4 \n"
197 
198 "loc_FF87AC60:\n"
199 " BL sub_FF87B678 \n"
200 " B loc_FF87ACF4 \n"
201 
202 "loc_FF87AC68:\n"
203 " BL sub_FF87B6A4 \n"
204 " BL sub_FF837A54 \n"
205 " B loc_FF87ACF4 \n"
206 
207 "loc_FF87AC74:\n"
208 " BL sub_FF96DC08 \n"
209 " B loc_FF87ACF4 \n"
210 
211 "loc_FF87AC7C:\n"
212 " BL sub_FF96DC48 \n"
213 " B loc_FF87ACF4 \n"
214 
215 "loc_FF87AC84:\n"
216 " BL sub_FF87E034 \n"
217 " B loc_FF87ACF4 \n"
218 
219 "loc_FF87AC8C:\n"
220 " BL sub_FF87E0A4 \n"
221 " B loc_FF87ACF4 \n"
222 
223 "loc_FF87AC94:\n"
224 " BL sub_FF96E180 \n"
225 " B loc_FF87ACF4 \n"
226 
227 "loc_FF87AC9C:\n"
228 " BL sub_FF96E1E4 \n"
229 " B loc_FF87ACF4 \n"
230 
231 "loc_FF87ACA4:\n"
232 " BL sub_FF87E100 \n"
233 " BL sub_FF87E0C0 \n"
234 " B loc_FF87ACF4 \n"
235 
236 "loc_FF87ACB0:\n"
237 " MOV R0, #1 \n"
238 " BL sub_FF96F1C8 \n"
239 " MOV R0, #1 \n"
240 " BL sub_FF96F2F0 \n"
241 " LDRH R0, [R5, #0x98] \n"
242 " CMP R0, #4 \n"
243 " LDRNEH R0, [R5] \n"
244 " SUBNE R1, R0, #0x4200 \n"
245 " SUBNES R1, R1, #0x2A \n"
246 " BNE loc_FF87ACF4 \n"
247 " BL sub_FF87E0A4 \n"
248 " BL sub_FF87E6A4 \n"
249 " BL sub_FF87E524 \n"
250 " B loc_FF87ACF4 \n"
251 
252 "loc_FF87ACE8:\n"
253 " LDR R1, =0x5D7 \n"
254 " LDR R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
255 " BL _DebugAssert \n"
256 
257 "loc_FF87ACF4:\n"
258 " LDR R0, [SP] \n"
259 " LDR R1, [R0, #4] \n"
260 " LDR R0, [R7] \n"
261 " BL sub_FF884CD0 /*_SetEventFlag*/ \n"
262 " LDR R4, [SP] \n"
263 " LDR R0, [R4, #8] \n"
264 " CMP R0, #0 \n"
265 " LDREQ R0, =0xFF87A62C /*'SsShootTask.c'*/ \n"
266 " MOVEQ R1, #0x118 \n"
267 " BLEQ _DebugAssert \n"
268 " STR R6, [R4, #8] \n"
269 " B loc_FF87AA9C \n"
270 );
271 }