CHDK_DE Vorschauversion  Trunk Rev. 5298
 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 36 der Datei filewrite.c.

#define FWT_SEEKMASK   0x40

Definiert in Zeile 37 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 43 der Datei filewrite.c.

43  {
44 asm volatile (
45 " STMFD SP!, {R1-R7,LR} \n"
46 " LDR R5, =0x11628 \n"
47 " MOV R6, #0 \n"
48 
49 "loc_FF36D2E4:\n"
50 " LDR R0, [R5, #0x10] \n"
51 " MOV R2, #0 \n"
52 " ADD R1, SP, #8 \n"
53 " BL sub_0068BDE0 /*_ReceiveMessageQueue*/ \n"
54 " CMP R0, #0 \n"
55 " MOVNE R1, #0x3EC \n"
56 " LDRNE R0, =0xFF36D4A4 /*'dwFWrite.c'*/ \n"
57 " BLNE _DebugAssert \n"
58 " LDR R0, [SP, #8] \n"
59 " LDR R1, [R0] \n"
60 " CMP R1, #0xD \n"
61 " ADDCC PC, PC, R1, LSL#2 \n"
62 " B loc_FF36D2E4 \n"
63 " B loc_FF36D46C \n"
64 " B loc_FF36D46C \n"
65 " B loc_FF36D46C \n"
66 " B loc_FF36D46C \n"
67 " B loc_FF36D46C \n"
68 " B loc_FF36D46C \n"
69 " B loc_FF36D46C \n"
70 " B loc_FF36D474 \n"
71 " B loc_FF36D34C \n"
72 " B loc_FF36D3E8 \n"
73 " B loc_FF36D418 \n"
74 " B loc_FF36D3B4 \n"
75 " B loc_FF36D3E0 \n"
76 
77 "loc_FF36D34C:\n"
78 " MOV R4, R5 \n"
79 " STR R6, [SP] \n"
80 
81 "loc_FF36D354:\n"
82 " LDR R0, [R4, #0x10] \n"
83 " MOV R1, SP \n"
84 " BL sub_0068C024 /*_GetNumberOfPostedMessages*/ \n"
85 " LDR R0, [SP] \n"
86 " CMP R0, #0 \n"
87 " BEQ loc_FF36D380 \n"
88 " LDR R0, [R4, #0x10] \n"
89 " MOV R2, #0 \n"
90 " ADD R1, SP, #4 \n"
91 " BL sub_0068BDE0 /*_ReceiveMessageQueue*/ \n"
92 " B loc_FF36D354 \n"
93 
94 "loc_FF36D380:\n"
95 " LDR R0, [R4, #4] \n"
96 " CMN R0, #1 \n"
97 " BEQ loc_FF36D3A8 \n"
98 " BL fwt_close \n" // --> Patched. Old value = _Close.
99 " MVN R0, #0 \n"
100 " STR R0, [R4, #4] \n"
101 " LDR R0, =0x18BAF8 \n"
102 " BL sub_FF072D20 \n"
103 " MOV R1, #0 \n"
104 " BL sub_FF070F70 \n"
105 
106 "loc_FF36D3A8:\n"
107 " LDR R0, [R4, #0xC] \n"
108 " BL _GiveSemaphore \n"
109 " B loc_FF36D2E4 \n"
110 
111 "loc_FF36D3B4:\n"
112 " MOV R4, R0 \n"
113 " ADD R0, R0, #0x58 \n"
114 " BL sub_FF072D20 \n"
115 " MOV R1, #0 \n"
116 " BL sub_FF070E34 \n"
117 " LDR R0, [R4, #0xC] \n"
118 " BL sub_FF000370 \n"
119 " ADD R0, R4, #0x58 \n"
120 //mod start
121 " LDR R3, =ignore_current_write\n" // !!
122 " LDR R3, [R3]\n"
123 " CMP R3, #0\n"
124 " BNE loc_A\n" // skip creating directory
125 //mod end
126 " BL sub_FF01D168 \n"
127 " ADD R0, R4, #0x58 \n"
128 " B loc_FF36D44C \n"
129 
130 "loc_FF36D3E0:\n"
131 " BL sub_FF36CFC4_my \n" // --> Patched. Old value = 0xFF36CFC4. Open stage
132 " B loc_FF36D2E4 \n"
133 
134 "loc_FF36D3E8:\n"
135 " LDR R1, [R0, #4] \n"
136 " MOV R4, R0 \n"
137 " LDR R0, [R5, #4] \n"
138 " MOV R2, #0 \n"
139 " BL fwt_lseek \n" // --> Patched. Old value = _lseek.
140 " CMN R0, #1 \n"
141 " LDREQ R0, =0x9200013 \n"
142 " MOVEQ R1, R4 \n"
143 " STREQ R0, [R4, #0x10] \n"
144 " MOVEQ R0, #7 \n"
145 " BLEQ sub_FF36CF04 \n"
146 " B loc_FF36D2E4 \n"
147 
148 "loc_FF36D418:\n"
149 " MOV R4, R0 \n"
150 " LDRSB R0, [R0, #0x58] \n"
151 " CMP R0, #0 \n"
152 " BEQ loc_FF36D2E4 \n"
153 " STRB R0, [SP, #4] \n"
154 " ADD R0, R4, #0x58 \n"
155 " STRB R6, [SP, #5] \n"
156 " BL sub_FF072D20 \n"
157 " MOV R1, #0 \n"
158 " BL sub_FF070E34 \n"
159 //mod start
160 " LDR R3, =ignore_current_write\n" // !!
161 " LDR R3, [R3]\n"
162 " CMP R3, #0\n"
163 " BNE loc_B\n" // skip flushing the cache
164 //mod end
165 " ADD R0, SP, #4 \n"
166 " BL sub_FF06FD38 \n"
167 "loc_B:\n"
168 " ADD R0, R4, #0x58 \n"
169 
170 "loc_FF36D44C:\n"
171 "loc_A:\n"
172 " BL sub_FF072D20 \n"
173 " LDR R1, [R5, #0x18] \n"
174 " BL sub_FF070F70 \n"
175 " LDR R1, [R5, #0x14] \n"
176 " CMP R1, #0 \n"
177 " LDRNE R0, [R4, #0x10] \n"
178 " BLXNE R1 \n"
179 " B loc_FF36D2E4 \n"
180 
181 "loc_FF36D46C:\n"
182 " BL sub_FF36D680_my \n" // --> Patched. Old value = 0xFF36D680. Write stage
183 " B loc_FF36D2E4 \n"
184 
185 "loc_FF36D474:\n"
186 " BL sub_FF36D150_my \n" // --> Patched. Old value = 0xFF36D150. Close stage
187 " B loc_FF36D2E4 \n"
188 );
189 }