CHDK_DE Vorschauversion  Trunk Rev. 6014
 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*)0x61AC
 

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_FF95FD74 \n"
20 
21 "loc_FF95FC0C:\n"
22 " LDR R2, [SP] \n"
23 " LDR R3, [R2] \n"
24 " MOV R0, R2 \n"
25 " CMP R3, #0x14 \n"
26 " LDRLS PC, [PC, R3, LSL#2] \n"
27 " B loc_FF95FD48 \n"
28 " .long loc_FF95FC78 \n"
29 " .long loc_FF95FC98 \n"
30 " .long loc_FF95FCAC \n"
31 " .long loc_FF95FCBC \n"
32 " .long loc_FF95FCB4 \n"
33 " .long loc_FF95FCC4 \n"
34 " .long loc_FF95FCCC \n"
35 " .long loc_FF95FCD8 \n"
36 " .long loc_FF95FCE0 \n"
37 " .long loc_FF95FCEC \n"
38 " .long loc_FF95FCF4 \n"
39 " .long loc_FF95FCFC \n"
40 " .long loc_FF95FD04 \n"
41 " .long loc_FF95FD0C \n"
42 " .long loc_FF95FD14 \n"
43 " .long loc_FF95FD20 \n"
44 " .long loc_FF95FD28 \n"
45 " .long loc_FF95FD30 \n"
46 " .long loc_FF95FD38 \n"
47 " .long loc_FF95FD40 \n"
48 " .long loc_FF95FD5C \n"
49 
50 "loc_FF95FC78:\n"
51 " BL sub_FF961648 \n"
52 " BL shooting_expo_param_override\n" // +
53 " BL sub_FF95D990 \n"
54 " LDR R3, =0x99CC0 \n"
55 " MOV R2, #0\n" // added
56 " STR R2, [R3,#0x24]\n" // added, fixes overrides behavior at short shutter press (from S95)
57 //" LDR R2, [R3, #0x24] \n" // above patch makes these three lines redundant
58 //" CMP R2, #0 \n"
59 //" BEQ loc_FF95FD58 \n"
60 //" BL _sub_FF95F858 \n"
61 " B loc_FF95FD58 \n"
62 
63 "loc_FF95FC98:\n"
64 " BL sub_FF95F788_my \n" // --> Patched. Old value = 0xFF95F788.
65 
66 "loc_FF95FC9C:\n"
67 " LDR R2, =0x99CC0 \n"
68 " MOV R3, #0 \n"
69 " STR R3, [R2, #0x24] \n"
70 " B loc_FF95FD58 \n"
71 
72 "loc_FF95FCAC:\n"
73 " BL sub_FF9619D8 \n"
74 " B loc_FF95FD58 \n"
75 
76 "loc_FF95FCB4:\n"
77 " BL sub_FF960848 \n"
78 " B loc_FF95FC9C \n"
79 
80 "loc_FF95FCBC:\n"
81 " BL sub_FF960BE4 \n"
82 " B loc_FF95FC9C \n"
83 
84 "loc_FF95FCC4:\n"
85 " BL sub_FF960BF4 \n"
86 " B loc_FF95FD58 \n"
87 
88 "loc_FF95FCCC:\n"
89 " BL sub_FF96172C \n"
90 " BL sub_FF95D990 \n"
91 " B loc_FF95FD58 \n"
92 
93 "loc_FF95FCD8:\n"
94 " BL sub_FF95F92C \n"
95 " B loc_FF95FD58 \n"
96 
97 "loc_FF95FCE0:\n"
98 " BL sub_FF961794 \n"
99 " BL sub_FF95D990 \n"
100 " B loc_FF95FD58 \n"
101 
102 "loc_FF95FCEC:\n"
103 " BL sub_FF960BE4 \n"
104 " B loc_FF95FD58 \n"
105 
106 "loc_FF95FCF4:\n"
107 " BL sub_FF961F2C \n"
108 " B loc_FF95FD58 \n"
109 
110 "loc_FF95FCFC:\n"
111 " BL sub_FF962278 \n"
112 " B loc_FF95FD58 \n"
113 
114 "loc_FF95FD04:\n"
115 " BL sub_FF9622FC \n"
116 " B loc_FF95FD58 \n"
117 
118 "loc_FF95FD0C:\n"
119 " BL sub_FF9623E8 \n"
120 " B loc_FF95FD58 \n"
121 
122 "loc_FF95FD14:\n"
123 " MOV R0, #0 \n"
124 " BL sub_FF9624B0 \n"
125 " B loc_FF95FD58 \n"
126 
127 "loc_FF95FD20:\n"
128 " BL sub_FF96261C \n"
129 " B loc_FF95FD58 \n"
130 
131 "loc_FF95FD28:\n"
132 " BL sub_FF9626B0 \n"
133 " B loc_FF95FD58 \n"
134 
135 "loc_FF95FD30:\n"
136 " BL sub_FF96276C \n"
137 " B loc_FF95FD58 \n"
138 
139 "loc_FF95FD38:\n"
140 " BL sub_FF962858 \n"
141 " B loc_FF95FD58 \n"
142 
143 "loc_FF95FD40:\n"
144 " BL sub_FF9628AC \n"
145 " B loc_FF95FD58 \n"
146 
147 "loc_FF95FD48:\n"
148 " MOV R1, #0x36C \n"
149 " LDR R0, =0xFF95F514 /*'ShootTask.c'*/ \n"
150 " ADD R1, R1, #1 \n"
151 " BL _DebugAssert \n"
152 
153 "loc_FF95FD58:\n"
154 " LDR R2, [SP] \n"
155 
156 "loc_FF95FD5C:\n"
157 " LDR R3, =0x6F18C \n"
158 " LDR R1, [R2, #4] \n"
159 " LDR R0, [R3] \n"
160 " BL sub_FF81FCE4 /*_SetEventFlag*/ \n"
161 " LDR R0, [SP] \n"
162 " BL sub_FF95F590 \n"
163 
164 "loc_FF95FD74:\n"
165 " LDR R3, =0x6F190 \n"
166 " MOV R1, R4 \n"
167 " LDR R0, [R3] \n"
168 " MOV R2, #0 \n"
169 " BL sub_FF8203FC /*_ReceiveMessageQueue*/ \n"
170 " TST R0, #1 \n"
171 " BEQ loc_FF95FC0C \n"
172 " MOV R1, #0x2A4 \n"
173 " LDR R0, =0xFF95F514 /*'ShootTask.c'*/ \n"
174 " ADD R1, R1, #3 \n"
175 " BL _DebugAssert \n"
176 " BL _ExitTask \n"
177 " ADD SP, SP, #4 \n"
178 " LDMFD SP!, {R4,PC} \n"
179 );
180 }

Variablen-Dokumentation

long* nrflag = (long*)0x61AC
static

Definiert in Zeile 8 der Datei capt_seq.c.