CHDK_DE Vorschauversion  Trunk Rev. 5891
 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 "conf.h"
#include "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Funktionen

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

Variablen

static long * nrflag = (long*)0x6718
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

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

!!

Definiert in Zeile 14 der Datei capt_seq.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R3-R9,LR} \n"
17 " LDR R6, =0x2988 \n"
18 " LDR R4, =0x37B08 \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 "loc_FF872F98:\n"
22 " LDR R0, [R6, #4] \n"
23 " MOV R2, #0 \n"
24 " MOV R1, SP \n"
25 " BL sub_FF837DC8 \n"
26 " TST R0, #1 \n"
27 " BEQ loc_FF872FC4 \n"
28 " LDR R1, =0x5B4 \n"
29 " LDR R0, =0xFF872B14 \n"
30 " BL sub_FF81E88C \n"
31 " BL sub_FF81E844 \n"
32 " LDMFD SP!, {R3-R9,PC} \n"
33 "loc_FF872FC4:\n"
34 " LDR R0, [SP] \n"
35 " LDR R1, [R0] \n"
36 " CMP R1, #0x1D \n"
37 " ADDLS PC, PC, R1, LSL #2 \n"
38 " B loc_FF873250 \n"
39 
40 " B loc_FF873050 \n"
41 " B loc_FF8730B4 \n"
42 " B loc_FF8730F0 \n"
43 " B loc_FF873104 \n"
44 " B loc_FF8730FC \n"
45 " B loc_FF87310C \n"
46 " B loc_FF873114 \n"
47 " B loc_FF87311C \n"
48 " B loc_FF873174 \n"
49 " B loc_FF87319C \n"
50 " B loc_FF873180 \n"
51 " B loc_FF87318C \n"
52 " B loc_FF873194 \n"
53 " B loc_FF8731A4 \n"
54 " B loc_FF8731AC \n"
55 " B loc_FF8731B4 \n"
56 " B loc_FF8731BC \n"
57 " B loc_FF8731C4 \n"
58 " B loc_FF8731D0 \n"
59 " B loc_FF8731D8 \n"
60 " B loc_FF8731E0 \n"
61 " B loc_FF8731E8 \n"
62 " B loc_FF8731F0 \n"
63 " B loc_FF8731FC \n"
64 " B loc_FF873204 \n"
65 " B loc_FF87320C \n"
66 " B loc_FF873214 \n"
67 " B loc_FF87321C \n"
68 " B loc_FF873228 \n"
69 " B loc_FF87325C \n"
70 
71 "loc_FF873050:\n"
72 " BL sub_FF8738DC \n"
73 " BL shooting_expo_param_override\n" // added
74 " BL sub_FF870DCC \n"
75 
76 // this code added to avoid some incorrect behavior if overrides are used.
77  // but it can cause some unexpected side effects. In this case, remove this code!
78 " MOV R0, #0\n"
79 " STR R0, [R4,#0x24]\n" // fixes overrides behavior at short shutter press
80 
81 " LDR R0, [R4, #0x24] \n"
82 " CMP R0, #0 \n"
83 " BEQ loc_FF87325C \n"
84 " BL sub_FF8727F4 \n"
85 " MOV R5, R0 \n"
86 " LDR R0, [R4, #0x24] \n"
87 " CMP R0, #0 \n"
88 " BEQ loc_FF873098 \n"
89 " MOV R0, #0xC \n"
90 " BL sub_FF877A20 \n"
91 " TST R0, #1 \n"
92 " STRNE R9, [R6, #0x10] \n"
93 " LDRNE R0, [R5, #8] \n"
94 " ORRNE R0, R0, #0x40000000 \n"
95 " STRNE R0, [R5, #8] \n"
96 " BNE loc_FF87325C \n"
97 
98 "loc_FF873098:\n"
99 " MOV R0, R5 \n"
100 " BL sub_FF872A98 \n"
101 " MOV R0, R5 \n"
102 
103 //" BL sub_FF94242C \n"
104 " BL sub_FF94242C_my\n" // patched
105 
106 " TST R0, #1 \n"
107 " STRNE R9, [R6, #0x10] \n"
108 " B loc_FF87325C \n"
109 
110 "loc_FF8730B4:\n"
111 " LDR R0, [R4, #0x24] \n"
112 " CMP R0, #0 \n"
113 " BNE loc_FF8730E0 \n"
114 " MOV R0, #0xC \n"
115 " BL sub_FF877A20 \n"
116 " TST R0, #1 \n"
117 " LDRNE R0, [SP] \n"
118 " MOVNE R1, #1 \n"
119 " LDRNE R2, [R0, #0xC] \n"
120 " MOVNE R0, #1 \n"
121 " BNE loc_FF87316C \n"
122 
123 "loc_FF8730E0:\n"
124 " LDR R0, [SP] \n"
125 //" BL sub_FF873374 \n"
126 " BL sub_FF873374_my \n" // patched
127 
128 
129 "loc_FF8730E8:\n"
130 " STR R7, [R4, #0x24] \n"
131 " B loc_FF87325C \n"
132 
133 "loc_FF8730F0:\n"
134 " MOV R0, #1 \n"
135 " BL sub_FF873B30 \n"
136 " B loc_FF87325C \n"
137 
138 "loc_FF8730FC:\n"
139 " BL sub_FF87351C \n"
140 " B loc_FF8730E8 \n"
141 
142 "loc_FF873104:\n"
143 " BL sub_FF8738BC \n"
144 " B loc_FF8730E8 \n"
145 
146 "loc_FF87310C:\n"
147 " BL sub_FF8738C4 \n"
148 " B loc_FF87325C \n"
149 
150 "loc_FF873114:\n"
151 " BL sub_FF873A50 \n"
152 " B loc_FF873178 \n"
153 
154 "loc_FF87311C:\n"
155 " LDR R5, [R0, #0xC] \n"
156 " BL sub_FF8738CC \n"
157 " MOV R0, R5 \n"
158 " BL sub_FF941244 \n"
159 " TST R0, #1 \n"
160 " MOV R8, R0 \n"
161 " BNE loc_FF87315C \n"
162 " BL sub_FF884AD8 \n"
163 " STR R0, [R5, #0x18] \n"
164 " MOV R0, R5 \n"
165 " BL sub_FF942344 \n"
166 " MOV R0, R5 \n"
167 " BL sub_FF942740 \n"
168 " MOV R8, R0 \n"
169 " LDR R0, [R5, #0x18] \n"
170 " BL sub_FF884CDC \n"
171 "loc_FF87315C:\n"
172 " BL sub_FF8738BC \n"
173 " MOV R2, R5 \n"
174 " MOV R1, #9 \n"
175 " MOV R0, R8 \n"
176 "loc_FF87316C:\n"
177 " BL sub_FF8712B8 \n"
178 " B loc_FF87325C \n"
179 
180 
181 "loc_FF873174:\n"
182 " BL sub_FF873AB0 \n"
183 "loc_FF873178:\n"
184 " BL sub_FF870DCC \n"
185 " B loc_FF87325C \n"
186 "loc_FF873180:\n"
187 " LDR R0, [R4, #0x54] \n"
188 " BL sub_FF873EBC \n"
189 " B loc_FF87325C \n"
190 "loc_FF87318C:\n"
191 " BL sub_FF874170 \n"
192 " B loc_FF87325C \n"
193 "loc_FF873194:\n"
194 " BL sub_FF874204 \n"
195 " B loc_FF87325C \n"
196 "loc_FF87319C:\n"
197 " BL sub_FF8738BC \n"
198 " B loc_FF87325C \n"
199 "loc_FF8731A4:\n"
200 " BL sub_FF94145C \n"
201 " B loc_FF87325C \n"
202 "loc_FF8731AC:\n"
203 " BL sub_FF941670 \n"
204 " B loc_FF87325C \n"
205 "loc_FF8731B4:\n"
206 " BL sub_FF941708 \n"
207 " B loc_FF87325C \n"
208 "loc_FF8731BC:\n"
209 " BL sub_FF9417D8 \n"
210 " B loc_FF87325C \n"
211 "loc_FF8731C4:\n"
212 " MOV R0, #0 \n"
213 " BL sub_FF941A28 \n"
214 " B loc_FF87325C \n"
215 "loc_FF8731D0:\n"
216 " BL sub_FF941B78 \n"
217 " B loc_FF87325C \n"
218 "loc_FF8731D8:\n"
219 " BL sub_FF941C08 \n"
220 " B loc_FF87325C \n"
221 "loc_FF8731E0:\n"
222 " BL sub_FF941CC8 \n"
223 " B loc_FF87325C \n"
224 "loc_FF8731E8:\n"
225 " BL sub_FF873CA8 \n"
226 " B loc_FF87325C \n"
227 "loc_FF8731F0:\n"
228 " BL sub_FF873D48 \n"
229 " BL sub_FF835F18 \n"
230 " B loc_FF87325C \n"
231 "loc_FF8731FC:\n"
232 " BL sub_FF9418A4 \n"
233 " B loc_FF87325C \n"
234 "loc_FF873204:\n"
235 " BL sub_FF941910 \n"
236 " B loc_FF87325C \n"
237 "loc_FF87320C:\n"
238 " BL sub_FF8761D0 \n"
239 " B loc_FF87325C \n"
240 "loc_FF873214:\n"
241 " BL sub_FF876238 \n"
242 " B loc_FF87325C \n"
243 "loc_FF87321C:\n"
244 " BL sub_FF876294 \n"
245 " BL sub_FF876254 \n"
246 " B loc_FF87325C \n"
247 "loc_FF873228:\n"
248 " MOV R0, #1 \n"
249 " BL sub_FF942F84 \n"
250 " MOV R0, #1 \n"
251 " BL sub_FF943094 \n"
252 " LDRH R0, [R4, #0x98] \n"
253 " CMP R0, #4 \n"
254 " BNE loc_FF87325C \n"
255 " BL sub_FF876238 \n"
256 " BL sub_FF876674 \n"
257 " B loc_FF87325C \n"
258 
259 "loc_FF873250:\n"
260 " LDR R1, =0x709 \n"
261 " LDR R0, =0xFF872B14 \n"
262 " BL sub_FF81E88C \n"
263 
264 "loc_FF87325C:\n"
265 " LDR R0, [SP] \n"
266 " LDR R1, [R0, #4] \n"
267 " LDR R0, [R6] \n"
268 " BL sub_FF87C7DC \n"
269 " LDR R5, [SP] \n"
270 " LDR R0, [R5, #8] \n"
271 " CMP R0, #0 \n"
272 " LDREQ R1, =0x132 \n"
273 " LDREQ R0, =0xFF872B14 \n"
274 " BLEQ sub_FF81E88C \n"
275 " STR R7, [R5, #8] \n"
276 " B loc_FF872F98 \n"
277  );
278 }

Variablen-Dokumentation

long* nrflag = (long*)0x6718
static

Definiert in Zeile 7 der Datei capt_seq.c.