CHDK_DE Vorschauversion  Trunk Rev. 5234
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
filewrite.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "../../../generic/filewrite.c"
+ Include-Abhängigkeitsdiagramm für filewrite.c:

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  cam_ptp_data_chunk
 
struct  fwt_data_struct
 

Makrodefinitionen

#define MAX_CHUNKS_FOR_JPEG   7
 
#define FWT_MUSTSEEK   0x40
 
#define FWT_SEEKMASK   0x40
 

Funktionen

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

Makro-Dokumentation

#define FWT_MUSTSEEK   0x40

Definiert in Zeile 38 der Datei filewrite.c.

#define FWT_SEEKMASK   0x40

Definiert in Zeile 39 der Datei filewrite.c.

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 12 der Datei filewrite.c.

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

__MovieRecorder_c__100

__MovieRecorder_c__100

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 46 der Datei filewrite.c.

46  {
47 asm volatile (
48 " STMFD SP!, {R1-R7,LR} \n"
49 " LDR R5, =0xC468 \n"
50 " MOV R6, #0 \n"
51 
52 "loc_FFAE2B94:\n"
53 " LDR R0, [R5, #0x10] \n"
54 " MOV R2, #0 \n"
55 " ADD R1, SP, #8 \n"
56 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
57 " CMP R0, #0 \n"
58 " LDRNE R2, =0x409 \n"
59 " LDRNE R1, =0xFFAE2D7C /*'dwFWrite.c'*/ \n"
60 " MOVNE R0, #0 \n"
61 " BLNE _DebugAssert \n"
62 " LDR R0, [SP, #8] \n"
63 " LDR R1, [R0] \n"
64 " CMP R1, #0xD \n"
65 " ADDCC PC, PC, R1, LSL#2 \n"
66 " B loc_FFAE2B94 \n"
67 " B loc_FFAE2D44 \n"
68 " B loc_FFAE2D44 \n"
69 " B loc_FFAE2D44 \n"
70 " B loc_FFAE2D44 \n"
71 " B loc_FFAE2D44 \n"
72 " B loc_FFAE2D44 \n"
73 " B loc_FFAE2D44 \n"
74 " B loc_FFAE2D4C \n"
75 " B loc_FFAE2C00 \n"
76 " B loc_FFAE2CC0 \n"
77 " B loc_FFAE2CF0 \n"
78 " B loc_FFAE2C74 \n"
79 " B loc_FFAE2CB8 \n"
80 
81 "loc_FFAE2C00:\n"
82 " MOV R4, R5 \n"
83 " STR R6, [SP] \n"
84 
85 "loc_FFAE2C08:\n"
86 " LDR R0, [R4, #0x10] \n"
87 " MOV R1, SP \n"
88 " BL sub_FF82A0AC /*_GetNumberOfPostedMessages*/ \n"
89 " LDR R0, [SP] \n"
90 " CMP R0, #0 \n"
91 " BEQ loc_FFAE2C34 \n"
92 " LDR R0, [R4, #0x10] \n"
93 " MOV R2, #0 \n"
94 " ADD R1, SP, #4 \n"
95 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
96 " B loc_FFAE2C08 \n"
97 
98 "loc_FFAE2C34:\n"
99 " LDR R0, [R4, #4] \n"
100 " CMN R0, #1 \n"
101 " BEQ loc_FFAE2C68 \n"
102 " BL fwt_close \n" // --> Patched. Old value = _Close.
103 " MVN R0, #0 \n"
104 " STR R0, [R4, #4] \n"
105 " MOV R1, #0 \n"
106 " MOV R0, #0x48 \n"
107 " BL sub_FF8B7908 \n"
108 " LDR R0, =0x131B3C \n"
109 " BL sub_FF8324A8 \n"
110 " MOV R1, #0 \n"
111 " BL sub_FF830374 \n"
112 
113 "loc_FFAE2C68:\n"
114 " LDR R0, [R4, #0xC] \n"
115 " BL _GiveSemaphore \n"
116 " B loc_FFAE2B94 \n"
117 
118 "loc_FFAE2C74:\n"
119 " MOV R4, R0 \n"
120 " ADD R0, R0, #0x58 \n"
121 " BL sub_FF8324A8 \n"
122 " MOV R1, #0 \n"
123 " BL sub_FF830234 \n"
124 " MOV R1, #0 \n"
125 " MOV R0, #0x47 \n"
126 " BL sub_FF8B7908 \n"
127 " LDR R0, [R4, #0xC] \n"
128 " BL sub_FF82F0D8 \n"
129 " ADD R0, R4, #0x58 \n"
130 
131 //mod start
132 " LDR R3, =ignore_current_write\n" // !!
133 " LDR R3, [R3]\n"
134 " CMP R3, #0\n"
135 " BNE loc_A\n" // skip creating directory
136 //mod end
137 
138 " BL sub_FF8281A4 \n"
139 " MOV R1, #0 \n"
140 " MOV R0, #0x48 \n"
141 " BL sub_FF8B7908 \n"
142 " ADD R0, R4, #0x58 \n"
143 " B loc_FFAE2D24 \n"
144 
145 "loc_FFAE2CB8:\n"
146 " BL sub_FFAE283C_my \n" // --> Patched. Old value = 0xFFAE283C. Open stage
147 " B loc_FFAE2B94 \n"
148 
149 "loc_FFAE2CC0:\n"
150 " LDR R1, [R0, #4] \n"
151 " MOV R4, R0 \n"
152 " LDR R0, [R5, #4] \n"
153 " MOV R2, #0 \n"
154 " BL fwt_lseek \n" // --> Patched. Old value = _lseek.
155 " CMN R0, #1 \n"
156 " LDREQ R0, =0x9200013 \n"
157 " MOVEQ R1, R4 \n"
158 " STREQ R0, [R4, #0x10] \n"
159 " MOVEQ R0, #7 \n"
160 " BLEQ sub_FFAE277C \n"
161 " B loc_FFAE2B94 \n"
162 
163 "loc_FFAE2CF0:\n"
164 " MOV R4, R0 \n"
165 " LDRSB R0, [R0, #0x58] \n"
166 " CMP R0, #0 \n"
167 " BEQ loc_FFAE2B94 \n"
168 " STRB R0, [SP, #4] \n"
169 " ADD R0, R4, #0x58 \n"
170 " STRB R6, [SP, #5] \n"
171 " BL sub_FF8324A8 \n"
172 " MOV R1, #0 \n"
173 " BL sub_FF830234 \n"
174 
175 //mod start
176 " LDR R3, =ignore_current_write\n" // !!
177 " LDR R3, [R3]\n"
178 " CMP R3, #0\n"
179 " BNE loc_B\n" // skip flushing the cache
180 //mod end
181 
182 " ADD R0, SP, #4 \n"
183 " BL sub_FF82F0F0 \n"
184 "loc_B:\n"
185 " ADD R0, R4, #0x58 \n"
186 
187 "loc_FFAE2D24:\n"
188 "loc_A:\n"
189 " BL sub_FF8324A8 \n"
190 " LDR R1, [R5, #0x1C] \n"
191 " BL sub_FF830374 \n"
192 " LDR R1, [R5, #0x14] \n"
193 " CMP R1, #0 \n"
194 " LDRNE R0, [R4, #0x10] \n"
195 " BLXNE R1 \n"
196 " B loc_FFAE2B94 \n"
197 
198 "loc_FFAE2D44:\n"
199 " BL sub_FFAE2F98_my \n" // --> Patched. Old value = 0xFFAE2F98. Write stage
200 " B loc_FFAE2B94 \n"
201 
202 "loc_FFAE2D4C:\n"
203 " BL sub_FFAE29F4_my \n" // --> Patched. Old value = 0xFFAE29F4. Close stage
204 " B loc_FFAE2B94 \n"
205 );
206 }