CHDK_DE Vorschauversion  Trunk Rev. 5641
 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 "stdlib.h"
#include "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define NR_AUTO   (0)
 
#define PAUSE_FOR_FILE_COUNTER   150
 

Funktionen

void __attribute__ ((naked, noinline))
 

Variablen

static long * nrflag = (long*)(0x8b64+0x00)
 

Makro-Dokumentation

#define NR_AUTO   (0)

Definiert in Zeile 8 der Datei capt_seq.c.

#define PAUSE_FOR_FILE_COUNTER   150

Definiert in Zeile 10 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-R9,LR}\n"
18  "LDR R4, =0x376CC\n"
19  "LDR R7, =0x2BA8\n"
20  "MOV R6, #0\n"
21 "loc_FF872434:\n"
22  "LDR R0, [R7, #4]\n"
23  "MOV R2, #0\n"
24  "MOV R1, SP\n"
25  "BL sub_003F7218 \n" // RAM
26  "TST R0, #1\n"
27  "BEQ loc_FF872460\n"
28  "LDR R1, =0x493\n"
29  "LDR R0, =0xFF871F90 \n" // "SsShootTask.c"
30  "BL _DebugAssert \n"
31  "BL _ExitTask \n"
32  "LDMFD SP!, {R3-R9,PC}\n"
33 "loc_FF872460:\n"
34  "LDR R0, [SP]\n"
35  "LDR R1, [R0]\n"
36  "CMP R1, #0x20\n"
37  "ADDCC PC, PC, R1, LSL #2\n"
38  "B loc_FF8726BC\n"
39  "B loc_FF8724F4\n"
40  "B loc_FF87250C\n"
41  "B loc_FF872570\n"
42  "B loc_FF872584\n"
43  "B loc_FF87257C\n"
44  "B loc_FF872590\n"
45  "B loc_FF872598\n"
46  "B loc_FF8725A0\n"
47  "B loc_FF8725BC\n"
48  "B loc_FF8725E8\n"
49  "B loc_FF8725C8\n"
50  "B loc_FF8725D4\n"
51  "B loc_FF8725DC\n"
52  "B loc_FF8725F0\n"
53  "B loc_FF8725F8\n"
54  "B loc_FF872600\n"
55  "B loc_FF872608\n"
56  "B loc_FF872610\n"
57  "B loc_FF87261C\n"
58  "B loc_FF872624\n"
59  "B loc_FF87262C\n"
60  "B loc_FF872634\n"
61  "B loc_FF87263C\n"
62  "B loc_FF872648\n"
63  "B loc_FF872650\n"
64  "B loc_FF872658\n"
65  "B loc_FF872660\n"
66  "B loc_FF872668\n"
67  "B loc_FF872674\n"
68  "B loc_FF87267C\n"
69  "B loc_FF872688\n"
70  "B loc_FF8726C8\n"
71 "loc_FF8724F4:\n"
72  "BL shooting_expo_iso_override\n" // added
73  "BL sub_FF872C3C\n"
74  "BL shooting_expo_param_override\n" // added
75  "BL sub_FF870230\n"
76 // "LDR R0, [R4, #0x28]\n"
77 // "CMP R0, #0\n"
78 // "BLNE sub_FF968DD4\n" // above 3 lines removed - redundant with added lines below
79  "MOV R0, #0\n" // patch added
80  "STR R0, [R4,#0x28]\n" //fixes overrides behavior at short shutter press
81  "B loc_FF8726C8\n"
82 "loc_FF87250C:\n"
83  "LDR R5, [R0, #0x10]\n"
84  "LDR R0, [R4, #0x28]\n"
85  "CMP R0, #0\n"
86  "BNE loc_FF872548\n"
87  "BL sub_FF873B4C\n"
88  "MOV R1, R5\n"
89  "BL sub_FF873BA4\n"
90  "LDR R0, =0x10F\n"
91  "MOV R2, #4\n"
92  "ADD R1, R5, #0x24\n"
93  "BL _SetPropertyCase \n"
94  "MOV R2, #4\n"
95  "ADD R1, R5, #0x28\n"
96  "MOV R0, #0x2C\n"
97  "BL _SetPropertyCase \n"
98 "loc_FF872548:\n"
99  "MOV R0, R5\n"
100 // "BL sub_FF968D38\n" //original
101  "BL sub_FF968D38_my \n" //patch
102  "BL capt_seq_hook_raw_here \n" // patch
103  "MOV R8, R0\n"
104  "MOV R2, R5\n"
105  "MOV R1, #1\n"
106  "BL sub_FF8706E0\n"
107  "TST R8, #1\n"
108  "MOVEQ R0, R5\n"
109  "BLEQ sub_FF9686B4\n"
110  "B loc_FF8726C8\n"
111 "loc_FF872570:\n"
112  "MOV R0, #1\n"
113  "BL sub_FF872F0C\n"
114  "B loc_FF8726C8\n"
115 "loc_FF87257C:\n"
116  "BL sub_FF872890\n"
117  "B loc_FF872588\n"
118 "loc_FF872584:\n"
119  "BL sub_FF872C1C\n"
120 "loc_FF872588:\n"
121  "STR R6, [R4, #0x28]\n"
122  "B loc_FF8726C8\n"
123 "loc_FF872590:\n"
124  "BL sub_FF872C24\n"
125  "B loc_FF8726C8\n"
126 "loc_FF872598:\n"
127  "BL sub_FF872DF4\n"
128  "B loc_FF8725C0\n"
129 "loc_FF8725A0:\n"
130  "LDR R5, [R0, #0x10]\n"
131  "MOV R0, R5\n"
132  "BL sub_FF968E6C\n"
133  "MOV R2, R5\n"
134  "MOV R1, #9\n"
135  "BL sub_FF8706E0\n"
136  "B loc_FF8726C8\n"
137 "loc_FF8725BC:\n"
138  "BL sub_FF872E74\n"
139 "loc_FF8725C0:\n"
140  "BL sub_FF870230\n"
141  "B loc_FF8726C8\n"
142 "loc_FF8725C8:\n"
143  "LDR R0, [R4, #0x58]\n"
144  "BL sub_FF8732FC\n"
145  "B loc_FF8726C8\n"
146 "loc_FF8725D4:\n"
147  "BL sub_FF8736BC\n"
148  "B loc_FF8726C8\n"
149 "loc_FF8725DC:\n"
150  "MOV R0, #0\n"
151  "BL sub_FF873720\n"
152  "B loc_FF8726C8\n"
153 "loc_FF8725E8:\n"
154  "BL sub_FF872C1C\n"
155  "B loc_FF8726C8\n"
156 "loc_FF8725F0:\n"
157  "BL sub_FF967A58\n"
158  "B loc_FF8726C8\n"
159 "loc_FF8725F8:\n"
160  "BL sub_FF967CB8\n"
161  "B loc_FF8726C8\n"
162 "loc_FF872600:\n"
163  "BL sub_FF967D70\n"
164  "B loc_FF8726C8\n"
165 "loc_FF872608:\n"
166  "BL sub_FF967E44\n"
167  "B loc_FF8726C8\n"
168 "loc_FF872610:\n"
169  "MOV R0, #0\n"
170  "BL sub_FF9680A4\n"
171  "B loc_FF8726C8\n"
172 "loc_FF87261C:\n"
173  "BL sub_FF968214\n"
174  "B loc_FF8726C8\n"
175 "loc_FF872624:\n"
176  "BL sub_FF9682A8\n"
177  "B loc_FF8726C8\n"
178 "loc_FF87262C:\n"
179  "BL sub_FF968364\n"
180  "B loc_FF8726C8\n"
181 "loc_FF872634:\n"
182  "BL sub_FF873080\n"
183  "B loc_FF8726C8\n"
184 "loc_FF87263C:\n"
185  "BL sub_FF873104\n"
186  "BL sub_FF8322CC\n"
187  "B loc_FF8726C8\n"
188 "loc_FF872648:\n"
189  "BL sub_FF967F14\n"
190  "B loc_FF8726C8\n"
191 "loc_FF872650:\n"
192  "BL sub_FF967F54\n"
193  "B loc_FF8726C8\n"
194 "loc_FF872658:\n"
195  "BL sub_FF875028\n"
196  "B loc_FF8726C8\n"
197 "loc_FF872660:\n"
198  "BL sub_FF87509C\n"
199  "B loc_FF8726C8\n"
200 "loc_FF872668:\n"
201  "LDR R0, [R0, #0xC]\n"
202  "BL sub_FF96848C\n"
203  "B loc_FF8726C8\n"
204 "loc_FF872674:\n"
205  "BL sub_FF9684FC\n"
206  "B loc_FF8726C8\n"
207 "loc_FF87267C:\n"
208  "BL sub_FF875104\n"
209  "BL sub_FF8750BC\n"
210  "B loc_FF8726C8\n"
211 "loc_FF872688:\n"
212  "MOV R0, #1\n"
213  "BL sub_FF96956C\n"
214  "MOV R0, #1\n"
215  "BL sub_FF969694\n"
216  "LDRH R0, [R4, #0x9C]\n"
217  "CMP R0, #4\n"
218  "LDRNEH R0, [R4]\n"
219  "SUBNE R1, R0, #0x8200\n"
220  "SUBNES R1, R1, #0x2E\n"
221  "BNE loc_FF8726C8\n"
222  "BL sub_FF87509C\n"
223  "BL sub_FF875560\n"
224  "B loc_FF8726C8\n"
225 "loc_FF8726BC:\n"
226  "LDR R1, =0x5F4\n"
227  "LDR R0, =0xFF871F90 \n" // "SsShootTask.c"
228  "BL _DebugAssert \n"
229 "loc_FF8726C8:\n"
230  "LDR R0, [SP]\n"
231  "LDR R1, [R0, #4]\n"
232  "LDR R0, [R7]\n"
233  "BL sub_003FAC6C\n"
234  "LDR R5, [SP]\n"
235  "LDR R0, [R5, #8]\n"
236  "CMP R0, #0\n"
237  "LDREQ R1, =0x117\n"
238  "LDREQ R0, =0xFF871F90 \n" // "SsShootTask.c"
239  "BLEQ _DebugAssert \n"
240  "STR R6, [R5, #8]\n"
241  "B loc_FF872434\n"
242  );
243 }

Variablen-Dokumentation

long* nrflag = (long*)(0x8b64+0x00)
static

Definiert in Zeile 7 der Datei capt_seq.c.