CHDK_DE Vorschauversion  Trunk Rev. 5514
 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   4
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   4

Definiert in Zeile 12 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 35 der Datei filewrite.c.

35  {
36 asm volatile (
37 " STMFD SP!, {R1-R5,LR} \n"
38 " LDR R4, =0x8AA0 \n"
39 
40 "loc_FFE03B64:\n"
41 " LDR R0, [R4, #0x10] \n"
42 " MOV R2, #0 \n"
43 " ADD R1, SP, #8 \n"
44 " BL sub_FFC2936C /*_ReceiveMessageQueue*/ \n"
45 " CMP R0, #0 \n"
46 " BNE loc_FFE03B94 \n"
47 " LDR R0, [SP, #8] \n"
48 " LDR R1, [R0] \n"
49 " CMP R1, #1 \n"
50 " BNE loc_FFE03B9C \n"
51 " LDR R0, [R4, #8] \n"
52 " BL _GiveSemaphore \n"
53 
54 "loc_FFE03B94:\n"
55 " BL _ExitTask \n"
56 " LDMFD SP!, {R1-R5,PC} \n"
57 
58 "loc_FFE03B9C:\n"
59 " SUB R1, R1, #2 \n"
60 " CMP R1, #6 \n"
61 " ADDLS PC, PC, R1, LSL#2 \n"
62 " B loc_FFE03B64 \n"
63 " B loc_FFE03BC8 \n"
64 " B loc_FFE03C2C \n"
65 " B loc_FFE03C34 \n"
66 " B loc_FFE03C34 \n"
67 " B loc_FFE03C34 \n"
68 " B loc_FFE03C34 \n"
69 " B loc_FFE03C3C \n"
70 
71 "loc_FFE03BC8:\n"
72 " MOV R0, #0 \n"
73 " STR R0, [SP] \n"
74 
75 "loc_FFE03BD0:\n"
76 " LDR R0, [R4, #0x10] \n"
77 " MOV R1, SP \n"
78 " BL sub_FFC295B0 /*_GetNumberOfPostedMessages*/ \n"
79 " LDR R0, [SP] \n"
80 " CMP R0, #0 \n"
81 " BEQ loc_FFE03BFC \n"
82 " LDR R0, [R4, #0x10] \n"
83 " MOV R2, #0 \n"
84 " ADD R1, SP, #4 \n"
85 " BL sub_FFC2936C /*_ReceiveMessageQueue*/ \n"
86 " B loc_FFE03BD0 \n"
87 
88 "loc_FFE03BFC:\n"
89 " LDR R0, [R4] \n"
90 " CMN R0, #1 \n"
91 " BEQ loc_FFE03C20 \n"
92 " BL fwt_close \n" // --> Patched. Old value = _Close.
93 " MVN R0, #0 \n"
94 " STR R0, [R4] \n"
95 " LDR R0, =0xC431C \n"
96 " BL sub_FFC55D04 \n"
97 " BL sub_FFC53FA0 \n"
98 
99 "loc_FFE03C20:\n"
100 " LDR R0, [R4, #0xC] \n"
101 " BL _GiveSemaphore \n"
102 " B loc_FFE03B64 \n"
103 
104 "loc_FFE03C2C:\n"
105 " BL sub_FFE03E4C_my \n" // --> Patched. Old value = 0xFFE03E4C. Open stage
106 " B loc_FFE03B64 \n"
107 
108 "loc_FFE03C34:\n"
109 " BL sub_FFE03F80_my \n" // --> Patched. Old value = 0xFFE03F80. Write stage
110 " B loc_FFE03B64 \n"
111 
112 "loc_FFE03C3C:\n"
113 " BL sub_FFE039E8_my \n" // --> Patched. Old value = 0xFFE039E8. Close stage
114 " B loc_FFE03B64 \n"
115 );
116 }