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

#define FWT_SEEKMASK   0x40

Definiert in Zeile 40 der Datei filewrite.c.

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 13 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

Definiert in Zeile 49 der Datei filewrite.c.

49  {
50 asm volatile (
51 " STMFD SP!, {R1-R7,LR} \n"
52 " LDR R5, =0x11630 \n"
53 " MOV R6, #0 \n"
54 
55 "loc_FF3C068C:\n"
56 " LDR R0, [R5, #0x10] \n"
57 " MOV R2, #0 \n"
58 " ADD R1, SP, #8 \n"
59 " BL sub_0068BDE4 /*_ReceiveMessageQueue*/ \n"
60 " CMP R0, #0 \n"
61 " LDRNE R1, =0x3EF \n"
62 " LDRNE R0, =0xFF3C084C /*'dwFWrite.c'*/ \n"
63 " BLNE _DebugAssert \n"
64 " LDR R0, [SP, #8] \n"
65 " LDR R1, [R0] \n"
66 " CMP R1, #0xD \n"
67 " ADDCC PC, PC, R1, LSL#2 \n"
68 " B loc_FF3C068C \n"
69 " B loc_FF3C0814 \n"
70 " B loc_FF3C0814 \n"
71 " B loc_FF3C0814 \n"
72 " B loc_FF3C0814 \n"
73 " B loc_FF3C0814 \n"
74 " B loc_FF3C0814 \n"
75 " B loc_FF3C0814 \n"
76 " B loc_FF3C081C \n"
77 " B loc_FF3C06F4 \n"
78 " B loc_FF3C0790 \n"
79 " B loc_FF3C07C0 \n"
80 " B loc_FF3C075C \n"
81 " B loc_FF3C0788 \n"
82 
83 "loc_FF3C06F4:\n"
84 " MOV R4, R5 \n"
85 " STR R6, [SP] \n"
86 
87 "loc_FF3C06FC:\n"
88 " LDR R0, [R4, #0x10] \n"
89 " MOV R1, SP \n"
90 " BL sub_0068C028 /*_GetNumberOfPostedMessages*/ \n"
91 " LDR R0, [SP] \n"
92 " CMP R0, #0 \n"
93 " BEQ loc_FF3C0728 \n"
94 " LDR R0, [R4, #0x10] \n"
95 " MOV R2, #0 \n"
96 " ADD R1, SP, #4 \n"
97 " BL sub_0068BDE4 /*_ReceiveMessageQueue*/ \n"
98 " B loc_FF3C06FC \n"
99 
100 "loc_FF3C0728:\n"
101 " LDR R0, [R4, #4] \n"
102 " CMN R0, #1 \n"
103 " BEQ loc_FF3C0750 \n"
104 " BL fwt_close \n" // --> Patched. Old value = _Close.
105 " MVN R0, #0 \n"
106 " STR R0, [R4, #4] \n"
107 " LDR R0, =0x25B8B0 \n"
108 " BL sub_FF0ACBDC \n"
109 " MOV R1, #0 \n"
110 " BL sub_FF0AAB00 \n"
111 
112 "loc_FF3C0750:\n"
113 " LDR R0, [R4, #0xC] \n"
114 " BL _GiveSemaphore \n"
115 " B loc_FF3C068C \n"
116 
117 "loc_FF3C075C:\n"
118 " MOV R4, R0 \n"
119 " ADD R0, R0, #0x58 \n"
120 " BL sub_FF0ACBDC \n"
121 " MOV R1, #0 \n"
122 " BL sub_FF0AA9C4 \n"
123 " LDR R0, [R4, #0xC] \n"
124 " BL sub_FF0A98A0 \n"
125 " ADD R0, R4, #0x58 \n"
126 
127 //mod start
128 " LDR R3, =ignore_current_write\n" // !!
129 " LDR R3, [R3]\n"
130 " CMP R3, #0\n"
131 " BNE loc_A\n" // skip creating directory
132 //mod end
133 " BL sub_FF0358B4 \n"
134 " ADD R0, R4, #0x58 \n"
135 " B loc_FF3C07F4 \n"
136 
137 "loc_FF3C0788:\n"
138 " BL sub_FF3C036C_my \n" // --> Patched. Old value = 0xFF3C036C. Open stage
139 " B loc_FF3C068C \n"
140 
141 "loc_FF3C0790:\n"
142 " LDR R1, [R0, #4] \n"
143 " MOV R4, R0 \n"
144 " LDR R0, [R5, #4] \n"
145 " MOV R2, #0 \n"
146 " BL fwt_lseek \n" // --> Patched. Old value = _lseek.
147 " CMN R0, #1 \n"
148 " LDREQ R0, =0x9200013 \n"
149 " MOVEQ R1, R4 \n"
150 " STREQ R0, [R4, #0x10] \n"
151 " MOVEQ R0, #7 \n"
152 " BLEQ sub_FF3C02AC \n"
153 " B loc_FF3C068C \n"
154 
155 "loc_FF3C07C0:\n"
156 " MOV R4, R0 \n"
157 " LDRSB R0, [R0, #0x58] \n"
158 " CMP R0, #0 \n"
159 " BEQ loc_FF3C068C \n"
160 " STRB R0, [SP, #4] \n"
161 " ADD R0, R4, #0x58 \n"
162 " STRB R6, [SP, #5] \n"
163 " BL sub_FF0ACBDC \n"
164 " MOV R1, #0 \n"
165 " BL sub_FF0AA9C4 \n"
166 
167 //mod start
168 " LDR R3, =ignore_current_write\n" // !!
169 " LDR R3, [R3]\n"
170 " CMP R3, #0\n"
171 " BNE loc_B\n" // skip flushing the cache
172 //mod end
173 
174 " ADD R0, SP, #4 \n"
175 " BL sub_FF0A98B8 \n"
176 "loc_B:\n"
177 " ADD R0, R4, #0x58 \n"
178 
179 "loc_FF3C07F4:\n"
180 "loc_A:\n"
181 " BL sub_FF0ACBDC \n"
182 " LDR R1, [R5, #0x18] \n"
183 " BL sub_FF0AAB00 \n"
184 " LDR R1, [R5, #0x14] \n"
185 " CMP R1, #0 \n"
186 " LDRNE R0, [R4, #0x10] \n"
187 " BLXNE R1 \n"
188 " B loc_FF3C068C \n"
189 
190 "loc_FF3C0814:\n"
191 " BL sub_FF3C0A2C_my \n" // --> Patched. Old value = 0xFF3C0A2C. Write stage
192 " B loc_FF3C068C \n"
193 
194 "loc_FF3C081C:\n"
195 " BL sub_FF3C04F8_my \n" // --> Patched. Old value = 0xFF3C04F8. Close stage
196 " B loc_FF3C068C \n"
197 );
198 }