CHDK_DE Vorschauversion  Trunk Rev. 5272
 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))
 

Makro-Dokumentation

#define FWT_MUSTSEEK   2

Definiert in Zeile 30 der Datei filewrite.c.

#define FWT_SEEKMASK   0xffffffff

Definiert in Zeile 31 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)  )

Definiert in Zeile 37 der Datei filewrite.c.

37  {
38 asm volatile (
39 " STMFD SP!, {R1-R7,LR} \n"
40 " LDR R7, =0x96B8 \n"
41 " MOV R6, #0 \n"
42 
43 "loc_FFA52530:\n"
44 " LDR R0, [R7, #0x14] \n"
45 " MOV R2, #0 \n"
46 " ADD R1, SP, #8 \n"
47 " MOV R5, R7 \n"
48 " BL sub_003F7218 \n"
49 " CMP R0, #0 \n"
50 " LDRNE R1, =0x38E \n"
51 " LDRNE R0, =0xFFA52668 \n"
52 " BLNE _DebugAssert \n"
53 " LDR R0, [SP, #8] \n"
54 " LDR R1, [R0] \n"
55 " CMP R1, #0xB \n"
56 " ADDCC PC, PC, R1, LSL#2 \n"
57 " B loc_FFA52530 \n"
58 " B loc_FFA52638 \n"
59 " B loc_FFA52638 \n"
60 " B loc_FFA52638 \n"
61 " B loc_FFA52638 \n"
62 " B loc_FFA52638 \n"
63 " B loc_FFA52638 \n"
64 " B loc_FFA52638 \n"
65 " B loc_FFA52640 \n"
66 " B loc_FFA52594 \n"
67 " B loc_FFA52604 \n"
68 " B loc_FFA525FC \n"
69 
70 "loc_FFA52594:\n"
71 " STR R6, [SP] \n"
72 
73 "loc_FFA52598:\n"
74 " LDR R0, [R5, #0x14] \n"
75 " MOV R1, SP \n"
76 " BL sub_003F745C \n"
77 " LDR R0, [SP] \n"
78 " CMP R0, #0 \n"
79 " BEQ loc_FFA525C4 \n"
80 " LDR R0, [R5, #0x14] \n"
81 " MOV R2, #0 \n"
82 " ADD R1, SP, #4 \n"
83 " BL sub_003F7218 \n"
84 " B loc_FFA52598 \n"
85 
86 "loc_FFA525C4:\n"
87 " LDR R0, [R5, #8] \n"
88 " CMN R0, #1 \n"
89 " BEQ loc_FFA525F0 \n"
90 " BL fwt_close \n" // --> Patched. Old value = 0xFF830158.
91 " MVN R0, #0 \n"
92 " STR R0, [R5, #8] \n"
93 " LDR R0, =0x132120 \n"
94 " STR R6, [R5, #4] \n"
95 " BL sub_FF86671C \n"
96 " MOV R1, #0 \n"
97 " BL sub_FF8647B8 \n"
98 
99 "loc_FFA525F0:\n"
100 " LDR R0, [R5, #0x10] \n"
101 " BL _GiveSemaphore \n"
102 " B loc_FFA52530 \n"
103 
104 "loc_FFA525FC:\n"
105 " BL sub_FFA52220_my \n" // --> Patched. Old value = 0xFFA52220. Open stage
106 " B loc_FFA52530 \n"
107 
108 "loc_FFA52604:\n"
109 " LDR R1, [R0, #4] \n"
110 " MOV R4, R0 \n"
111 " LDR R0, [R5, #8] \n"
112 " MOV R2, #0 \n"
113 " BL fwt_lseek \n" // --> Patched. Old value = 0xFF8302F0. _lseek
114 " CMN R0, #1 \n"
115 " LDREQ R0, =0x9200013 \n"
116 " MOV R1, R4 \n"
117 " STREQ R0, [R4, #0x14] \n"
118 " MOVNE R0, #0 \n"
119 " MOVEQ R0, #7 \n"
120 " BL sub_FFA52164 \n"
121 " B loc_FFA52530 \n"
122 
123 "loc_FFA52638:\n"
124 " BL sub_FFA52860_my \n" // --> Patched. Old value = 0xFFA52860. Write stage
125 " B loc_FFA52530 \n"
126 
127 "loc_FFA52640:\n"
128 " BL sub_FFA5238C_my \n" // --> Patched. Old value = 0xFFA5238C. Close stage
129 " B loc_FFA52530 \n"
130 );
131 }