CHDK_DE Vorschauversion  Trunk Rev. 5428
 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 13 der Datei capt_seq.c.

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

Variablen-Dokumentation

long* nrflag = (long*)0x6718
static

Definiert in Zeile 6 der Datei capt_seq.c.