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 "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   250
 

Funktionen

void __attribute__ ((naked, noinline))
 

Variablen

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

Makro-Dokumentation

#define NR_AUTO   (0)

Definiert in Zeile 8 der Datei capt_seq.c.

#define PAUSE_FOR_FILE_COUNTER   250

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, =0x36F6C\n"
19  "LDR R7, =0x2B68\n"
20  "MOV R6, #0\n"
21 "loc_FF8712EC:\n"
22  "LDR R0, [R7, #4]\n"
23  "MOV R2, #0\n"
24  "MOV R1, SP\n"
25  "BL sub_003F7218\n"
26  "TST R0, #1\n"
27  "BEQ loc_FF871318\n"
28  "LDR R1, =0x493\n"
29  "LDR R0, =0xFF870E48\n" // "SsShootTask.c"
30  "BL _DebugAssert \n"
31  "BL _ExitTask \n"
32  "LDMFD SP!, {R3-R9,PC}\n"
33 "loc_FF871318:\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_FF871574\n"
39  "B loc_FF8713AC\n"
40  "B loc_FF8713C4\n"
41  "B loc_FF871428\n"
42  "B loc_FF87143C\n"
43  "B loc_FF871434\n"
44  "B loc_FF871448\n"
45  "B loc_FF871450\n"
46  "B loc_FF871458\n"
47  "B loc_FF871474\n"
48  "B loc_FF8714A0\n"
49  "B loc_FF871480\n"
50  "B loc_FF87148C\n"
51  "B loc_FF871494\n"
52  "B loc_FF8714A8\n"
53  "B loc_FF8714B0\n"
54  "B loc_FF8714B8\n"
55  "B loc_FF8714C0\n"
56  "B loc_FF8714C8\n"
57  "B loc_FF8714D4\n"
58  "B loc_FF8714DC\n"
59  "B loc_FF8714E4\n"
60  "B loc_FF8714EC\n"
61  "B loc_FF8714F4\n"
62  "B loc_FF871500\n"
63  "B loc_FF871508\n"
64  "B loc_FF871510\n"
65  "B loc_FF871518\n"
66  "B loc_FF871520\n"
67  "B loc_FF87152C\n"
68  "B loc_FF871534\n"
69  "B loc_FF871540\n"
70  "B loc_FF871580\n"
71 "loc_FF8713AC:\n"
72  "BL shooting_expo_iso_override\n" // added
73  "BL sub_FF871AF4\n"
74  "BL shooting_expo_param_override\n" // added
75  "BL sub_FF86F0E8\n"
76 // "LDR R0, [R4, #0x28]\n"
77 // "CMP R0, #0\n"
78 // "BLNE sub_FF965294\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_FF871580\n"
82 "loc_FF8713C4:\n"
83  "LDR R5, [R0, #0x10]\n"
84  "LDR R0, [R4, #0x28]\n"
85  "CMP R0, #0\n"
86  "BNE loc_FF871400\n"
87  "BL sub_FF872A04\n"
88  "MOV R1, R5\n"
89  "BL sub_FF872A5C\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_FF871400:\n"
99  "MOV R0, R5\n"
100 // "BL sub_FF9651F8\n" //original
101  "BL sub_FF9651F8_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_FF86F598\n"
107  "TST R8, #1\n"
108  "MOVEQ R0, R5\n"
109  "BLEQ sub_FF964B74\n"
110  "B loc_FF871580\n"
111 "loc_FF871428:\n"
112  "MOV R0, #1\n"
113  "BL sub_FF871DC4\n"
114  "B loc_FF871580\n"
115 "loc_FF871434:\n"
116  "BL sub_FF871748\n"
117  "B loc_FF871440\n"
118 "loc_FF87143C:\n"
119  "BL sub_FF871AD4\n"
120 "loc_FF871440:\n"
121  "STR R6, [R4, #0x28]\n"
122  "B loc_FF871580\n"
123 "loc_FF871448:\n"
124  "BL sub_FF871ADC\n"
125  "B loc_FF871580\n"
126 "loc_FF871450:\n"
127  "BL sub_FF871CAC\n"
128  "B loc_FF871478\n"
129 "loc_FF871458:\n"
130  "LDR R5, [R0, #0x10]\n"
131  "MOV R0, R5\n"
132  "BL sub_FF96532C\n"
133  "MOV R2, R5\n"
134  "MOV R1, #9\n"
135  "BL sub_FF86F598\n"
136  "B loc_FF871580\n"
137 "loc_FF871474:\n"
138  "BL sub_FF871D2C\n"
139 "loc_FF871478:\n"
140  "BL sub_FF86F0E8\n"
141  "B loc_FF871580\n"
142 "loc_FF871480:\n"
143  "LDR R0, [R4, #0x58]\n"
144  "BL sub_FF8721B4\n"
145  "B loc_FF871580\n"
146 "loc_FF87148C:\n"
147  "BL sub_FF872574\n"
148  "B loc_FF871580\n"
149 "loc_FF871494:\n"
150  "MOV R0, #0\n"
151  "BL sub_FF8725D8\n"
152  "B loc_FF871580\n"
153 "loc_FF8714A0:\n"
154  "BL sub_FF871AD4\n"
155  "B loc_FF871580\n"
156 "loc_FF8714A8:\n"
157  "BL sub_FF963F20\n"
158  "B loc_FF871580\n"
159 "loc_FF8714B0:\n"
160  "BL sub_FF964180\n"
161  "B loc_FF871580\n"
162 "loc_FF8714B8:\n"
163  "BL sub_FF964238\n"
164  "B loc_FF871580\n"
165 "loc_FF8714C0:\n"
166  "BL sub_FF96430C\n"
167  "B loc_FF871580\n"
168 "loc_FF8714C8:\n"
169  "MOV R0, #0\n"
170  "BL sub_FF96456C\n"
171  "B loc_FF871580\n"
172 "loc_FF8714D4:\n"
173  "BL sub_FF9646DC\n"
174  "B loc_FF871580\n"
175 "loc_FF8714DC:\n"
176  "BL sub_FF964770\n"
177  "B loc_FF871580\n"
178 "loc_FF8714E4:\n"
179  "BL sub_FF96482C\n"
180  "B loc_FF871580\n"
181 "loc_FF8714EC:\n"
182  "BL sub_FF871F38\n"
183  "B loc_FF871580\n"
184 "loc_FF8714F4:\n"
185  "BL sub_FF871FBC\n"
186  "BL sub_FF8322AC\n"
187  "B loc_FF871580\n"
188 "loc_FF871500:\n"
189  "BL sub_FF9643DC\n"
190  "B loc_FF871580\n"
191 "loc_FF871508:\n"
192  "BL sub_FF96441C\n"
193  "B loc_FF871580\n"
194 "loc_FF871510:\n"
195  "BL sub_FF873EE0\n"
196  "B loc_FF871580\n"
197 "loc_FF871518:\n"
198  "BL sub_FF873F54\n"
199  "B loc_FF871580\n"
200 "loc_FF871520:\n"
201  "LDR R0, [R0, #0xC]\n"
202  "BL sub_FF964954\n"
203  "B loc_FF871580\n"
204 "loc_FF87152C:\n"
205  "BL sub_FF9649C4\n"
206  "B loc_FF871580\n"
207 "loc_FF871534:\n"
208  "BL sub_FF873FBC\n"
209  "BL sub_FF873F74\n"
210  "B loc_FF871580\n"
211 "loc_FF871540:\n"
212  "MOV R0, #1\n"
213  "BL sub_FF965A2C\n"
214  "MOV R0, #1\n"
215  "BL sub_FF965B54\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_FF871580\n"
222  "BL sub_FF873F54\n"
223  "BL sub_FF874418\n"
224  "B loc_FF871580\n"
225 "loc_FF871574:\n"
226  "LDR R1, =0x5F4\n"
227  "LDR R0, =0xFF870E48\n" // "SsShootTask.c"
228  "BL _DebugAssert \n"
229 "loc_FF871580:\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, =0xFF870E48\n" // "SsShootTask.c"
239  "BLEQ _DebugAssert \n"
240  "STR R6, [R5, #8]\n"
241  "B loc_FF8712EC\n"
242  );
243 }

Variablen-Dokumentation

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

Definiert in Zeile 7 der Datei capt_seq.c.