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

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define USE_STUBS_NRFLAG   1

Definiert in Zeile 8 der Datei capt_seq.c.

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, =0x1E454 \n"
18 " LDR R5, =0x583C \n"
19 " MOV R9, #1 \n"
20 " MOV R7, #0 \n"
21 
22 "loc_FF861224:\n"
23 " LDR R0, [R5, #0x14] \n"
24 " MOV R2, #0 \n"
25 " MOV R1, SP \n"
26 " BL sub_FF829FB0 /*_ReceiveMessageQueue*/ \n"
27 " TST R0, #1 \n"
28 " BEQ loc_FF861250 \n"
29 " LDR R1, =0x43F \n"
30 " LDR R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
31 " BL _DebugAssert \n"
32 " BL _ExitTask \n"
33 " LDMFD SP!, {R3-R9,PC} \n"
34 
35 "loc_FF861250:\n"
36 " LDR R0, [SP] \n"
37 " LDR R1, [R0] \n"
38 " CMP R1, #0x1C \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF8614AC \n"
41 " B loc_FF8612D8 \n"
42 " B loc_FF861348 \n"
43 " B loc_FF861350 \n"
44 " B loc_FF861368 \n"
45 " B loc_FF86135C \n"
46 " B loc_FF861370 \n"
47 " B loc_FF861378 \n"
48 " B loc_FF861380 \n"
49 " B loc_FF8613D8 \n"
50 " B loc_FF8613E4 \n"
51 " B loc_FF8613EC \n"
52 " B loc_FF8613F4 \n"
53 " B loc_FF8613FC \n"
54 " B loc_FF861404 \n"
55 " B loc_FF86140C \n"
56 " B loc_FF861414 \n"
57 " B loc_FF86141C \n"
58 " B loc_FF861424 \n"
59 " B loc_FF86142C \n"
60 " B loc_FF861434 \n"
61 " B loc_FF86143C \n"
62 " B loc_FF861444 \n"
63 " B loc_FF861450 \n"
64 " B loc_FF86145C \n"
65 " B loc_FF861464 \n"
66 " B loc_FF861494 \n"
67 " B loc_FF86149C \n"
68 " B loc_FF8614A4 \n"
69 " B loc_FF8614B8 \n"
70 
71 "loc_FF8612D8:\n"
72 " BL sub_FF942490 \n"
73 " BL shooting_expo_param_override\n" // added
74 " BL sub_FF85F050 \n"
75 " LDR R0, [R6, #0x24] \n"
76 " CMP R0, #0 \n"
77 " BEQ loc_FF8614B8 \n"
78 " BL sub_FF860938 \n"
79 " MOV R4, R0 \n"
80 " LDR R0, [R6, #0x24] \n"
81 " CMP R0, #0 \n"
82 " BEQ loc_FF861320 \n"
83 " MOV R0, #0xC \n"
84 " BL sub_FF86499C \n"
85 " TST R0, #1 \n"
86 " STRNE R9, [R5, #4] \n"
87 " LDRNE R0, [R4, #8] \n"
88 " ORRNE R0, R0, #0x40000000 \n"
89 " STRNE R0, [R4, #8] \n"
90 " BNE loc_FF8614B8 \n"
91 
92 "loc_FF861320:\n"
93 " MOV R0, R4 \n"
94 " BL sub_FF943F2C \n"
95 " BL sub_FF957CD8 \n"
96 " BL sub_FF86F8F8 \n"
97 " STR R0, [R4, #0x14] \n"
98 " MOV R0, R4 \n"
99 " BL sub_FF944484_my \n" // --> Patched. Old value = 0xFF944484.
100 " BL capt_seq_hook_raw_here \n" // added
101 " TST R0, #1 \n"
102 " STRNE R9, [R5, #4] \n"
103 " B loc_FF8614B8 \n"
104 
105 "loc_FF861348:\n"
106 " BL sub_FF860CEC_my \n" // --> Patched. Old value = 0xFF860CEC.
107 " B loc_FF861360 \n"
108 
109 "loc_FF861350:\n"
110 " MOV R0, #1 \n"
111 " BL sub_FF942690 \n"
112 " B loc_FF8614B8 \n"
113 
114 "loc_FF86135C:\n"
115 " BL sub_FF94218C \n"
116 
117 "loc_FF861360:\n"
118 " STR R7, [R6, #0x24] \n"
119 " B loc_FF8614B8 \n"
120 
121 "loc_FF861368:\n"
122 " BL sub_FF942424 \n"
123 " B loc_FF861360 \n"
124 
125 "loc_FF861370:\n"
126 " BL sub_FF94242C \n"
127 " B loc_FF8614B8 \n"
128 
129 "loc_FF861378:\n"
130 " BL sub_FF942580 \n"
131 " B loc_FF8613DC \n"
132 
133 "loc_FF861380:\n"
134 " LDR R4, [R0, #0xC] \n"
135 " BL sub_FF942434 \n"
136 " MOV R0, R4 \n"
137 " BL sub_FF942FC4 \n"
138 " TST R0, #1 \n"
139 " MOV R8, R0 \n"
140 " BNE loc_FF8613C0 \n"
141 " BL sub_FF86F8F8 \n"
142 " STR R0, [R4, #0x14] \n"
143 " MOV R0, R4 \n"
144 " BL sub_FF94439C \n"
145 " MOV R0, R4 \n"
146 " BL sub_FF944990 \n"
147 " MOV R8, R0 \n"
148 " LDR R0, [R4, #0x14] \n"
149 " BL sub_FF86FB0C \n"
150 
151 "loc_FF8613C0:\n"
152 " BL sub_FF942424 \n"
153 " MOV R2, R4 \n"
154 " MOV R1, #8 \n"
155 " MOV R0, R8 \n"
156 " BL sub_FF85F620 \n"
157 " B loc_FF8614B8 \n"
158 
159 "loc_FF8613D8:\n"
160 " BL sub_FF94260C \n"
161 
162 "loc_FF8613DC:\n"
163 " BL sub_FF85F050 \n"
164 " B loc_FF8614B8 \n"
165 
166 "loc_FF8613E4:\n"
167 " BL sub_FF942424 \n"
168 " B loc_FF8614B8 \n"
169 
170 "loc_FF8613EC:\n"
171 " BL sub_FF94323C \n"
172 " B loc_FF8614B8 \n"
173 
174 "loc_FF8613F4:\n"
175 " BL sub_FF943438 \n"
176 " B loc_FF8614B8 \n"
177 
178 "loc_FF8613FC:\n"
179 " BL sub_FF9434CC \n"
180 " B loc_FF8614B8 \n"
181 
182 "loc_FF861404:\n"
183 " BL sub_FF9435F4 \n"
184 " B loc_FF8614B8 \n"
185 
186 "loc_FF86140C:\n"
187 " BL sub_FF9436A8 \n"
188 " B loc_FF8614B8 \n"
189 
190 "loc_FF861414:\n"
191 " BL sub_FF943A7C \n"
192 " B loc_FF8614B8 \n"
193 
194 "loc_FF86141C:\n"
195 " BL sub_FF943ACC \n"
196 " B loc_FF8614B8 \n"
197 
198 "loc_FF861424:\n"
199 " MOV R0, #0 \n"
200 " B loc_FF861448 \n"
201 
202 "loc_FF86142C:\n"
203 " BL sub_FF943C70 \n"
204 " B loc_FF8614B8 \n"
205 
206 "loc_FF861434:\n"
207 " BL sub_FF943D04 \n"
208 " B loc_FF8614B8 \n"
209 
210 "loc_FF86143C:\n"
211 " BL sub_FF943DC4 \n"
212 " B loc_FF8614B8 \n"
213 
214 "loc_FF861444:\n"
215 " MOV R0, #1 \n"
216 
217 "loc_FF861448:\n"
218 " BL sub_FF943B30 \n"
219 " B loc_FF8614B8 \n"
220 
221 "loc_FF861450:\n"
222 " BL sub_FF94282C \n"
223 " BL sub_FF8615D0 \n"
224 " B loc_FF8614B8 \n"
225 
226 "loc_FF86145C:\n"
227 " BL sub_FF943920 \n"
228 " B loc_FF8614B8 \n"
229 
230 "loc_FF861464:\n"
231 " MOV R2, #2 \n"
232 " ADD R1, R6, #0x58 \n"
233 " MOV R0, #0x6F \n"
234 " BL _GetPropertyCase \n"
235 " TST R0, #1 \n"
236 " LDRNE R1, =0x502 \n"
237 " LDRNE R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
238 " BLNE _DebugAssert \n"
239 " LDRH R0, [R6, #0x58] \n"
240 " CMP R0, #1 \n"
241 " BLEQ sub_FF943914 \n"
242 " B loc_FF8614B8 \n"
243 
244 "loc_FF861494:\n"
245 " BL sub_FF9439E4 \n"
246 " B loc_FF8614B8 \n"
247 
248 "loc_FF86149C:\n"
249 " BL sub_FF860BD0 \n"
250 " B loc_FF8614B8 \n"
251 
252 "loc_FF8614A4:\n"
253 " BL sub_FF826210 \n"
254 " B loc_FF8614B8 \n"
255 
256 "loc_FF8614AC:\n"
257 " LDR R1, =0x523 \n"
258 " LDR R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
259 " BL _DebugAssert \n"
260 
261 "loc_FF8614B8:\n"
262 " LDR R0, [SP] \n"
263 " LDR R1, [R0, #4] \n"
264 " LDR R0, [R5, #0x10] \n"
265 " BL sub_FF829D2C /*_SetEventFlag*/ \n"
266 " LDR R4, [SP] \n"
267 " LDR R0, [R4, #8] \n"
268 " CMP R0, #0 \n"
269 " LDREQ R0, =0xFF860C6C /*'SsShootTask.c'*/ \n"
270 " MOVEQ R1, #0xFC \n"
271 " BLEQ _DebugAssert \n"
272 " STR R7, [R4, #8] \n"
273 " B loc_FF861224 \n"
274 );
275 }