CHDK_DE Vorschauversion  Trunk Rev. 5429
 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, =0x3A29C \n"
20 " LDR R7, =0x2B90 \n"
21 " MOV R6, #0 \n"
22 
23 "loc_FF87AB50:\n"
24 " LDR R0, [R7, #4] \n"
25 " MOV R2, #0 \n"
26 " MOV R1, SP \n"
27 " BL sub_FF839BD8 /*_ReceiveMessageQueue*/ \n"
28 " TST R0, #1 \n"
29 " BEQ loc_FF87AB7C \n"
30 " LDR R1, =0x476 \n"
31 " LDR R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
32 " BL _DebugAssert \n"
33 " BL _ExitTask \n"
34 " LDMFD SP!, {R3-R9,PC} \n"
35 
36 "loc_FF87AB7C:\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_FF87AD9C \n"
42 " B loc_FF87AC10 \n"
43 " B loc_FF87AC28 \n"
44 " B loc_FF87AC54 \n"
45 " B loc_FF87AC68 \n"
46 " B loc_FF87AC60 \n"
47 " B loc_FF87AC74 \n"
48 " B loc_FF87AC7C \n"
49 " B loc_FF87AC84 \n"
50 " B loc_FF87ACA0 \n"
51 " B loc_FF87ACC8 \n"
52 " B loc_FF87ACAC \n"
53 " B loc_FF87ACB8 \n"
54 " B loc_FF87ACC0 \n"
55 " B loc_FF87ACD0 \n"
56 " B loc_FF87ACD8 \n"
57 " B loc_FF87ACE0 \n"
58 " B loc_FF87ACE8 \n"
59 " B loc_FF87ACF0 \n"
60 " B loc_FF87ACFC \n"
61 " B loc_FF87AD04 \n"
62 " B loc_FF87AD0C \n"
63 " B loc_FF87AD14 \n"
64 " B loc_FF87AD1C \n"
65 " B loc_FF87AD28 \n"
66 " B loc_FF87AD30 \n"
67 " B loc_FF87AD38 \n"
68 " B loc_FF87AD40 \n"
69 " B loc_FF87AD48 \n"
70 " B loc_FF87AD50 \n"
71 " B loc_FF87AD58 \n"
72 " B loc_FF87AD64 \n"
73 " B loc_FF87ADA8 \n"
74 
75 "loc_FF87AC10:\n"
76 " BL shooting_expo_iso_override\n" // added
77 " BL sub_FF87B320 \n"
78 " BL shooting_expo_param_override\n" // added
79 " BL sub_FF87876C \n"
80 " LDR R0, [R5, #0x28] \n"
81 " CMP R0, #0 \n"
82 " BLNE sub_FF96F034 \n"
83 " B loc_FF87ADA8 \n"
84 
85 "loc_FF87AC28:\n"
86 " LDR R8, [R0, #0xC] \n"
87 " MOV R0, R8 \n"
88 " BL sub_FF96EF54_my \n" // --> Patched. Old value = 0xFF96EF54.
89 " BL capt_seq_hook_raw_here \n" // added
90 " MOV R4, R0 \n"
91 " MOV R2, R8 \n"
92 " MOV R1, #1 \n"
93 " BL sub_FF878D60 \n"
94 " TST R4, #1 \n"
95 " MOVEQ R0, R8 \n"
96 " BLEQ sub_FF96E9F4 \n"
97 " B loc_FF87ADA8 \n"
98 
99 "loc_FF87AC54:\n"
100 " MOV R0, #1 \n"
101 " BL sub_FF87B5C0 \n"
102 " B loc_FF87ADA8 \n"
103 
104 "loc_FF87AC60:\n"
105 " BL sub_FF87AFB4 \n"
106 " B loc_FF87AC6C \n"
107 
108 "loc_FF87AC68:\n"
109 " BL sub_FF87B300 \n"
110 
111 "loc_FF87AC6C:\n"
112 " STR R6, [R5, #0x28] \n"
113 " B loc_FF87ADA8 \n"
114 
115 "loc_FF87AC74:\n"
116 " BL sub_FF87B308 \n"
117 " B loc_FF87ADA8 \n"
118 
119 "loc_FF87AC7C:\n"
120 " BL sub_FF87B4D4 \n"
121 " B loc_FF87ACA4 \n"
122 
123 "loc_FF87AC84:\n"
124 " LDR R4, [R0, #0xC] \n"
125 " MOV R0, R4 \n"
126 " BL sub_FF96F088 \n"
127 " MOV R2, R4 \n"
128 " MOV R1, #9 \n"
129 " BL sub_FF878D60 \n"
130 " B loc_FF87ADA8 \n"
131 
132 "loc_FF87ACA0:\n"
133 " BL sub_FF87B538 \n"
134 
135 "loc_FF87ACA4:\n"
136 " BL sub_FF87876C \n"
137 " B loc_FF87ADA8 \n"
138 
139 "loc_FF87ACAC:\n"
140 " LDR R0, [R5, #0x58] \n"
141 " BL sub_FF87BA04 \n"
142 " B loc_FF87ADA8 \n"
143 
144 "loc_FF87ACB8:\n"
145 " BL sub_FF87BD7C \n"
146 " B loc_FF87ADA8 \n"
147 
148 "loc_FF87ACC0:\n"
149 " BL sub_FF87BDE0 \n"
150 " B loc_FF87ADA8 \n"
151 
152 "loc_FF87ACC8:\n"
153 " BL sub_FF87B300 \n"
154 " B loc_FF87ADA8 \n"
155 
156 "loc_FF87ACD0:\n"
157 " BL sub_FF96DDFC \n"
158 " B loc_FF87ADA8 \n"
159 
160 "loc_FF87ACD8:\n"
161 " BL sub_FF96E008 \n"
162 " B loc_FF87ADA8 \n"
163 
164 "loc_FF87ACE0:\n"
165 " BL sub_FF96E0AC \n"
166 " B loc_FF87ADA8 \n"
167 
168 "loc_FF87ACE8:\n"
169 " BL sub_FF96E17C \n"
170 " B loc_FF87ADA8 \n"
171 
172 "loc_FF87ACF0:\n"
173 " MOV R0, #0 \n"
174 " BL sub_FF96E384 \n"
175 " B loc_FF87ADA8 \n"
176 
177 "loc_FF87ACFC:\n"
178 " BL sub_FF96E4FC \n"
179 " B loc_FF87ADA8 \n"
180 
181 "loc_FF87AD04:\n"
182 " BL sub_FF96E5A0 \n"
183 " B loc_FF87ADA8 \n"
184 
185 "loc_FF87AD0C:\n"
186 " BL sub_FF96E680 \n"
187 " B loc_FF87ADA8 \n"
188 
189 "loc_FF87AD14:\n"
190 " BL sub_FF87B72C \n"
191 " B loc_FF87ADA8 \n"
192 
193 "loc_FF87AD1C:\n"
194 " BL sub_FF87B758 \n"
195 " BL sub_FF837AA8 \n"
196 " B loc_FF87ADA8 \n"
197 
198 "loc_FF87AD28:\n"
199 " BL sub_FF96E240 \n"
200 " B loc_FF87ADA8 \n"
201 
202 "loc_FF87AD30:\n"
203 " BL sub_FF96E280 \n"
204 " B loc_FF87ADA8 \n"
205 
206 "loc_FF87AD38:\n"
207 " BL sub_FF87E0E8 \n"
208 " B loc_FF87ADA8 \n"
209 
210 "loc_FF87AD40:\n"
211 " BL sub_FF87E158 \n"
212 " B loc_FF87ADA8 \n"
213 
214 "loc_FF87AD48:\n"
215 " BL sub_FF96E7B8 \n"
216 " B loc_FF87ADA8 \n"
217 
218 "loc_FF87AD50:\n"
219 " BL sub_FF96E81C \n"
220 " B loc_FF87ADA8 \n"
221 
222 "loc_FF87AD58:\n"
223 " BL sub_FF87E1B4 \n"
224 " BL sub_FF87E174 \n"
225 " B loc_FF87ADA8 \n"
226 
227 "loc_FF87AD64:\n"
228 " MOV R0, #1 \n"
229 " BL sub_FF96F800 \n"
230 " MOV R0, #1 \n"
231 " BL sub_FF96F928 \n"
232 " LDRH R0, [R5, #0x98] \n"
233 " CMP R0, #4 \n"
234 " LDRNEH R0, [R5] \n"
235 " SUBNE R1, R0, #0x4200 \n"
236 " SUBNES R1, R1, #0x2A \n"
237 " BNE loc_FF87ADA8 \n"
238 " BL sub_FF87E158 \n"
239 " BL sub_FF87E758 \n"
240 " BL sub_FF87E5D8 \n"
241 " B loc_FF87ADA8 \n"
242 
243 "loc_FF87AD9C:\n"
244 " LDR R1, =0x5D7 \n"
245 " LDR R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
246 " BL _DebugAssert \n"
247 
248 "loc_FF87ADA8:\n"
249 " LDR R0, [SP] \n"
250 " LDR R1, [R0, #4] \n"
251 " LDR R0, [R7] \n"
252 " BL sub_FF884D84 /*_SetEventFlag*/ \n"
253 " LDR R4, [SP] \n"
254 " LDR R0, [R4, #8] \n"
255 " CMP R0, #0 \n"
256 " LDREQ R0, =0xFF87A6E0 /*'SsShootTask.c'*/ \n"
257 " MOVEQ R1, #0x118 \n"
258 " BLEQ _DebugAssert \n"
259 " STR R6, [R4, #8] \n"
260 " B loc_FF87AB50 \n"
261 );
262 }