CHDK_DE Vorschauversion  Trunk Rev. 5215
 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   2
 
#define FWT_SEEKMASK   0xffffffff
 

Funktionen

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

Makro-Dokumentation

#define FWT_MUSTSEEK   2

Definiert in Zeile 31 der Datei filewrite.c.

#define FWT_SEEKMASK   0xffffffff

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

38  {
39 asm volatile (
40 " STMFD SP!, {R1-R7,LR} \n"
41 " LDR R7, =0xF19C \n"
42 " MOV R6, #0 \n"
43 
44 "loc_FF32E784:\n"
45 " LDR R0, [R7, #0x14] \n"
46 " MOV R2, #0 \n"
47 " ADD R1, SP, #8 \n"
48 " MOV R5, R7 \n"
49 " BL sub_0068BBE4 /*_ReceiveMessageQueue*/ \n"
50 " CMP R0, #0 \n"
51 " LDRNE R1, =0x38E \n"
52 " LDRNE R0, =0xFF32E8BC /*'dwFWrite.c'*/ \n"
53 " BLNE _DebugAssert \n"
54 " LDR R0, [SP, #8] \n"
55 " LDR R1, [R0] \n"
56 " CMP R1, #0xB \n"
57 " ADDCC PC, PC, R1, LSL#2 \n"
58 " B loc_FF32E784 \n"
59 " B loc_FF32E88C \n"
60 " B loc_FF32E88C \n"
61 " B loc_FF32E88C \n"
62 " B loc_FF32E88C \n"
63 " B loc_FF32E88C \n"
64 " B loc_FF32E88C \n"
65 " B loc_FF32E88C \n"
66 " B loc_FF32E894 \n"
67 " B loc_FF32E7E8 \n"
68 " B loc_FF32E858 \n"
69 " B loc_FF32E850 \n"
70 
71 "loc_FF32E7E8:\n"
72 " STR R6, [SP] \n"
73 
74 "loc_FF32E7EC:\n"
75 " LDR R0, [R5, #0x14] \n"
76 " MOV R1, SP \n"
77 " BL sub_0068BE28 /*_GetNumberOfPostedMessages*/ \n"
78 " LDR R0, [SP] \n"
79 " CMP R0, #0 \n"
80 " BEQ loc_FF32E818 \n"
81 " LDR R0, [R5, #0x14] \n"
82 " MOV R2, #0 \n"
83 " ADD R1, SP, #4 \n"
84 " BL sub_0068BBE4 /*_ReceiveMessageQueue*/ \n"
85 " B loc_FF32E7EC \n"
86 
87 "loc_FF32E818:\n"
88 " LDR R0, [R5, #8] \n"
89 " CMN R0, #1 \n"
90 " BEQ loc_FF32E844 \n"
91 " BL fwt_close \n" // --> Patched. Old value = _Close.
92 " MVN R0, #0 \n"
93 " STR R0, [R5, #8] \n"
94 " LDR R0, =0x16C2C8 \n"
95 " STR R6, [R5, #4] \n"
96 " BL sub_FF060B08 \n"
97 " MOV R1, #0 \n"
98 " BL sub_FF05ED80 \n"
99 
100 "loc_FF32E844:\n"
101 " LDR R0, [R5, #0x10] \n"
102 " BL _GiveSemaphore \n"
103 " B loc_FF32E784 \n"
104 
105 "loc_FF32E850:\n"
106 " BL sub_FF32E474_my \n" // --> Patched. Old value = 0xFF32E474. Open stage
107 " B loc_FF32E784 \n"
108 
109 "loc_FF32E858:\n"
110 " LDR R1, [R0, #4] \n"
111 " MOV R4, R0 \n"
112 " LDR R0, [R5, #8] \n"
113 " MOV R2, #0 \n"
114 " BL fwt_lseek \n" // --> Patched. Old value = _lseek.
115 " CMN R0, #1 \n"
116 " LDREQ R0, =0x9200013 \n"
117 " MOV R1, R4 \n"
118 " STREQ R0, [R4, #0x14] \n"
119 " MOVNE R0, #0 \n"
120 " MOVEQ R0, #7 \n"
121 " BL sub_FF32E3B8 \n"
122 " B loc_FF32E784 \n"
123 
124 "loc_FF32E88C:\n"
125 " BL sub_FF32EAB4_my \n" // --> Patched. Old value = 0xFF32EAB4. Write stage
126 " B loc_FF32E784 \n"
127 
128 "loc_FF32E894:\n"
129 " BL sub_FF32E5E0_my \n" // --> Patched. Old value = 0xFF32E5E0. Close stage
130 " B loc_FF32E784 \n"
131 );
132 }