CHDK_DE Vorschauversion  Trunk Rev. 5426
 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 OFLAG_NOFLUSH   0x8000
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 12 der Datei filewrite.c.

#define OFLAG_NOFLUSH   0x8000

Definiert in Zeile 32 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 38 der Datei filewrite.c.

38  {
39 asm volatile (
40 " STMFD SP!, {R1-R5,LR} \n"
41 " LDR R5, =0xABA8 \n"
42 
43 "loc_FFA8EAA4:\n"
44 " MOV R2, #0 \n"
45 " LDR R0, [R5, #0x10] \n"
46 " ADD R1, SP, #8 \n"
47 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
48 " CMP R0, #0 \n"
49 " LDRNE R1, =0x33F \n"
50 " LDRNE R0, =0xFFA8EB90 /*'dwFWrite.c'*/ \n"
51 " BLNE _DebugAssert \n"
52 " LDR R0, [SP, #8] \n"
53 " LDR R1, [R0] \n"
54 " CMP R1, #0xA \n"
55 " ADDCC PC, PC, R1, LSL#2 \n"
56 " B loc_FFA8EAA4 \n"
57 " B loc_FFA8EB70 \n"
58 " B loc_FFA8EB70 \n"
59 " B loc_FFA8EB70 \n"
60 " B loc_FFA8EB70 \n"
61 " B loc_FFA8EB70 \n"
62 " B loc_FFA8EB70 \n"
63 " B loc_FFA8EB70 \n"
64 " B loc_FFA8EB78 \n"
65 " B loc_FFA8EB00 \n"
66 " B loc_FFA8EB68 \n"
67 
68 "loc_FFA8EB00:\n"
69 " MOV R0, #0 \n"
70 " MOV R4, R5 \n"
71 " STR R0, [SP] \n"
72 
73 "loc_FFA8EB0C:\n"
74 " LDR R0, [R4, #0x10] \n"
75 " MOV R1, SP \n"
76 " BL sub_FF839DC8 /*_GetNumberOfPostedMessages*/ \n"
77 " LDR R0, [SP] \n"
78 " CMP R0, #0 \n"
79 " BEQ loc_FFA8EB38 \n"
80 " LDR R0, [R4, #0x10] \n"
81 " MOV R2, #0 \n"
82 " ADD R1, SP, #4 \n"
83 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
84 " B loc_FFA8EB0C \n"
85 
86 "loc_FFA8EB38:\n"
87 " LDR R0, [R4, #4] \n"
88 " CMN R0, #1 \n"
89 " BEQ loc_FFA8EB5C \n"
90 " BL fwt_close \n" // --> Patched. Old value = _Close.
91 " MVN R0, #0 \n"
92 " STR R0, [R4, #4] \n"
93 " LDR R0, =0xF93DC \n"
94 " BL sub_FF86FE70 \n"
95 " BL sub_FF86E09C \n"
96 
97 "loc_FFA8EB5C:\n"
98 " LDR R0, [R4, #0xC] \n"
99 " BL _GiveSemaphore \n"
100 " B loc_FFA8EAA4 \n"
101 
102 "loc_FFA8EB68:\n"
103 " BL sub_FFA8ED78_my \n" // --> Patched. Old value = 0xFFA8ED78. Open stage
104 " B loc_FFA8EAA4 \n"
105 
106 "loc_FFA8EB70:\n"
107 " BL sub_FFA8EEC0_my \n" // --> Patched. Old value = 0xFFA8EEC0. Write stage
108 " B loc_FFA8EAA4 \n"
109 
110 "loc_FFA8EB78:\n"
111 " BL sub_FFA8E928_my \n" // --> Patched. Old value = 0xFFA8E928. Close stage
112 " B loc_FFA8EAA4 \n"
113 );
114 }