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))
 *-------------------------------------------------------------------— Mehr ...
 

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, =0xAD20 \n"
39 
40 "loc_FFA908C4:\n"
41 " LDR R0, [R4, #0x10] \n"
42 " MOV R2, #0 \n"
43 " ADD R1, SP, #8 \n"
44 " BL sub_FF83994C /*_ReceiveMessageQueue*/ \n"
45 " CMP R0, #0 \n"
46 " BNE loc_FFA908F4 \n"
47 " LDR R0, [SP, #8] \n"
48 " LDR R1, [R0] \n"
49 " CMP R1, #1 \n"
50 " BNE loc_FFA908FC \n"
51 " LDR R0, [R4, #8] \n"
52 " BL _GiveSemaphore \n"
53 
54 "loc_FFA908F4:\n"
55 " BL _ExitTask \n"
56 " LDMFD SP!, {R1-R5,PC} \n"
57 
58 "loc_FFA908FC:\n"
59 " SUB R1, R1, #2 \n"
60 " CMP R1, #6 \n"
61 " ADDLS PC, PC, R1, LSL#2 \n"
62 " B loc_FFA908C4 \n"
63 " B loc_FFA90928 \n"
64 " B loc_FFA9098C \n"
65 " B loc_FFA90994 \n"
66 " B loc_FFA90994 \n"
67 " B loc_FFA90994 \n"
68 " B loc_FFA90994 \n"
69 " B loc_FFA9099C \n"
70 
71 "loc_FFA90928:\n"
72 " MOV R0, #0 \n"
73 " STR R0, [SP] \n"
74 
75 "loc_FFA90930:\n"
76 " LDR R0, [R4, #0x10] \n"
77 " MOV R1, SP \n"
78 " BL sub_FF839B90 /*_GetNumberOfPostedMessages*/ \n"
79 " LDR R0, [SP] \n"
80 " CMP R0, #0 \n"
81 " BEQ loc_FFA9095C \n"
82 " LDR R0, [R4, #0x10] \n"
83 " MOV R2, #0 \n"
84 " ADD R1, SP, #4 \n"
85 " BL sub_FF83994C /*_ReceiveMessageQueue*/ \n"
86 " B loc_FFA90930 \n"
87 
88 "loc_FFA9095C:\n"
89 " LDR R0, [R4] \n"
90 " CMN R0, #1 \n"
91 " BEQ loc_FFA90980 \n"
92 " BL fwt_close \n" // --> Patched. Old value = _Close.
93 " MVN R0, #0 \n"
94 " STR R0, [R4] \n"
95 " LDR R0, =0xDDCC4 \n"
96 " BL sub_FF87201C \n"
97 " BL sub_FF8702B8 \n"
98 
99 "loc_FFA90980:\n"
100 " LDR R0, [R4, #0xC] \n"
101 " BL _GiveSemaphore \n"
102 " B loc_FFA908C4 \n"
103 
104 "loc_FFA9098C:\n"
105 " BL sub_FFA90BAC_my \n" // --> Patched. Old value = 0xFFA90BAC. Open stage
106 " B loc_FFA908C4 \n"
107 
108 "loc_FFA90994:\n"
109 " BL sub_FFA90CE0_my \n" // --> Patched. Old value = 0xFFA90CE0. Write stage
110 " B loc_FFA908C4 \n"
111 
112 "loc_FFA9099C:\n"
113 " BL sub_FFA90748_my \n" // --> Patched. Old value = 0xFFA90748. Close stage
114 " B loc_FFA908C4 \n"
115 );
116 }