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

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 12 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 33 der Datei filewrite.c.

33  {
34 asm volatile (
35 " STMFD SP!, {R1-R5,LR} \n"
36 " LDR R5, =0xA9C8 \n"
37 
38 "loc_FFA892F8:\n"
39 " MOV R2, #0 \n"
40 " LDR R0, [R5, #0x10] \n"
41 " ADD R1, SP, #8 \n"
42 " BL sub_FF8397A4 /*_ReceiveMessageQueue*/ \n"
43 " CMP R0, #0 \n"
44 " LDRNE R1, =0x33F \n"
45 " LDRNE R0, =0xFFA893E4 /*'dwFWrite.c'*/ \n"
46 " BLNE _DebugAssert \n"
47 " LDR R0, [SP, #8] \n"
48 " LDR R1, [R0] \n"
49 " CMP R1, #0xA \n"
50 " ADDCC PC, PC, R1, LSL#2 \n"
51 " B loc_FFA892F8 \n"
52 " B loc_FFA893C4 \n"
53 " B loc_FFA893C4 \n"
54 " B loc_FFA893C4 \n"
55 " B loc_FFA893C4 \n"
56 " B loc_FFA893C4 \n"
57 " B loc_FFA893C4 \n"
58 " B loc_FFA893C4 \n"
59 " B loc_FFA893CC \n"
60 " B loc_FFA89354 \n"
61 " B loc_FFA893BC \n"
62 
63 "loc_FFA89354:\n"
64 " MOV R0, #0 \n"
65 " MOV R4, R5 \n"
66 " STR R0, [SP] \n"
67 
68 "loc_FFA89360:\n"
69 " LDR R0, [R4, #0x10] \n"
70 " MOV R1, SP \n"
71 " BL sub_FF8399E8 /*_GetNumberOfPostedMessages*/ \n"
72 " LDR R0, [SP] \n"
73 " CMP R0, #0 \n"
74 " BEQ loc_FFA8938C \n"
75 " LDR R0, [R4, #0x10] \n"
76 " MOV R2, #0 \n"
77 " ADD R1, SP, #4 \n"
78 " BL sub_FF8397A4 /*_ReceiveMessageQueue*/ \n"
79 " B loc_FFA89360 \n"
80 
81 "loc_FFA8938C:\n"
82 " LDR R0, [R4, #4] \n"
83 " CMN R0, #1 \n"
84 " BEQ loc_FFA893B0 \n"
85 " BL fwt_close \n" // --> Patched. Old value = _Close.
86 " MVN R0, #0 \n"
87 " STR R0, [R4, #4] \n"
88 " LDR R0, =0xF83A8 \n"
89 " BL sub_FF86F498 \n"
90 " BL sub_FF86D6C4 \n"
91 
92 "loc_FFA893B0:\n"
93 " LDR R0, [R4, #0xC] \n"
94 " BL _GiveSemaphore \n"
95 " B loc_FFA892F8 \n"
96 
97 "loc_FFA893BC:\n"
98 " BL sub_FFA895CC_my \n" // --> Patched. Old value = 0xFFA895CC. Open stage
99 " B loc_FFA892F8 \n"
100 
101 "loc_FFA893C4:\n"
102 " BL sub_FFA89714_my \n" // --> Patched. Old value = 0xFFA89714. Write stage
103 " B loc_FFA892F8 \n"
104 
105 "loc_FFA893CC:\n"
106 " BL sub_FFA8917C_my \n" // --> Patched. Old value = 0xFFA8917C. Close stage
107 " B loc_FFA892F8 \n"
108 );
109 }