CHDK_DE Vorschauversion  Trunk Rev. 5659
 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-R7,LR} \n"
17 " LDR R6, =0x52F8 \n"
18 
19 "loc_FFC48DC8:\n"
20 " LDR R0, [R6, #8] \n"
21 " MOV R2, #0 \n"
22 " MOV R1, SP \n"
23 " BL sub_FFC1763C /*_ReceiveMessageQueue*/ \n"
24 " TST R0, #1 \n"
25 " BEQ loc_FFC48DF4 \n"
26 " LDR R1, =0x48E \n"
27 " LDR R0, =0xFFC48AE8 /*'SsShootTask.c'*/ \n"
28 " BL _DebugAssert \n"
29 " BL _ExitTask \n"
30 " LDMFD SP!, {R3-R7,PC} \n"
31 
32 "loc_FFC48DF4:\n"
33 " LDR R0, [SP] \n"
34 " LDR R1, [R0] \n"
35 " CMP R1, #0x19 \n"
36 " ADDLS PC, PC, R1, LSL#2 \n"
37 " B loc_FFC49008 \n"
38 " B loc_FFC48E70 \n"
39 " B loc_FFC48E78 \n"
40 " B loc_FFC48EF8 \n"
41 " B loc_FFC48F0C \n"
42 " B loc_FFC48F04 \n"
43 " B loc_FFC48F14 \n"
44 " B loc_FFC48F1C \n"
45 " B loc_FFC48F28 \n"
46 " B loc_FFC48F80 \n"
47 " B loc_FFC48F0C \n"
48 " B loc_FFC48F88 \n"
49 " B loc_FFC48F90 \n"
50 " B loc_FFC48F98 \n"
51 " B loc_FFC48FA0 \n"
52 " B loc_FFC48FA8 \n"
53 " B loc_FFC48FB4 \n"
54 " B loc_FFC48FBC \n"
55 " B loc_FFC48FC4 \n"
56 " B loc_FFC48FCC \n"
57 " B loc_FFC48FD8 \n"
58 " B loc_FFC48FE0 \n"
59 " B loc_FFC48FE8 \n"
60 " B loc_FFC48FF0 \n"
61 " B loc_FFC48FF8 \n"
62 " B loc_FFC49000 \n"
63 " B loc_FFC49014 \n"
64 
65 "loc_FFC48E70:\n"
66 " BL sub_FFD0C090 \n"
67 " BL shooting_expo_param_override\n" // added
68 " B loc_FFC48F20 \n"
69 
70 "loc_FFC48E78:\n"
71 " LDR R4, [R0, #0xC] \n"
72 " LDR R0, [R4, #8] \n"
73 " ORR R0, R0, #1 \n"
74 " STR R0, [R4, #8] \n"
75 " BL sub_FFD0C080 \n"
76 " MOV R0, R4 \n"
77 " BL sub_FFD0C468 \n"
78 " TST R0, #1 \n"
79 " MOVNE R2, R4 \n"
80 " MOVNE R1, #1 \n"
81 " BNE loc_FFC48F78 \n"
82 " BL sub_FFD2AC44 \n"
83 " BL sub_FFC575B4 \n"
84 " STR R0, [R4, #0x14] \n"
85 " MOV R0, R4 \n"
86 " BL sub_FFD0D460 \n"
87 " BL sub_FFD0DEC4 \n"
88 " MOV R0, R4 \n"
89 " BL sub_FFD0D528_my \n" // --> Patched. Old value = 0xFFD0D528.
90 " BL capt_seq_hook_raw_here \n" // added
91 " MOV R5, R0 \n"
92 " BL sub_FFD0EEA4 \n"
93 " BL sub_FFD0EEE0 \n"
94 " MOV R2, R4 \n"
95 " MOV R1, #1 \n"
96 " MOV R0, R5 \n"
97 " BL sub_FFC4759C \n"
98 " BL sub_FFD0D8D8 \n"
99 " CMP R0, #0 \n"
100 " LDRNE R0, [R4, #8] \n"
101 " ORRNE R0, R0, #0x2000 \n"
102 " STRNE R0, [R4, #8] \n"
103 " B loc_FFC49014 \n"
104 
105 "loc_FFC48EF8:\n"
106 " MOV R0, #1 \n"
107 " BL sub_FFD0C224 \n"
108 " B loc_FFC49014 \n"
109 
110 "loc_FFC48F04:\n"
111 " BL sub_FFD0BCF0 \n"
112 " B loc_FFC49014 \n"
113 
114 "loc_FFC48F0C:\n"
115 " BL sub_FFD0C070 \n"
116 " B loc_FFC49014 \n"
117 
118 "loc_FFC48F14:\n"
119 " BL sub_FFD0C078 \n"
120 " B loc_FFC49014 \n"
121 
122 "loc_FFC48F1C:\n"
123 " BL sub_FFD0C144 \n"
124 
125 "loc_FFC48F20:\n"
126 " BL sub_FFC4721C \n"
127 " B loc_FFC49014 \n"
128 
129 "loc_FFC48F28:\n"
130 " LDR R4, [R0, #0xC] \n"
131 " BL sub_FFD0C080 \n"
132 " MOV R0, R4 \n"
133 " BL sub_FFD0C7E8 \n"
134 " TST R0, #1 \n"
135 " MOV R5, R0 \n"
136 " BNE loc_FFC48F68 \n"
137 " BL sub_FFC575B4 \n"
138 " STR R0, [R4, #0x14] \n"
139 " MOV R0, R4 \n"
140 " BL sub_FFD0D460 \n"
141 " MOV R0, R4 \n"
142 " BL sub_FFD0D938 \n"
143 " MOV R5, R0 \n"
144 " LDR R0, [R4, #0x14] \n"
145 " BL sub_FFC577C0 \n"
146 
147 "loc_FFC48F68:\n"
148 " BL sub_FFD0C070 \n"
149 " MOV R2, R4 \n"
150 " MOV R1, #9 \n"
151 " MOV R0, R5 \n"
152 
153 "loc_FFC48F78:\n"
154 " BL sub_FFC4759C \n"
155 " B loc_FFC49014 \n"
156 
157 "loc_FFC48F80:\n"
158 " BL sub_FFD0C1A4 \n"
159 " B loc_FFC48F20 \n"
160 
161 "loc_FFC48F88:\n"
162 " BL sub_FFD0CA64 \n"
163 " B loc_FFC49014 \n"
164 
165 "loc_FFC48F90:\n"
166 " BL sub_FFD0CC4C \n"
167 " B loc_FFC49014 \n"
168 
169 "loc_FFC48F98:\n"
170 " BL sub_FFD0CCDC \n"
171 " B loc_FFC49014 \n"
172 
173 "loc_FFC48FA0:\n"
174 " BL sub_FFD0CD90 \n"
175 " B loc_FFC49014 \n"
176 
177 "loc_FFC48FA8:\n"
178 " MOV R0, #0 \n"
179 " BL sub_FFD0CF34 \n"
180 " B loc_FFC49014 \n"
181 
182 "loc_FFC48FB4:\n"
183 " BL sub_FFD0D084 \n"
184 " B loc_FFC49014 \n"
185 
186 "loc_FFC48FBC:\n"
187 " BL sub_FFD0D118 \n"
188 " B loc_FFC49014 \n"
189 
190 "loc_FFC48FC4:\n"
191 " BL sub_FFD0D1E0 \n"
192 " B loc_FFC49014 \n"
193 
194 "loc_FFC48FCC:\n"
195 " BL sub_FFD0C340 \n"
196 " BL sub_FFC149A0 \n"
197 " B loc_FFC49014 \n"
198 
199 "loc_FFC48FD8:\n"
200 " BL sub_FFD0CE4C \n"
201 " B loc_FFC49014 \n"
202 
203 "loc_FFC48FE0:\n"
204 " BL sub_FFD0CE90 \n"
205 " B loc_FFC49014 \n"
206 
207 "loc_FFC48FE8:\n"
208 " BL sub_FFD0EE88 \n"
209 " B loc_FFC49014 \n"
210 
211 "loc_FFC48FF0:\n"
212 " BL sub_FFD0EEA4 \n"
213 " B loc_FFC49014 \n"
214 
215 "loc_FFC48FF8:\n"
216 " BL sub_FFD0EEB4 \n"
217 " B loc_FFC49014 \n"
218 
219 "loc_FFC49000:\n"
220 " BL sub_FFD0EEE0 \n"
221 " B loc_FFC49014 \n"
222 
223 "loc_FFC49008:\n"
224 " LDR R1, =0x58E \n"
225 " LDR R0, =0xFFC48AE8 /*'SsShootTask.c'*/ \n"
226 " BL _DebugAssert \n"
227 
228 "loc_FFC49014:\n"
229 " LDR R0, [SP] \n"
230 " LDR R1, [R0, #4] \n"
231 " LDR R0, [R6, #4] \n"
232 " BL sub_FFC173B8 /*_SetEventFlag*/ \n"
233 " LDR R4, [SP] \n"
234 " LDR R0, [R4, #8] \n"
235 " CMP R0, #0 \n"
236 " LDREQ R1, =0x10D \n"
237 " LDREQ R0, =0xFFC48AE8 /*'SsShootTask.c'*/ \n"
238 " BLEQ _DebugAssert \n"
239 " MOV R0, #0 \n"
240 " STR R0, [R4, #8] \n"
241 " B loc_FFC48DC8 \n"
242 );
243 }