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

Funktionen

void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

static long * nrflag = (long*)0xCF74
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

Definiert in Zeile 14 der Datei capt_seq.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R4,LR} \n"
17 " SUB SP, SP, #4 \n"
18 " MOV R4, SP \n"
19 " B loc_FFB0ACB8 \n"
20 
21 "loc_FFB0AB3C:\n"
22 " LDR R2, [SP] \n"
23 " LDR R3, [R2] \n"
24 " MOV R0, R2 \n"
25 " CMP R3, #0x15 \n"
26 " LDRLS PC, [PC, R3, LSL#2] \n"
27 " B loc_FFB0AC8C \n"
28 " .long loc_FFB0ABAC \n"
29 " .long loc_FFB0ABCC \n"
30 " .long loc_FFB0ABE0 \n"
31 " .long loc_FFB0ABF4 \n"
32 " .long loc_FFB0ABEC \n"
33 " .long loc_FFB0ABFC \n"
34 " .long loc_FFB0AC04 \n"
35 " .long loc_FFB0AC10 \n"
36 " .long loc_FFB0AC18 \n"
37 " .long loc_FFB0AC24 \n"
38 " .long loc_FFB0AC2C \n"
39 " .long loc_FFB0AC34 \n"
40 " .long loc_FFB0AC3C \n"
41 " .long loc_FFB0AC44 \n"
42 " .long loc_FFB0AC4C \n"
43 " .long loc_FFB0AC58 \n"
44 " .long loc_FFB0AC60 \n"
45 " .long loc_FFB0AC68 \n"
46 " .long loc_FFB0AC70 \n"
47 " .long loc_FFB0AC7C \n"
48 " .long loc_FFB0AC84 \n"
49 " .long loc_FFB0ACA0 \n"
50 
51 "loc_FFB0ABAC:\n"
52 " BL sub_FFB0B1A0 \n"
53 " BL shooting_expo_param_override\n" // +
54 " BL sub_FFB088B0 \n"
55 " LDR R3, =0xBE160 \n"
56 " MOV R2, #0\n" // added
57 " STR R2, [R3,#0x24]\n" // added, fixes overrides behavior at short shutter press (from S95)
58 //" LDR R2, [R3, #0x24] \n" // above patch makes these three lines redundant
59 //" CMP R2, #0 \n"
60 //" BEQ loc_FFB0AC9C \n"
61 //" BL _sub_FFB0A75C \n"
62 " B loc_FFB0AC9C \n"
63 
64 "loc_FFB0ABCC:\n"
65 " BL sub_FFB0A680_my \n" // --> Patched. Old value = 0xFFB0A680.
66 
67 "loc_FFB0ABD0:\n"
68 " LDR R2, =0xBE160 \n"
69 " MOV R3, #0 \n"
70 " STR R3, [R2, #0x24] \n"
71 " B loc_FFB0AC9C \n"
72 
73 "loc_FFB0ABE0:\n"
74 " MOV R0, #1 \n"
75 " BL sub_FFB0B3C0 \n"
76 " B loc_FFB0AC9C \n"
77 
78 "loc_FFB0ABEC:\n"
79 " BL sub_FFB0ADA0 \n"
80 " B loc_FFB0ABD0 \n"
81 
82 "loc_FFB0ABF4:\n"
83 " BL sub_FFB0B158 \n"
84 " B loc_FFB0ABD0 \n"
85 
86 "loc_FFB0ABFC:\n"
87 " BL sub_FFB0B168 \n"
88 " B loc_FFB0AC9C \n"
89 
90 "loc_FFB0AC04:\n"
91 " BL sub_FFB0B2B8 \n"
92 " BL sub_FFB088B0 \n"
93 " B loc_FFB0AC9C \n"
94 
95 "loc_FFB0AC10:\n"
96 " BL sub_FFB0A838 \n"
97 " B loc_FFB0AC9C \n"
98 
99 "loc_FFB0AC18:\n"
100 " BL sub_FFB0B328 \n"
101 " BL sub_FFB088B0 \n"
102 " B loc_FFB0AC9C \n"
103 
104 "loc_FFB0AC24:\n"
105 " BL sub_FFB0B158 \n"
106 " B loc_FFB0AC9C \n"
107 
108 "loc_FFB0AC2C:\n"
109 " BL sub_FFB0CA90 \n"
110 " B loc_FFB0AC9C \n"
111 
112 "loc_FFB0AC34:\n"
113 " BL sub_FFB0CC64 \n"
114 " B loc_FFB0AC9C \n"
115 
116 "loc_FFB0AC3C:\n"
117 " BL sub_FFB0CCF8 \n"
118 " B loc_FFB0AC9C \n"
119 
120 "loc_FFB0AC44:\n"
121 " BL sub_FFB0CDF4 \n"
122 " B loc_FFB0AC9C \n"
123 
124 "loc_FFB0AC4C:\n"
125 " MOV R0, #0 \n"
126 " BL sub_FFB0D060 \n"
127 " B loc_FFB0AC9C \n"
128 
129 "loc_FFB0AC58:\n"
130 " BL sub_FFB0D234 \n"
131 " B loc_FFB0AC9C \n"
132 
133 "loc_FFB0AC60:\n"
134 " BL sub_FFB0D2D0 \n"
135 " B loc_FFB0AC9C \n"
136 
137 "loc_FFB0AC68:\n"
138 " BL sub_FFB0D390 \n"
139 " B loc_FFB0AC9C \n"
140 
141 "loc_FFB0AC70:\n"
142 " BL sub_FFB0B514 \n"
143 " BL sub_FFB0A5A4 \n"
144 " B loc_FFB0AC9C \n"
145 
146 "loc_FFB0AC7C:\n"
147 " BL sub_FFB0CF34 \n"
148 " B loc_FFB0AC9C \n"
149 
150 "loc_FFB0AC84:\n"
151 " BL sub_FFB0CF90 \n"
152 " B loc_FFB0AC9C \n"
153 
154 "loc_FFB0AC8C:\n"
155 " MOV R1, #0x4C0 \n"
156 " LDR R0, =0xFFB0A400 /*'SsShootTask.c'*/ \n"
157 " ADD R1, R1, #0xE \n"
158 " BL _DebugAssert \n"
159 
160 "loc_FFB0AC9C:\n"
161 " LDR R2, [SP] \n"
162 
163 "loc_FFB0ACA0:\n"
164 " LDR R3, =0x97A30 \n"
165 " LDR R1, [R2, #4] \n"
166 " LDR R0, [R3] \n"
167 " BL sub_FFB1E89C /*_SetEventFlag*/ \n"
168 " LDR R0, [SP] \n"
169 " BL sub_FFB0A480 \n"
170 
171 "loc_FFB0ACB8:\n"
172 " LDR R3, =0x97A34 \n"
173 " MOV R1, R4 \n"
174 " LDR R0, [R3] \n"
175 " MOV R2, #0 \n"
176 " BL sub_FFB1EFB4 /*_ReceiveMessageQueue*/ \n"
177 " TST R0, #1 \n"
178 " BEQ loc_FFB0AB3C \n"
179 " LDR R0, =0xFFB0A400 /*'SsShootTask.c'*/ \n"
180 " MOV R1, #0x400 \n"
181 " BL _DebugAssert \n"
182 " BL _ExitTask \n"
183 " ADD SP, SP, #4 \n"
184 " LDMFD SP!, {R4,PC} \n"
185 " MOV PC, LR \n"
186 );
187 }

Variablen-Dokumentation

long* nrflag = (long*)0xCF74
static

Definiert in Zeile 8 der Datei capt_seq.c.