This source file includes following definitions.
- change_video_tables
- set_quality
- movie_record_task
1 #include "conf.h"
2
3 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
4
5 void set_quality(int *x){
6 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
7 }
8
9
10 void __attribute__((naked,noinline)) movie_record_task(){
11 asm volatile (
12 " STMFD SP!, {R2-R10,LR} \n"
13 " LDR R6, =0xFF1CB1AC \n"
14 " LDR R7, =0xFF1CBEA8 \n"
15 " LDR R4, =0x9BB8 \n"
16 " LDR R9, =0x6D6 \n"
17 " LDR R10, =0x2710 \n"
18 " MOV R8, #1 \n"
19 " MOV R5, #0 \n"
20 "loc_FF1CC45C:\n"
21 " LDR R0, [R4, #0x24] \n"
22 " MOV R2, #0 \n"
23 " ADD R1, SP, #4 \n"
24 " BL sub_FF02AFD0 \n"
25 " LDR R0, [R4, #0x2C] \n"
26 " CMP R0, #0 \n"
27 " LDRNE R0, [R4, #0xC] \n"
28 " CMPNE R0, #2 \n"
29 " LDRNE R0, [R4, #0x44] \n"
30 " CMPNE R0, #6 \n"
31 " BNE loc_FF1CC598 \n"
32 " LDR R0, [SP, #4] \n"
33 " LDR R1, [R0] \n"
34 " SUB R1, R1, #2 \n"
35 " CMP R1, #0xD \n"
36 " ADDCC PC, PC, R1, LSL #2 \n"
37 " B loc_FF1CC598 \n"
38 " B loc_FF1CC538 \n"
39 " B loc_FF1CC55C \n"
40 " B loc_FF1CC56C \n"
41 " B loc_FF1CC574 \n"
42 " B loc_FF1CC57C \n"
43 " B loc_FF1CC584 \n"
44 " B loc_FF1CC540 \n"
45 " B loc_FF1CC58C \n"
46 " B loc_FF1CC54C \n"
47 " B loc_FF1CC598 \n"
48 " B loc_FF1CC594 \n"
49 " B loc_FF1CC504 \n"
50 " B loc_FF1CC4D4 \n"
51 "loc_FF1CC4D4:\n"
52 " STR R5, [R4, #0x40] \n"
53 " STR R5, [R4, #0x30] \n"
54 " STR R5, [R4, #0x34] \n"
55 " STRH R5, [R4, #6] \n"
56 " STR R6, [R4, #0xD8] \n"
57 " STR R7, [R4, #0xF4] \n"
58 " LDR R0, [R4, #0xC] \n"
59 " ADD R0, R0, #1 \n"
60 " STR R0, [R4, #0xC] \n"
61 " MOV R0, #6 \n"
62 " STR R0, [R4, #0x44] \n"
63 " B loc_FF1CC524 \n"
64 "loc_FF1CC504:\n"
65 " STR R5, [R4, #0x40] \n"
66 " STR R5, [R4, #0x30] \n"
67 " STR R6, [R4, #0xD8] \n"
68 " STR R7, [R4, #0xF4] \n"
69 " LDR R0, [R4, #0xC] \n"
70 " ADD R0, R0, #1 \n"
71 " STR R0, [R4, #0xC] \n"
72 " STR R8, [R4, #0x44] \n"
73 "loc_FF1CC524:\n"
74 " LDR R2, =0xFF1CA740 \n"
75 " LDR R1, =0xC7A08 \n"
76 " LDR R0, =0xFF1CA854 \n"
77 " BL sub_FF047D68 \n"
78 " B loc_FF1CC598 \n"
79 "loc_FF1CC538:\n"
80 " BL sub_FF1CBA8C \n"
81 " B loc_FF1CC598 \n"
82 "loc_FF1CC540:\n"
83 " LDR R1, [R4, #0xF4] \n"
84 " BLX R1 \n"
85 " LDR R0, =0x9C3C \n"
86 " BL set_quality \n"
87 " B loc_FF1CC598 \n"
88 "loc_FF1CC54C:\n"
89 " LDR R1, [R0, #0x18] \n"
90 " LDR R0, [R0, #4] \n"
91 " BL sub_FF369524 \n"
92 " B loc_FF1CC598 \n"
93 "loc_FF1CC55C:\n"
94 " LDR R0, [R4, #0x44] \n"
95 " CMP R0, #5 \n"
96 " STRNE R8, [R4, #0x34] \n"
97 " B loc_FF1CC598 \n"
98 "loc_FF1CC56C:\n"
99 " BL sub_FF1CAE10 \n"
100 " B loc_FF1CC598 \n"
101 "loc_FF1CC574:\n"
102 " BL sub_FF1CAB08 \n"
103 " B loc_FF1CC598 \n"
104 "loc_FF1CC57C:\n"
105 " BL sub_FF1CA8AC \n"
106 " B loc_FF1CC598 \n"
107 "loc_FF1CC584:\n"
108 " BL sub_FF1CA4CC \n"
109 " B loc_FF1CC598 \n"
110 "loc_FF1CC58C:\n"
111 " BL sub_FF1CA44C \n"
112 " B loc_FF1CC598 \n"
113 "loc_FF1CC594:\n"
114 " BL sub_FF1CCB10 \n"
115 "loc_FF1CC598:\n"
116 " LDR R1, [SP, #4] \n"
117 " LDR R3, =0xFF1CA1A0 \n"
118 " STR R5, [R1] \n"
119 " STR R9, [SP] \n"
120 " LDR R0, [R4, #0x28] \n"
121 " MOV R2, R10 \n"
122 " BL sub_FF02B948 \n"
123 " B loc_FF1CC45C \n"
124 );
125 }
126