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

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define NR_AUTO   (0)

Definiert in Zeile 9 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 15 der Datei capt_seq.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R3-R7,LR} \n"
18 " LDR R7, =0x3474 \n"
19 " LDR R4, =0x3C5E4 \n"
20 " MOV R6, #0 \n"
21 
22 "loc_FF88366C:\n"
23 " LDR R0, [R7, #4] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF83AE20 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF883698 \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF8831C8 /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R7,PC} \n"
34 
35 "loc_FF883698:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1F \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF883894 \n"
41 " B loc_FF88372C \n"
42 " B loc_FF883744 \n"
43 " B loc_FF88375C \n"
44 " B loc_FF883770 \n"
45 " B loc_FF883768 \n"
46 " B loc_FF88377C \n"
47 " B loc_FF883784 \n"
48 " B loc_FF88378C \n"
49 " B loc_FF883798 \n"
50 " B loc_FF8837C0 \n"
51 " B loc_FF8837A4 \n"
52 " B loc_FF8837B0 \n"
53 " B loc_FF8837B8 \n"
54 " B loc_FF8837C8 \n"
55 " B loc_FF8837D0 \n"
56 " B loc_FF8837D8 \n"
57 " B loc_FF8837E0 \n"
58 " B loc_FF8837E8 \n"
59 " B loc_FF8837F4 \n"
60 " B loc_FF8837FC \n"
61 " B loc_FF883804 \n"
62 " B loc_FF88380C \n"
63 " B loc_FF883814 \n"
64 " B loc_FF883820 \n"
65 " B loc_FF883828 \n"
66 " B loc_FF883830 \n"
67 " B loc_FF883838 \n"
68 " B loc_FF883840 \n"
69 " B loc_FF883848 \n"
70 " B loc_FF883850 \n"
71 " B loc_FF88385C \n"
72 " B loc_FF8838A0 \n"
73 
74 "loc_FF88372C:\n"
75 " BL shooting_expo_iso_override\n" // added
76 " BL sub_FF883DB4 \n"
77 " BL shooting_expo_param_override\n" // added
78 " BL sub_FF880F50 \n"
79 " MOV R0, #0\n" // added
80 " STR R0, [R4,#0x24]\n" // added, fixes overrides behavior at short shutter press (from S95)
81 //" LDR R0, [R4, #0x24] \n" // above patch makes these three lines redundant
82 //" CMP R0, #0 \n"
83 //" BLNE _sub_FF98AE04 \n"
84 " B loc_FF8838A0 \n"
85 
86 "loc_FF883744:\n"
87 " LDRH R1, [R4] \n"
88 " SUB R12, R1, #0x8200 \n"
89 " SUBS R12, R12, #0x2E \n"
90 " LDRNE R0, [R0, #0xC] \n"
91 " BLNE sub_FF98AB98_my \n" // --> Patched. Old value = 0xFF98AB98.
92 " B loc_FF8838A0 \n"
93 
94 "loc_FF88375C:\n"
95 " MOV R0, #1 \n"
96 " BL sub_FF884070 \n"
97 " B loc_FF8838A0 \n"
98 
99 "loc_FF883768:\n"
100 " BL sub_FF883A54 \n"
101 " B loc_FF883774 \n"
102 
103 "loc_FF883770:\n"
104 " BL sub_FF883D94 \n"
105 
106 "loc_FF883774:\n"
107 " STR R6, [R4, #0x24] \n"
108 " B loc_FF8838A0 \n"
109 
110 "loc_FF88377C:\n"
111 " BL sub_FF883D9C \n"
112 " B loc_FF8838A0 \n"
113 
114 "loc_FF883784:\n"
115 " BL sub_FF883F74 \n"
116 " B loc_FF88379C \n"
117 
118 "loc_FF88378C:\n"
119 " LDR R0, [R0, #0xC] \n"
120 " BL sub_FF98AE64 \n"
121 " B loc_FF8838A0 \n"
122 
123 "loc_FF883798:\n"
124 " BL sub_FF883FE0 \n"
125 
126 "loc_FF88379C:\n"
127 " BL sub_FF880F50 \n"
128 " B loc_FF8838A0 \n"
129 
130 "loc_FF8837A4:\n"
131 " LDR R0, [R4, #0x54] \n"
132 " BL sub_FF8846DC \n"
133 " B loc_FF8838A0 \n"
134 
135 "loc_FF8837B0:\n"
136 " BL sub_FF884A78 \n"
137 " B loc_FF8838A0 \n"
138 
139 "loc_FF8837B8:\n"
140 " BL sub_FF884ADC \n"
141 " B loc_FF8838A0 \n"
142 
143 "loc_FF8837C0:\n"
144 " BL sub_FF883D94 \n"
145 " B loc_FF8838A0 \n"
146 
147 "loc_FF8837C8:\n"
148 " BL sub_FF98A1E4 \n"
149 " B loc_FF8838A0 \n"
150 
151 "loc_FF8837D0:\n"
152 " BL sub_FF98A3F0 \n"
153 " B loc_FF8838A0 \n"
154 
155 "loc_FF8837D8:\n"
156 " BL sub_FF98A494 \n"
157 " B loc_FF8838A0 \n"
158 
159 "loc_FF8837E0:\n"
160 " BL sub_FF98A564 \n"
161 " B loc_FF8838A0 \n"
162 
163 "loc_FF8837E8:\n"
164 " MOV R0, #0 \n"
165 " BL sub_FF98A7C4 \n"
166 " B loc_FF8838A0 \n"
167 
168 "loc_FF8837F4:\n"
169 " BL sub_FF98A920 \n"
170 " B loc_FF8838A0 \n"
171 
172 "loc_FF8837FC:\n"
173 " BL sub_FF98A9C4 \n"
174 " B loc_FF8838A0 \n"
175 
176 "loc_FF883804:\n"
177 " BL sub_FF98AAA4 \n"
178 " B loc_FF8838A0 \n"
179 
180 "loc_FF88380C:\n"
181 " BL sub_FF884258 \n"
182 " B loc_FF8838A0 \n"
183 
184 "loc_FF883814:\n"
185 " BL sub_FF884304 \n"
186 " BL sub_FF98BB24 \n"
187 " B loc_FF8838A0 \n"
188 
189 "loc_FF883820:\n"
190 " BL sub_FF98A630 \n"
191 " B loc_FF8838A0 \n"
192 
193 "loc_FF883828:\n"
194 " BL sub_FF98A698 \n"
195 " B loc_FF8838A0 \n"
196 
197 "loc_FF883830:\n"
198 " BL sub_FF98BBF4 \n"
199 " B loc_FF8838A0 \n"
200 
201 "loc_FF883838:\n"
202 " BL sub_FF838C50 \n"
203 " B loc_FF8838A0 \n"
204 
205 "loc_FF883840:\n"
206 " BL sub_FF886E18 \n"
207 " B loc_FF8838A0 \n"
208 
209 "loc_FF883848:\n"
210 " BL sub_FF886EA0 \n"
211 " B loc_FF8838A0 \n"
212 
213 "loc_FF883850:\n"
214 " BL sub_FF886EFC \n"
215 " BL sub_FF886EBC \n"
216 " B loc_FF8838A0 \n"
217 
218 "loc_FF88385C:\n"
219 " MOV R0, #1 \n"
220 " BL sub_FF98B660 \n"
221 " MOV R0, #1 \n"
222 " BL sub_FF98B790 \n"
223 " LDRH R0, [R4, #0x94] \n"
224 " CMP R0, #4 \n"
225 " LDRNEH R0, [R4] \n"
226 " SUBNE R12, R0, #0x8200 \n"
227 " SUBNES R12, R12, #0x2A \n"
228 " BNE loc_FF8838A0 \n"
229 " BL sub_FF886EA0 \n"
230 " BL sub_FF88740C \n"
231 " BL sub_FF88731C \n"
232 " B loc_FF8838A0 \n"
233 
234 "loc_FF883894:\n"
235 " LDR R1, =0x591 \n"
236 " LDR R0, =0xFF8831C8 /*'SsShootTask.c'*/ \n"
237 " BL _DebugAssert \n"
238 
239 "loc_FF8838A0:\n"
240 " LDR R0, [SP] \n"
241 " LDR R1, [R0, #4] \n"
242 " LDR R0, [R7] \n"
243 " BL sub_FF88DBB8 /*_SetEventFlag*/ \n"
244 " LDR R5, [SP] \n"
245 " LDR R0, [R5, #8] \n"
246 " CMP R0, #0 \n"
247 " LDREQ R1, =0x115 \n"
248 " LDREQ R0, =0xFF8831C8 /*'SsShootTask.c'*/ \n"
249 " BLEQ _DebugAssert \n"
250 " STR R6, [R5, #8] \n"
251 " B loc_FF88366C \n"
252 );
253 }