Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1755 | - | 1 | 1 .file "eeprom.c" |
2 | 2 .arch atmega644p |
||
3 | 3 __SREG__ = 0x3f |
||
4 | 4 __SP_H__ = 0x3e |
||
5 | 5 __SP_L__ = 0x3d |
||
6 | 6 __tmp_reg__ = 0 |
||
7 | 7 __zero_reg__ = 1 |
||
8 | 8 .global __do_copy_data |
||
9 | 9 .global __do_clear_bss |
||
10 | 10 .text |
||
11 | 11 .global RAM_Checksum |
||
12 | 13 RAM_Checksum: |
||
13 | 14 /* prologue: frame size=0 */ |
||
14 | 15 /* prologue end (size=0) */ |
||
15 | 16 0000 4AEA ldi r20,lo8(-86) |
||
16 | 17 0002 20E0 ldi r18,lo8(0) |
||
17 | 18 0004 30E0 ldi r19,hi8(0) |
||
18 | 19 0006 2617 cp r18,r22 |
||
19 | 20 0008 3707 cpc r19,r23 |
||
20 | 21 000a 40F4 brsh .L7 |
||
21 | 22 000c FC01 movw r30,r24 |
||
22 | 23 .L5: |
||
23 | 24 000e 8191 ld r24,Z+ |
||
24 | 25 0010 480F add r20,r24 |
||
25 | 26 0012 2F5F subi r18,lo8(-(1)) |
||
26 | 27 0014 3F4F sbci r19,hi8(-(1)) |
||
27 | 28 0016 2617 cp r18,r22 |
||
28 | 29 0018 3707 cpc r19,r23 |
||
29 | 30 001a C8F3 brlo .L5 |
||
30 | 31 .L7: |
||
31 | 32 001c 842F mov r24,r20 |
||
32 | 33 001e 9927 clr r25 |
||
33 | 34 /* epilogue: frame size=0 */ |
||
34 | 35 0020 0895 ret |
||
35 | 36 /* epilogue end (size=1) */ |
||
36 | 37 /* function RAM_Checksum size 17 (16) */ |
||
37 | 39 .global EEProm_Checksum |
||
38 | 41 EEProm_Checksum: |
||
39 | 42 /* prologue: frame size=0 */ |
||
40 | 43 /* prologue end (size=0) */ |
||
41 | 44 0022 AC01 movw r20,r24 |
||
42 | 45 0024 9AEA ldi r25,lo8(-86) |
||
43 | 46 0026 20E0 ldi r18,lo8(0) |
||
44 | 47 0028 30E0 ldi r19,hi8(0) |
||
45 | 48 .L16: |
||
46 | 49 002a 2617 cp r18,r22 |
||
47 | 50 002c 3707 cpc r19,r23 |
||
48 | 51 002e 50F4 brsh .L15 |
||
49 | 52 0030 DA01 movw r26,r20 |
||
50 | 53 0032 A20F add r26,r18 |
||
51 | 54 0034 B31F adc r27,r19 |
||
52 | 55 /* #APP */ |
||
53 | 56 0036 0E94 0000 call __eeprom_read_byte_1F2021 |
||
54 | 57 003a 802D mov r24,__tmp_reg__ |
||
55 | 58 /* #NOAPP */ |
||
56 | 59 003c 980F add r25,r24 |
||
57 | 60 003e 2F5F subi r18,lo8(-(1)) |
||
58 | 61 0040 3F4F sbci r19,hi8(-(1)) |
||
59 | 62 0042 F3CF rjmp .L16 |
||
60 | 63 .L15: |
||
61 | 64 0044 892F mov r24,r25 |
||
62 | 65 0046 9927 clr r25 |
||
63 | 66 /* epilogue: frame size=0 */ |
||
64 | 67 0048 0895 ret |
||
65 | 68 /* epilogue end (size=1) */ |
||
66 | 69 /* function EEProm_Checksum size 21 (20) */ |
||
67 | 71 .global ParamSet_DefaultStickMapping |
||
68 | 73 ParamSet_DefaultStickMapping: |
||
69 | 74 /* prologue: frame size=0 */ |
||
70 | 75 /* prologue end (size=0) */ |
||
71 | 76 004a 81E0 ldi r24,lo8(1) |
||
72 | 77 004c 8093 0000 sts EE_Parameter+3,r24 |
||
73 | 78 0050 82E0 ldi r24,lo8(2) |
||
74 | 79 0052 8093 0000 sts EE_Parameter+2,r24 |
||
75 | 80 0056 83E0 ldi r24,lo8(3) |
||
76 | 81 0058 8093 0000 sts EE_Parameter+1,r24 |
||
77 | 82 005c 84E0 ldi r24,lo8(4) |
||
78 | 83 005e 8093 0000 sts EE_Parameter+4,r24 |
||
79 | 84 0062 85E0 ldi r24,lo8(5) |
||
80 | 85 0064 8093 0000 sts EE_Parameter+5,r24 |
||
81 | 86 0068 86E0 ldi r24,lo8(6) |
||
82 | 87 006a 8093 0000 sts EE_Parameter+6,r24 |
||
83 | 88 006e 87E0 ldi r24,lo8(7) |
||
84 | 89 0070 8093 0000 sts EE_Parameter+7,r24 |
||
85 | 90 0074 88E0 ldi r24,lo8(8) |
||
86 | 91 0076 8093 0000 sts EE_Parameter+8,r24 |
||
87 | 92 007a 89E0 ldi r24,lo8(9) |
||
88 | 93 007c 8093 0000 sts EE_Parameter+9,r24 |
||
89 | 94 0080 8AE0 ldi r24,lo8(10) |
||
90 | 95 0082 8093 0000 sts EE_Parameter+10,r24 |
||
91 | 96 0086 8BE0 ldi r24,lo8(11) |
||
92 | 97 0088 8093 0000 sts EE_Parameter+11,r24 |
||
93 | 98 008c 8CE0 ldi r24,lo8(12) |
||
94 | 99 008e 8093 0000 sts EE_Parameter+12,r24 |
||
95 | 100 /* epilogue: frame size=0 */ |
||
96 | 101 0092 0895 ret |
||
97 | 102 /* epilogue end (size=1) */ |
||
98 | 103 /* function ParamSet_DefaultStickMapping size 37 (36) */ |
||
99 | 105 .data |
||
100 | 106 .LC0: |
||
101 | 107 0000 5370 6F72 .string "Sport" |
||
102 | 107 7400 |
||
103 | 108 0006 00 .string "" |
||
104 | 109 .text |
||
105 | 110 .global ParamSet_DefaultSet1 |
||
106 | 112 ParamSet_DefaultSet1: |
||
107 | 113 /* prologue: frame size=0 */ |
||
108 | 114 0094 1F93 push r17 |
||
109 | 115 0096 CF93 push r28 |
||
110 | 116 0098 DF93 push r29 |
||
111 | 117 /* prologue end (size=3) */ |
||
112 | 118 009a 84E5 ldi r24,lo8(84) |
||
113 | 119 009c 8093 0000 sts EE_Parameter,r24 |
||
114 | 120 00a0 8091 0000 lds r24,PlatinenVersion |
||
115 | 121 00a4 8431 cpi r24,lo8(20) |
||
116 | 122 00a6 50F0 brlo .L19 |
||
117 | 123 00a8 8AE0 ldi r24,lo8(10) |
||
118 | 124 00aa 8093 0000 sts EE_Parameter+32,r24 |
||
119 | 125 00ae 1092 0000 sts EE_Parameter+66,__zero_reg__ |
||
120 | 126 00b2 8BE1 ldi r24,lo8(27) |
||
121 | 127 00b4 8093 0000 sts EE_Parameter+28,r24 |
||
122 | 128 00b8 8EE4 ldi r24,lo8(78) |
||
123 | 129 00ba 0AC0 rjmp .L21 |
||
124 | 130 .L19: |
||
125 | 131 00bc 83E0 ldi r24,lo8(3) |
||
126 | 132 00be 8093 0000 sts EE_Parameter+32,r24 |
||
127 | 133 00c2 80E2 ldi r24,lo8(32) |
||
128 | 134 00c4 8093 0000 sts EE_Parameter+66,r24 |
||
129 | 135 00c8 8EE1 ldi r24,lo8(30) |
||
130 | 136 00ca 8093 0000 sts EE_Parameter+28,r24 |
||
131 | 137 00ce 85E5 ldi r24,lo8(85) |
||
132 | 138 .L21: |
||
133 | 139 00d0 8093 0000 sts EE_Parameter+63,r24 |
||
134 | 140 00d4 8093 0000 sts EE_Parameter+64,r24 |
||
135 | 141 00d8 8AE6 ldi r24,lo8(106) |
||
136 | 142 00da 8093 0000 sts EE_Parameter+13,r24 |
||
137 | 143 00de 83E0 ldi r24,lo8(3) |
||
138 | 144 00e0 8093 0000 sts EE_Parameter+99,r24 |
||
139 | 145 00e4 AEE1 ldi r26,lo8(30) |
||
140 | 146 00e6 A093 0000 sts EE_Parameter+14,r26 |
||
141 | 147 00ea 8FEF ldi r24,lo8(-1) |
||
142 | 148 00ec 8093 0000 sts EE_Parameter+16,r24 |
||
143 | 149 00f0 EFE0 ldi r30,lo8(15) |
||
144 | 150 00f2 E093 0000 sts EE_Parameter+17,r30 |
||
145 | 151 00f6 A093 0000 sts EE_Parameter+15,r26 |
||
146 | 152 00fa 1092 0000 sts EE_Parameter+19,__zero_reg__ |
||
147 | 153 00fe F8E0 ldi r31,lo8(8) |
||
148 | 154 0100 F093 0000 sts EE_Parameter+20,r31 |
||
149 | 155 0104 80E4 ldi r24,lo8(64) |
||
150 | 156 0106 8093 0000 sts EE_Parameter+21,r24 |
||
151 | 157 010a 1092 0000 sts EE_Parameter+22,__zero_reg__ |
||
152 | 158 010e 84E1 ldi r24,lo8(20) |
||
153 | 159 0110 8093 0000 sts EE_Parameter+18,r24 |
||
154 | 160 0114 8EE0 ldi r24,lo8(14) |
||
155 | 161 0116 8093 0000 sts EE_Parameter+23,r24 |
||
156 | 162 011a B0E1 ldi r27,lo8(16) |
||
157 | 163 011c B093 0000 sts EE_Parameter+24,r27 |
||
158 | 164 0120 1CE0 ldi r17,lo8(12) |
||
159 | 165 0122 1093 0000 sts EE_Parameter+25,r17 |
||
160 | 166 0126 F093 0000 sts EE_Parameter+26,r31 |
||
161 | 167 012a 86EE ldi r24,lo8(-26) |
||
162 | 168 012c 8093 0000 sts EE_Parameter+27,r24 |
||
163 | 169 0130 80E8 ldi r24,lo8(-128) |
||
164 | 170 0132 8093 0000 sts EE_Parameter+29,r24 |
||
165 | 171 0136 50E5 ldi r21,lo8(80) |
||
166 | 172 0138 5093 0000 sts EE_Parameter+30,r21 |
||
167 | 173 013c 86E9 ldi r24,lo8(-106) |
||
168 | 174 013e 8093 0000 sts EE_Parameter+31,r24 |
||
169 | 175 0142 5093 0000 sts EE_Parameter+33,r21 |
||
170 | 176 0146 8093 0000 sts EE_Parameter+34,r24 |
||
171 | 177 014a 76E0 ldi r23,lo8(6) |
||
172 | 178 014c 7093 0000 sts EE_Parameter+35,r23 |
||
173 | 179 0150 81E2 ldi r24,lo8(33) |
||
174 | 180 0152 8093 0000 sts EE_Parameter+36,r24 |
||
175 | 181 0156 8DE2 ldi r24,lo8(45) |
||
176 | 182 0158 8093 0000 sts EE_Parameter+37,r24 |
||
177 | 183 015c 9AE5 ldi r25,lo8(90) |
||
178 | 184 015e 9093 0000 sts EE_Parameter+38,r25 |
||
179 | 185 0162 80E2 ldi r24,lo8(32) |
||
180 | 186 0164 8093 0000 sts EE_Parameter+40,r24 |
||
181 | 187 0168 1092 0000 sts EE_Parameter+41,__zero_reg__ |
||
182 | 188 016c 1092 0000 sts EE_Parameter+42,__zero_reg__ |
||
183 | 189 0170 1092 0000 sts EE_Parameter+43,__zero_reg__ |
||
184 | 190 0174 1092 0000 sts EE_Parameter+44,__zero_reg__ |
||
185 | 191 0178 1092 0000 sts EE_Parameter+68,__zero_reg__ |
||
186 | 192 017c 1092 0000 sts EE_Parameter+69,__zero_reg__ |
||
187 | 193 0180 1092 0000 sts EE_Parameter+70,__zero_reg__ |
||
188 | 194 0184 1092 0000 sts EE_Parameter+71,__zero_reg__ |
||
189 | 195 0188 34E6 ldi r19,lo8(100) |
||
190 | 196 018a 3093 0000 sts EE_Parameter+45,r19 |
||
191 | 197 018e 48E2 ldi r20,lo8(40) |
||
192 | 198 0190 4093 0000 sts EE_Parameter+46,r20 |
||
193 | 199 0194 61E0 ldi r22,lo8(1) |
||
194 | 200 0196 6093 0000 sts EE_Parameter+98,r22 |
||
195 | 201 019a 1092 0000 sts EE_Parameter+47,__zero_reg__ |
||
196 | 202 019e 27EF ldi r18,lo8(-9) |
||
197 | 203 01a0 2093 0000 sts EE_Parameter+48,r18 |
||
198 | 204 01a4 7093 0000 sts EE_Parameter+53,r23 |
||
199 | 205 01a8 8DE7 ldi r24,lo8(125) |
||
200 | 206 01aa 8093 0000 sts EE_Parameter+54,r24 |
||
201 | 207 01ae 8093 0000 sts EE_Parameter+55,r24 |
||
202 | 208 01b2 8093 0000 sts EE_Parameter+56,r24 |
||
203 | 209 01b6 3093 0000 sts EE_Parameter+49,r19 |
||
204 | 210 01ba 4093 0000 sts EE_Parameter+50,r20 |
||
205 | 211 01be 1092 0000 sts EE_Parameter+51,__zero_reg__ |
||
206 | 212 01c2 2093 0000 sts EE_Parameter+52,r18 |
||
207 | 213 01c6 82E3 ldi r24,lo8(50) |
||
208 | 214 01c8 8093 0000 sts EE_Parameter+57,r24 |
||
209 | 215 01cc 9093 0000 sts EE_Parameter+58,r25 |
||
210 | 216 01d0 8093 0000 sts EE_Parameter+59,r24 |
||
211 | 217 01d4 1092 0000 sts EE_Parameter+97,__zero_reg__ |
||
212 | 218 01d8 9093 0000 sts EE_Parameter+60,r25 |
||
213 | 219 01dc 5093 0000 sts EE_Parameter+61,r21 |
||
214 | 220 01e0 6093 0000 sts EE_Parameter+62,r22 |
||
215 | 221 01e4 B093 0000 sts EE_Parameter+65,r27 |
||
216 | 222 01e8 3093 0000 sts EE_Parameter+67,r19 |
||
217 | 223 01ec 8FE5 ldi r24,lo8(95) |
||
218 | 224 01ee 8093 0000 sts EE_Parameter+72,r24 |
||
219 | 225 01f2 83EF ldi r24,lo8(-13) |
||
220 | 226 01f4 8093 0000 sts EE_Parameter+74,r24 |
||
221 | 227 01f8 8AEA ldi r24,lo8(-86) |
||
222 | 228 01fa 8093 0000 sts EE_Parameter+76,r24 |
||
223 | 229 01fe 8093 0000 sts EE_Parameter+77,r24 |
||
224 | 230 0202 E093 0000 sts EE_Parameter+73,r30 |
||
225 | 231 0206 E093 0000 sts EE_Parameter+75,r30 |
||
226 | 232 020a 8EEF ldi r24,lo8(-2) |
||
227 | 233 020c 8093 0000 sts EE_Parameter+78,r24 |
||
228 | 234 0210 3093 0000 sts EE_Parameter+79,r19 |
||
229 | 235 0214 9093 0000 sts EE_Parameter+80,r25 |
||
230 | 236 0218 9093 0000 sts EE_Parameter+81,r25 |
||
231 | 237 021c 9093 0000 sts EE_Parameter+82,r25 |
||
232 | 238 0220 8BE4 ldi r24,lo8(75) |
||
233 | 239 0222 8093 0000 sts EE_Parameter+83,r24 |
||
234 | 240 0226 8093 0000 sts EE_Parameter+84,r24 |
||
235 | 241 022a 8093 0000 sts EE_Parameter+85,r24 |
||
236 | 242 022e 1092 0000 sts EE_Parameter+86,__zero_reg__ |
||
237 | 243 0232 7093 0000 sts EE_Parameter+87,r23 |
||
238 | 244 0236 F093 0000 sts EE_Parameter+88,r31 |
||
239 | 245 023a 9093 0000 sts EE_Parameter+89,r25 |
||
240 | 246 023e A093 0000 sts EE_Parameter+90,r26 |
||
241 | 247 0242 3093 0000 sts EE_Parameter+91,r19 |
||
242 | 248 0246 3093 0000 sts EE_Parameter+92,r19 |
||
243 | 249 024a 82E0 ldi r24,lo8(2) |
||
244 | 250 024c 8093 0000 sts EE_Parameter+93,r24 |
||
245 | 251 0250 6093 0000 sts EE_Parameter+39,r22 |
||
246 | 252 0254 1092 0000 sts EE_Parameter+95,__zero_reg__ |
||
247 | 253 0258 1092 0000 sts EE_Parameter+96,__zero_reg__ |
||
248 | 254 025c A0E0 ldi r26,lo8(EE_Parameter+100) |
||
249 | 255 025e B0E0 ldi r27,hi8(EE_Parameter+100) |
||
250 | 256 0260 E0E0 ldi r30,lo8(.LC0) |
||
251 | 257 0262 F0E0 ldi r31,hi8(.LC0) |
||
252 | 258 0264 ED01 movw r28,r26 |
||
253 | 259 0266 0190 ld __tmp_reg__,Z+ |
||
254 | 260 0268 0992 st Y+,__tmp_reg__ |
||
255 | 261 026a 1A95 dec r17 |
||
256 | 262 026c E1F7 brne .-8 |
||
257 | 263 026e 60E7 ldi r22,lo8(112) |
||
258 | 264 0270 70E0 ldi r23,hi8(112) |
||
259 | 265 0272 CD01 movw r24,r26 |
||
260 | 266 0274 8456 subi r24,lo8(-(-100)) |
||
261 | 267 0276 9040 sbci r25,hi8(-(-100)) |
||
262 | 268 0278 0E94 0000 call RAM_Checksum |
||
263 | 269 027c 8093 0000 sts EE_Parameter+112,r24 |
||
264 | 270 /* epilogue: frame size=0 */ |
||
265 | 271 0280 DF91 pop r29 |
||
266 | 272 0282 CF91 pop r28 |
||
267 | 273 0284 1F91 pop r17 |
||
268 | 274 0286 0895 ret |
||
269 | 275 /* epilogue end (size=4) */ |
||
270 | 276 /* function ParamSet_DefaultSet1 size 250 (243) */ |
||
271 | 278 .data |
||
272 | 279 .LC1: |
||
273 | 280 0007 4E6F 726D .string "Normal" |
||
274 | 280 616C 00 |
||
275 | 281 000e 00 .string "" |
||
276 | 282 .text |
||
277 | 283 .global ParamSet_DefaultSet2 |
||
278 | 285 ParamSet_DefaultSet2: |
||
279 | 286 /* prologue: frame size=0 */ |
||
280 | 287 0288 CF93 push r28 |
||
281 | 288 028a DF93 push r29 |
||
282 | 289 /* prologue end (size=2) */ |
||
283 | 290 028c 84E5 ldi r24,lo8(84) |
||
284 | 291 028e 8093 0000 sts EE_Parameter,r24 |
||
285 | 292 0292 8091 0000 lds r24,PlatinenVersion |
||
286 | 293 0296 8431 cpi r24,lo8(20) |
||
287 | 294 0298 50F0 brlo .L23 |
||
288 | 295 029a 8AE0 ldi r24,lo8(10) |
||
289 | 296 029c 8093 0000 sts EE_Parameter+32,r24 |
||
290 | 297 02a0 1092 0000 sts EE_Parameter+66,__zero_reg__ |
||
291 | 298 02a4 8BE1 ldi r24,lo8(27) |
||
292 | 299 02a6 8093 0000 sts EE_Parameter+28,r24 |
||
293 | 300 02aa 8EE4 ldi r24,lo8(78) |
||
294 | 301 02ac 0AC0 rjmp .L25 |
||
295 | 302 .L23: |
||
296 | 303 02ae 83E0 ldi r24,lo8(3) |
||
297 | 304 02b0 8093 0000 sts EE_Parameter+32,r24 |
||
298 | 305 02b4 80E2 ldi r24,lo8(32) |
||
299 | 306 02b6 8093 0000 sts EE_Parameter+66,r24 |
||
300 | 307 02ba 8EE1 ldi r24,lo8(30) |
||
301 | 308 02bc 8093 0000 sts EE_Parameter+28,r24 |
||
302 | 309 02c0 85E5 ldi r24,lo8(85) |
||
303 | 310 .L25: |
||
304 | 311 02c2 8093 0000 sts EE_Parameter+63,r24 |
||
305 | 312 02c6 8093 0000 sts EE_Parameter+64,r24 |
||
306 | 313 02ca 8AE6 ldi r24,lo8(106) |
||
307 | 314 02cc 8093 0000 sts EE_Parameter+13,r24 |
||
308 | 315 02d0 83E0 ldi r24,lo8(3) |
||
309 | 316 02d2 8093 0000 sts EE_Parameter+99,r24 |
||
310 | 317 02d6 7EE1 ldi r23,lo8(30) |
||
311 | 318 02d8 7093 0000 sts EE_Parameter+14,r23 |
||
312 | 319 02dc 8FEF ldi r24,lo8(-1) |
||
313 | 320 02de 8093 0000 sts EE_Parameter+16,r24 |
||
314 | 321 02e2 9FE0 ldi r25,lo8(15) |
||
315 | 322 02e4 9093 0000 sts EE_Parameter+17,r25 |
||
316 | 323 02e8 7093 0000 sts EE_Parameter+15,r23 |
||
317 | 324 02ec 1092 0000 sts EE_Parameter+19,__zero_reg__ |
||
318 | 325 02f0 68E0 ldi r22,lo8(8) |
||
319 | 326 02f2 6093 0000 sts EE_Parameter+20,r22 |
||
320 | 327 02f6 80E4 ldi r24,lo8(64) |
||
321 | 328 02f8 8093 0000 sts EE_Parameter+21,r24 |
||
322 | 329 02fc 1092 0000 sts EE_Parameter+22,__zero_reg__ |
||
323 | 330 0300 9093 0000 sts EE_Parameter+18,r25 |
||
324 | 331 0304 8AE0 ldi r24,lo8(10) |
||
325 | 332 0306 8093 0000 sts EE_Parameter+23,r24 |
||
326 | 333 030a 80E1 ldi r24,lo8(16) |
||
327 | 334 030c 8093 0000 sts EE_Parameter+24,r24 |
||
328 | 335 0310 56E0 ldi r21,lo8(6) |
||
329 | 336 0312 5093 0000 sts EE_Parameter+25,r21 |
||
330 | 337 0316 6093 0000 sts EE_Parameter+26,r22 |
||
331 | 338 031a 86EE ldi r24,lo8(-26) |
||
332 | 339 031c 8093 0000 sts EE_Parameter+27,r24 |
||
333 | 340 0320 80E8 ldi r24,lo8(-128) |
||
334 | 341 0322 8093 0000 sts EE_Parameter+29,r24 |
||
335 | 342 0326 2AE5 ldi r18,lo8(90) |
||
336 | 343 0328 2093 0000 sts EE_Parameter+30,r18 |
||
337 | 344 032c 88E7 ldi r24,lo8(120) |
||
338 | 345 032e 8093 0000 sts EE_Parameter+31,r24 |
||
339 | 346 0332 2093 0000 sts EE_Parameter+33,r18 |
||
340 | 347 0336 8093 0000 sts EE_Parameter+34,r24 |
||
341 | 348 033a 5093 0000 sts EE_Parameter+35,r21 |
||
342 | 349 033e 81E2 ldi r24,lo8(33) |
||
343 | 350 0340 8093 0000 sts EE_Parameter+36,r24 |
||
344 | 351 0344 8DE2 ldi r24,lo8(45) |
||
345 | 352 0346 8093 0000 sts EE_Parameter+37,r24 |
||
346 | 353 034a 2093 0000 sts EE_Parameter+38,r18 |
||
347 | 354 034e E0E2 ldi r30,lo8(32) |
||
348 | 355 0350 E093 0000 sts EE_Parameter+40,r30 |
||
349 | 356 0354 1092 0000 sts EE_Parameter+41,__zero_reg__ |
||
350 | 357 0358 1092 0000 sts EE_Parameter+42,__zero_reg__ |
||
351 | 358 035c 1092 0000 sts EE_Parameter+43,__zero_reg__ |
||
352 | 359 0360 1092 0000 sts EE_Parameter+44,__zero_reg__ |
||
353 | 360 0364 1092 0000 sts EE_Parameter+68,__zero_reg__ |
||
354 | 361 0368 1092 0000 sts EE_Parameter+69,__zero_reg__ |
||
355 | 362 036c 1092 0000 sts EE_Parameter+70,__zero_reg__ |
||
356 | 363 0370 1092 0000 sts EE_Parameter+71,__zero_reg__ |
||
357 | 364 0374 44E6 ldi r20,lo8(100) |
||
358 | 365 0376 4093 0000 sts EE_Parameter+45,r20 |
||
359 | 366 037a 38E2 ldi r19,lo8(40) |
||
360 | 367 037c 3093 0000 sts EE_Parameter+46,r19 |
||
361 | 368 0380 F1E0 ldi r31,lo8(1) |
||
362 | 369 0382 F093 0000 sts EE_Parameter+98,r31 |
||
363 | 370 0386 1092 0000 sts EE_Parameter+47,__zero_reg__ |
||
364 | 371 038a 97EF ldi r25,lo8(-9) |
||
365 | 372 038c 9093 0000 sts EE_Parameter+48,r25 |
||
366 | 373 0390 5093 0000 sts EE_Parameter+53,r21 |
||
367 | 374 0394 8DE7 ldi r24,lo8(125) |
||
368 | 375 0396 8093 0000 sts EE_Parameter+54,r24 |
||
369 | 376 039a 8093 0000 sts EE_Parameter+55,r24 |
||
370 | 377 039e 8093 0000 sts EE_Parameter+56,r24 |
||
371 | 378 03a2 4093 0000 sts EE_Parameter+49,r20 |
||
372 | 379 03a6 3093 0000 sts EE_Parameter+50,r19 |
||
373 | 380 03aa 1092 0000 sts EE_Parameter+51,__zero_reg__ |
||
374 | 381 03ae 9093 0000 sts EE_Parameter+52,r25 |
||
375 | 382 03b2 82E3 ldi r24,lo8(50) |
||
376 | 383 03b4 8093 0000 sts EE_Parameter+57,r24 |
||
377 | 384 03b8 2093 0000 sts EE_Parameter+58,r18 |
||
378 | 385 03bc 8093 0000 sts EE_Parameter+59,r24 |
||
379 | 386 03c0 1092 0000 sts EE_Parameter+97,__zero_reg__ |
||
380 | 387 03c4 2093 0000 sts EE_Parameter+60,r18 |
||
381 | 388 03c8 80E5 ldi r24,lo8(80) |
||
382 | 389 03ca 8093 0000 sts EE_Parameter+61,r24 |
||
383 | 390 03ce 8CE3 ldi r24,lo8(60) |
||
384 | 391 03d0 8093 0000 sts EE_Parameter+62,r24 |
||
385 | 392 03d4 E093 0000 sts EE_Parameter+65,r30 |
||
386 | 393 03d8 9BE4 ldi r25,lo8(75) |
||
387 | 394 03da 9093 0000 sts EE_Parameter+67,r25 |
||
388 | 395 03de 8FE5 ldi r24,lo8(95) |
||
389 | 396 03e0 8093 0000 sts EE_Parameter+72,r24 |
||
390 | 397 03e4 83EF ldi r24,lo8(-13) |
||
391 | 398 03e6 8093 0000 sts EE_Parameter+74,r24 |
||
392 | 399 03ea 8AEA ldi r24,lo8(-86) |
||
393 | 400 03ec 8093 0000 sts EE_Parameter+76,r24 |
||
394 | 401 03f0 8093 0000 sts EE_Parameter+77,r24 |
||
395 | 402 03f4 84E1 ldi r24,lo8(20) |
||
396 | 403 03f6 8093 0000 sts EE_Parameter+73,r24 |
||
397 | 404 03fa 8093 0000 sts EE_Parameter+75,r24 |
||
398 | 405 03fe 8EEF ldi r24,lo8(-2) |
||
399 | 406 0400 8093 0000 sts EE_Parameter+78,r24 |
||
400 | 407 0404 4093 0000 sts EE_Parameter+79,r20 |
||
401 | 408 0408 2093 0000 sts EE_Parameter+80,r18 |
||
402 | 409 040c 2093 0000 sts EE_Parameter+81,r18 |
||
403 | 410 0410 2093 0000 sts EE_Parameter+82,r18 |
||
404 | 411 0414 9093 0000 sts EE_Parameter+83,r25 |
||
405 | 412 0418 9093 0000 sts EE_Parameter+84,r25 |
||
406 | 413 041c 9093 0000 sts EE_Parameter+85,r25 |
||
407 | 414 0420 1092 0000 sts EE_Parameter+86,__zero_reg__ |
||
408 | 415 0424 5093 0000 sts EE_Parameter+87,r21 |
||
409 | 416 0428 6093 0000 sts EE_Parameter+88,r22 |
||
410 | 417 042c 2093 0000 sts EE_Parameter+89,r18 |
||
411 | 418 0430 7093 0000 sts EE_Parameter+90,r23 |
||
412 | 419 0434 4093 0000 sts EE_Parameter+91,r20 |
||
413 | 420 0438 4093 0000 sts EE_Parameter+92,r20 |
||
414 | 421 043c 82E0 ldi r24,lo8(2) |
||
415 | 422 043e 8093 0000 sts EE_Parameter+93,r24 |
||
416 | 423 0442 F093 0000 sts EE_Parameter+39,r31 |
||
417 | 424 0446 1092 0000 sts EE_Parameter+95,__zero_reg__ |
||
418 | 425 044a 1092 0000 sts EE_Parameter+96,__zero_reg__ |
||
419 | 426 044e A0E0 ldi r26,lo8(EE_Parameter+100) |
||
420 | 427 0450 B0E0 ldi r27,hi8(EE_Parameter+100) |
||
421 | 428 0452 8CE0 ldi r24,lo8(12) |
||
422 | 429 0454 E0E0 ldi r30,lo8(.LC1) |
||
423 | 430 0456 F0E0 ldi r31,hi8(.LC1) |
||
424 | 431 0458 ED01 movw r28,r26 |
||
425 | 432 045a 0190 ld __tmp_reg__,Z+ |
||
426 | 433 045c 0992 st Y+,__tmp_reg__ |
||
427 | 434 045e 8A95 dec r24 |
||
428 | 435 0460 E1F7 brne .-8 |
||
429 | 436 0462 60E7 ldi r22,lo8(112) |
||
430 | 437 0464 70E0 ldi r23,hi8(112) |
||
431 | 438 0466 CD01 movw r24,r26 |
||
432 | 439 0468 8456 subi r24,lo8(-(-100)) |
||
433 | 440 046a 9040 sbci r25,hi8(-(-100)) |
||
434 | 441 046c 0E94 0000 call RAM_Checksum |
||
435 | 442 0470 8093 0000 sts EE_Parameter+112,r24 |
||
436 | 443 /* epilogue: frame size=0 */ |
||
437 | 444 0474 DF91 pop r29 |
||
438 | 445 0476 CF91 pop r28 |
||
439 | 446 0478 0895 ret |
||
440 | 447 /* epilogue end (size=3) */ |
||
441 | 448 /* function ParamSet_DefaultSet2 size 249 (244) */ |
||
442 | 450 .data |
||
443 | 451 .LC2: |
||
444 | 452 000f 4265 6769 .string "Beginner" |
||
445 | 452 6E6E 6572 |
||
446 | 452 00 |
||
447 | 453 0018 00 .string "" |
||
448 | 454 .text |
||
449 | 455 .global ParamSet_DefaultSet3 |
||
450 | 457 ParamSet_DefaultSet3: |
||
451 | 458 /* prologue: frame size=0 */ |
||
452 | 459 047a CF93 push r28 |
||
453 | 460 047c DF93 push r29 |
||
454 | 461 /* prologue end (size=2) */ |
||
455 | 462 047e 84E5 ldi r24,lo8(84) |
||
456 | 463 0480 8093 0000 sts EE_Parameter,r24 |
||
457 | 464 0484 8091 0000 lds r24,PlatinenVersion |
||
458 | 465 0488 8431 cpi r24,lo8(20) |
||
459 | 466 048a 50F0 brlo .L27 |
||
460 | 467 048c 8AE0 ldi r24,lo8(10) |
||
461 | 468 048e 8093 0000 sts EE_Parameter+32,r24 |
||
462 | 469 0492 1092 0000 sts EE_Parameter+66,__zero_reg__ |
||
463 | 470 0496 8BE1 ldi r24,lo8(27) |
||
464 | 471 0498 8093 0000 sts EE_Parameter+28,r24 |
||
465 | 472 049c 8EE4 ldi r24,lo8(78) |
||
466 | 473 049e 0AC0 rjmp .L29 |
||
467 | 474 .L27: |
||
468 | 475 04a0 83E0 ldi r24,lo8(3) |
||
469 | 476 04a2 8093 0000 sts EE_Parameter+32,r24 |
||
470 | 477 04a6 80E2 ldi r24,lo8(32) |
||
471 | 478 04a8 8093 0000 sts EE_Parameter+66,r24 |
||
472 | 479 04ac 8EE1 ldi r24,lo8(30) |
||
473 | 480 04ae 8093 0000 sts EE_Parameter+28,r24 |
||
474 | 481 04b2 85E5 ldi r24,lo8(85) |
||
475 | 482 .L29: |
||
476 | 483 04b4 8093 0000 sts EE_Parameter+63,r24 |
||
477 | 484 04b8 8093 0000 sts EE_Parameter+64,r24 |
||
478 | 485 04bc 8AE6 ldi r24,lo8(106) |
||
479 | 486 04be 8093 0000 sts EE_Parameter+13,r24 |
||
480 | 487 04c2 83E0 ldi r24,lo8(3) |
||
481 | 488 04c4 8093 0000 sts EE_Parameter+99,r24 |
||
482 | 489 04c8 6EE1 ldi r22,lo8(30) |
||
483 | 490 04ca 6093 0000 sts EE_Parameter+14,r22 |
||
484 | 491 04ce 8FEF ldi r24,lo8(-1) |
||
485 | 492 04d0 8093 0000 sts EE_Parameter+16,r24 |
||
486 | 493 04d4 9FE0 ldi r25,lo8(15) |
||
487 | 494 04d6 9093 0000 sts EE_Parameter+17,r25 |
||
488 | 495 04da 6093 0000 sts EE_Parameter+15,r22 |
||
489 | 496 04de 1092 0000 sts EE_Parameter+19,__zero_reg__ |
||
490 | 497 04e2 78E0 ldi r23,lo8(8) |
||
491 | 498 04e4 7093 0000 sts EE_Parameter+20,r23 |
||
492 | 499 04e8 80E4 ldi r24,lo8(64) |
||
493 | 500 04ea 8093 0000 sts EE_Parameter+21,r24 |
||
494 | 501 04ee 1092 0000 sts EE_Parameter+22,__zero_reg__ |
||
495 | 502 04f2 9093 0000 sts EE_Parameter+18,r25 |
||
496 | 503 04f6 7093 0000 sts EE_Parameter+23,r23 |
||
497 | 504 04fa 90E1 ldi r25,lo8(16) |
||
498 | 505 04fc 9093 0000 sts EE_Parameter+24,r25 |
||
499 | 506 0500 56E0 ldi r21,lo8(6) |
||
500 | 507 0502 5093 0000 sts EE_Parameter+25,r21 |
||
501 | 508 0506 7093 0000 sts EE_Parameter+26,r23 |
||
502 | 509 050a 86EE ldi r24,lo8(-26) |
||
503 | 510 050c 8093 0000 sts EE_Parameter+27,r24 |
||
504 | 511 0510 80E8 ldi r24,lo8(-128) |
||
505 | 512 0512 8093 0000 sts EE_Parameter+29,r24 |
||
506 | 513 0516 34E6 ldi r19,lo8(100) |
||
507 | 514 0518 3093 0000 sts EE_Parameter+30,r19 |
||
508 | 515 051c 88E7 ldi r24,lo8(120) |
||
509 | 516 051e 8093 0000 sts EE_Parameter+31,r24 |
||
510 | 517 0522 3093 0000 sts EE_Parameter+33,r19 |
||
511 | 518 0526 8093 0000 sts EE_Parameter+34,r24 |
||
512 | 519 052a 5093 0000 sts EE_Parameter+35,r21 |
||
513 | 520 052e 81E2 ldi r24,lo8(33) |
||
514 | 521 0530 8093 0000 sts EE_Parameter+36,r24 |
||
515 | 522 0534 8DE2 ldi r24,lo8(45) |
||
516 | 523 0536 8093 0000 sts EE_Parameter+37,r24 |
||
517 | 524 053a 2AE5 ldi r18,lo8(90) |
||
518 | 525 053c 2093 0000 sts EE_Parameter+38,r18 |
||
519 | 526 0540 9093 0000 sts EE_Parameter+40,r25 |
||
520 | 527 0544 1092 0000 sts EE_Parameter+41,__zero_reg__ |
||
521 | 528 0548 1092 0000 sts EE_Parameter+42,__zero_reg__ |
||
522 | 529 054c 1092 0000 sts EE_Parameter+43,__zero_reg__ |
||
523 | 530 0550 1092 0000 sts EE_Parameter+44,__zero_reg__ |
||
524 | 531 0554 1092 0000 sts EE_Parameter+68,__zero_reg__ |
||
525 | 532 0558 1092 0000 sts EE_Parameter+69,__zero_reg__ |
||
526 | 533 055c 1092 0000 sts EE_Parameter+70,__zero_reg__ |
||
527 | 534 0560 1092 0000 sts EE_Parameter+71,__zero_reg__ |
||
528 | 535 0564 3093 0000 sts EE_Parameter+45,r19 |
||
529 | 536 0568 48E2 ldi r20,lo8(40) |
||
530 | 537 056a 4093 0000 sts EE_Parameter+46,r20 |
||
531 | 538 056e E1E0 ldi r30,lo8(1) |
||
532 | 539 0570 E093 0000 sts EE_Parameter+98,r30 |
||
533 | 540 0574 1092 0000 sts EE_Parameter+47,__zero_reg__ |
||
534 | 541 0578 97EF ldi r25,lo8(-9) |
||
535 | 542 057a 9093 0000 sts EE_Parameter+48,r25 |
||
536 | 543 057e 5093 0000 sts EE_Parameter+53,r21 |
||
537 | 544 0582 8DE7 ldi r24,lo8(125) |
||
538 | 545 0584 8093 0000 sts EE_Parameter+54,r24 |
||
539 | 546 0588 8093 0000 sts EE_Parameter+55,r24 |
||
540 | 547 058c 8093 0000 sts EE_Parameter+56,r24 |
||
541 | 548 0590 3093 0000 sts EE_Parameter+49,r19 |
||
542 | 549 0594 4093 0000 sts EE_Parameter+50,r20 |
||
543 | 550 0598 1092 0000 sts EE_Parameter+51,__zero_reg__ |
||
544 | 551 059c 9093 0000 sts EE_Parameter+52,r25 |
||
545 | 552 05a0 82E3 ldi r24,lo8(50) |
||
546 | 553 05a2 8093 0000 sts EE_Parameter+57,r24 |
||
547 | 554 05a6 2093 0000 sts EE_Parameter+58,r18 |
||
548 | 555 05aa 8093 0000 sts EE_Parameter+59,r24 |
||
549 | 556 05ae 1092 0000 sts EE_Parameter+97,__zero_reg__ |
||
550 | 557 05b2 2093 0000 sts EE_Parameter+60,r18 |
||
551 | 558 05b6 80E5 ldi r24,lo8(80) |
||
552 | 559 05b8 8093 0000 sts EE_Parameter+61,r24 |
||
553 | 560 05bc 96E4 ldi r25,lo8(70) |
||
554 | 561 05be 9093 0000 sts EE_Parameter+62,r25 |
||
555 | 562 05c2 80E2 ldi r24,lo8(32) |
||
556 | 563 05c4 8093 0000 sts EE_Parameter+65,r24 |
||
557 | 564 05c8 9093 0000 sts EE_Parameter+67,r25 |
||
558 | 565 05cc 8FE5 ldi r24,lo8(95) |
||
559 | 566 05ce 8093 0000 sts EE_Parameter+72,r24 |
||
560 | 567 05d2 83EF ldi r24,lo8(-13) |
||
561 | 568 05d4 8093 0000 sts EE_Parameter+74,r24 |
||
562 | 569 05d8 8AEA ldi r24,lo8(-86) |
||
563 | 570 05da 8093 0000 sts EE_Parameter+76,r24 |
||
564 | 571 05de 8093 0000 sts EE_Parameter+77,r24 |
||
565 | 572 05e2 6093 0000 sts EE_Parameter+73,r22 |
||
566 | 573 05e6 6093 0000 sts EE_Parameter+75,r22 |
||
567 | 574 05ea 8EEF ldi r24,lo8(-2) |
||
568 | 575 05ec 8093 0000 sts EE_Parameter+78,r24 |
||
569 | 576 05f0 3093 0000 sts EE_Parameter+79,r19 |
||
570 | 577 05f4 2093 0000 sts EE_Parameter+80,r18 |
||
571 | 578 05f8 2093 0000 sts EE_Parameter+81,r18 |
||
572 | 579 05fc 2093 0000 sts EE_Parameter+82,r18 |
||
573 | 580 0600 8BE4 ldi r24,lo8(75) |
||
574 | 581 0602 8093 0000 sts EE_Parameter+83,r24 |
||
575 | 582 0606 8093 0000 sts EE_Parameter+84,r24 |
||
576 | 583 060a 8093 0000 sts EE_Parameter+85,r24 |
||
577 | 584 060e 1092 0000 sts EE_Parameter+86,__zero_reg__ |
||
578 | 585 0612 5093 0000 sts EE_Parameter+87,r21 |
||
579 | 586 0616 7093 0000 sts EE_Parameter+88,r23 |
||
580 | 587 061a 2093 0000 sts EE_Parameter+89,r18 |
||
581 | 588 061e 6093 0000 sts EE_Parameter+90,r22 |
||
582 | 589 0622 3093 0000 sts EE_Parameter+91,r19 |
||
583 | 590 0626 3093 0000 sts EE_Parameter+92,r19 |
||
584 | 591 062a 82E0 ldi r24,lo8(2) |
||
585 | 592 062c 8093 0000 sts EE_Parameter+93,r24 |
||
586 | 593 0630 E093 0000 sts EE_Parameter+39,r30 |
||
587 | 594 0634 1092 0000 sts EE_Parameter+95,__zero_reg__ |
||
588 | 595 0638 1092 0000 sts EE_Parameter+96,__zero_reg__ |
||
589 | 596 063c A0E0 ldi r26,lo8(EE_Parameter+100) |
||
590 | 597 063e B0E0 ldi r27,hi8(EE_Parameter+100) |
||
591 | 598 0640 8CE0 ldi r24,lo8(12) |
||
592 | 599 0642 E0E0 ldi r30,lo8(.LC2) |
||
593 | 600 0644 F0E0 ldi r31,hi8(.LC2) |
||
594 | 601 0646 ED01 movw r28,r26 |
||
595 | 602 0648 0190 ld __tmp_reg__,Z+ |
||
596 | 603 064a 0992 st Y+,__tmp_reg__ |
||
597 | 604 064c 8A95 dec r24 |
||
598 | 605 064e E1F7 brne .-8 |
||
599 | 606 0650 60E7 ldi r22,lo8(112) |
||
600 | 607 0652 70E0 ldi r23,hi8(112) |
||
601 | 608 0654 CD01 movw r24,r26 |
||
602 | 609 0656 8456 subi r24,lo8(-(-100)) |
||
603 | 610 0658 9040 sbci r25,hi8(-(-100)) |
||
604 | 611 065a 0E94 0000 call RAM_Checksum |
||
605 | 612 065e 8093 0000 sts EE_Parameter+112,r24 |
||
606 | 613 /* epilogue: frame size=0 */ |
||
607 | 614 0662 DF91 pop r29 |
||
608 | 615 0664 CF91 pop r28 |
||
609 | 616 0666 0895 ret |
||
610 | 617 /* epilogue end (size=3) */ |
||
611 | 618 /* function ParamSet_DefaultSet3 size 247 (242) */ |
||
612 | 620 .global GetParamByte |
||
613 | 622 GetParamByte: |
||
614 | 623 /* prologue: frame size=0 */ |
||
615 | 624 /* prologue end (size=0) */ |
||
616 | 625 0668 DC01 movw r26,r24 |
||
617 | 626 /* #APP */ |
||
618 | 627 066a 0E94 0000 call __eeprom_read_byte_1F2021 |
||
619 | 628 066e 802D mov r24,__tmp_reg__ |
||
620 | 629 /* #NOAPP */ |
||
621 | 630 0670 9927 clr r25 |
||
622 | 631 /* epilogue: frame size=0 */ |
||
623 | 632 0672 0895 ret |
||
624 | 633 /* epilogue end (size=1) */ |
||
625 | 634 /* function GetParamByte size 7 (6) */ |
||
626 | 636 .global SetParamByte |
||
627 | 638 SetParamByte: |
||
628 | 639 /* prologue: frame size=0 */ |
||
629 | 640 /* prologue end (size=0) */ |
||
630 | 641 0674 DC01 movw r26,r24 |
||
631 | 642 /* #APP */ |
||
632 | 643 0676 062E mov __tmp_reg__,r22 |
||
633 | 644 0678 0E94 0000 call __eeprom_write_byte_1F2021 |
||
634 | 645 /* #NOAPP */ |
||
635 | 646 /* epilogue: frame size=0 */ |
||
636 | 647 067c 0895 ret |
||
637 | 648 /* epilogue end (size=1) */ |
||
638 | 649 /* function SetParamByte size 6 (5) */ |
||
639 | 651 .global GetParamWord |
||
640 | 653 GetParamWord: |
||
641 | 654 /* prologue: frame size=0 */ |
||
642 | 655 /* prologue end (size=0) */ |
||
643 | 656 067e DC01 movw r26,r24 |
||
644 | 657 /* #APP */ |
||
645 | 658 0680 0E94 0000 call __eeprom_read_word_1F2021 |
||
646 | 659 |
||
647 | 660 /* #NOAPP */ |
||
648 | 661 0684 CF01 movw r24,r30 |
||
649 | 662 /* epilogue: frame size=0 */ |
||
650 | 663 0686 0895 ret |
||
651 | 664 /* epilogue end (size=1) */ |
||
652 | 665 /* function GetParamWord size 7 (6) */ |
||
653 | 667 .global SetParamWord |
||
654 | 669 SetParamWord: |
||
655 | 670 /* prologue: frame size=0 */ |
||
656 | 671 /* prologue end (size=0) */ |
||
657 | 672 0688 DC01 movw r26,r24 |
||
658 | 673 /* #APP */ |
||
659 | 674 068a 0B01 movw __tmp_reg__,r22 |
||
660 | 675 068c 0E94 0000 call __eeprom_write_word_1F2021 |
||
661 | 676 |
||
662 | 677 /* #NOAPP */ |
||
663 | 678 /* epilogue: frame size=0 */ |
||
664 | 679 0690 0895 ret |
||
665 | 680 /* epilogue end (size=1) */ |
||
666 | 681 /* function SetParamWord size 8 (7) */ |
||
667 | 683 .global ParamSet_ReadFromEEProm |
||
668 | 685 ParamSet_ReadFromEEProm: |
||
669 | 686 /* prologue: frame size=0 */ |
||
670 | 687 0692 FF92 push r15 |
||
671 | 688 0694 0F93 push r16 |
||
672 | 689 0696 1F93 push r17 |
||
673 | 690 0698 CF93 push r28 |
||
674 | 691 069a DF93 push r29 |
||
675 | 692 /* prologue end (size=5) */ |
||
676 | 693 069c 982F mov r25,r24 |
||
677 | 694 069e 8150 subi r24,lo8(-(-1)) |
||
678 | 695 06a0 8530 cpi r24,lo8(5) |
||
679 | 696 06a2 08F0 brlo .L39 |
||
680 | 697 06a4 93E0 ldi r25,lo8(3) |
||
681 | 698 .L39: |
||
682 | 699 06a6 81E7 ldi r24,lo8(113) |
||
683 | 700 06a8 F82E mov r15,r24 |
||
684 | 701 06aa 9F9D mul r25,r15 |
||
685 | 702 06ac 8001 movw r16,r0 |
||
686 | 703 06ae 1124 clr r1 |
||
687 | 704 06b0 E801 movw r28,r16 |
||
688 | 705 06b2 2D97 sbiw r28,13 |
||
689 | 706 06b4 60E7 ldi r22,lo8(112) |
||
690 | 707 06b6 70E0 ldi r23,hi8(112) |
||
691 | 708 06b8 CE01 movw r24,r28 |
||
692 | 709 06ba 0E94 0000 call EEProm_Checksum |
||
693 | 710 06be 982F mov r25,r24 |
||
694 | 711 06c0 D801 movw r26,r16 |
||
695 | 712 06c2 AD59 subi r26,lo8(-(99)) |
||
696 | 713 06c4 BF4F sbci r27,hi8(-(99)) |
||
697 | 714 /* #APP */ |
||
698 | 715 06c6 0E94 0000 call __eeprom_read_byte_1F2021 |
||
699 | 716 06ca 802D mov r24,__tmp_reg__ |
||
700 | 717 /* #NOAPP */ |
||
701 | 718 06cc 8917 cp r24,r25 |
||
702 | 719 06ce 31F4 brne .L51 |
||
703 | 720 06d0 DE01 movw r26,r28 |
||
704 | 721 /* #APP */ |
||
705 | 722 06d2 0E94 0000 call __eeprom_read_byte_1F2021 |
||
706 | 723 06d6 802D mov r24,__tmp_reg__ |
||
707 | 724 /* #NOAPP */ |
||
708 | 725 06d8 8435 cpi r24,lo8(84) |
||
709 | 726 06da 19F0 breq .L42 |
||
710 | 727 .L51: |
||
711 | 728 06dc 80E0 ldi r24,lo8(0) |
||
712 | 729 06de 90E0 ldi r25,hi8(0) |
||
713 | 730 06e0 0AC0 rjmp .L38 |
||
714 | 731 .L42: |
||
715 | 732 06e2 E0E0 ldi r30,lo8(EE_Parameter) |
||
716 | 733 06e4 F0E0 ldi r31,hi8(EE_Parameter) |
||
717 | 734 06e6 DE01 movw r26,r28 |
||
718 | 735 /* #APP */ |
||
719 | 736 06e8 1F2C mov __zero_reg__,r15 |
||
720 | 737 06ea 0E94 0000 call __eeprom_read_block_1F2021 |
||
721 | 738 /* #NOAPP */ |
||
722 | 739 06ee 0E94 0000 call LED_Init |
||
723 | 740 06f2 81E0 ldi r24,lo8(1) |
||
724 | 741 06f4 90E0 ldi r25,hi8(1) |
||
725 | 742 .L38: |
||
726 | 743 /* epilogue: frame size=0 */ |
||
727 | 744 06f6 E5E0 ldi r30,5 |
||
728 | 745 06f8 CDB7 in r28,__SP_L__ |
||
729 | 746 06fa DEB7 in r29,__SP_H__ |
||
730 | 747 06fc 0C94 0000 jmp __epilogue_restores__+26 |
||
731 | 748 /* epilogue end (size=5) */ |
||
732 | 749 /* function ParamSet_ReadFromEEProm size 58 (48) */ |
||
733 | 751 .global SetActiveParamSet |
||
734 | 753 SetActiveParamSet: |
||
735 | 754 /* prologue: frame size=0 */ |
||
736 | 755 /* prologue end (size=0) */ |
||
737 | 756 0700 8630 cpi r24,lo8(6) |
||
738 | 757 0702 10F0 brlo .L53 |
||
739 | 758 0704 85E0 ldi r24,lo8(5) |
||
740 | 759 0706 03C0 rjmp .L54 |
||
741 | 760 .L53: |
||
742 | 761 0708 8823 tst r24 |
||
743 | 762 070a 09F4 brne .L54 |
||
744 | 763 070c 81E0 ldi r24,lo8(1) |
||
745 | 764 .L54: |
||
746 | 765 070e A2E0 ldi r26,lo8(2) |
||
747 | 766 0710 B0E0 ldi r27,hi8(2) |
||
748 | 767 /* #APP */ |
||
749 | 768 0712 082E mov __tmp_reg__,r24 |
||
750 | 769 0714 0E94 0000 call __eeprom_write_byte_1F2021 |
||
751 | 770 /* #NOAPP */ |
||
752 | 771 /* epilogue: frame size=0 */ |
||
753 | 772 0718 0895 ret |
||
754 | 773 /* epilogue end (size=1) */ |
||
755 | 774 /* function SetActiveParamSet size 14 (13) */ |
||
756 | 776 .global ParamSet_WriteToEEProm |
||
757 | 778 ParamSet_WriteToEEProm: |
||
758 | 779 /* prologue: frame size=0 */ |
||
759 | 780 071a 1F93 push r17 |
||
760 | 781 071c CF93 push r28 |
||
761 | 782 071e DF93 push r29 |
||
762 | 783 /* prologue end (size=3) */ |
||
763 | 784 0720 182F mov r17,r24 |
||
764 | 785 0722 C0E0 ldi r28,lo8(EE_Parameter) |
||
765 | 786 0724 D0E0 ldi r29,hi8(EE_Parameter) |
||
766 | 787 0726 8091 0000 lds r24,EE_Parameter |
||
767 | 788 072a 8435 cpi r24,lo8(84) |
||
768 | 789 072c 91F5 brne .L57 |
||
769 | 790 072e 1630 cpi r17,lo8(6) |
||
770 | 791 0730 10F0 brlo .L58 |
||
771 | 792 0732 15E0 ldi r17,lo8(5) |
||
772 | 793 0734 02C0 rjmp .L59 |
||
773 | 794 .L58: |
||
774 | 795 0736 1123 tst r17 |
||
775 | 796 0738 61F1 breq .L57 |
||
776 | 797 .L59: |
||
777 | 798 073a 60E7 ldi r22,lo8(112) |
||
778 | 799 073c 70E0 ldi r23,hi8(112) |
||
779 | 800 073e 80E0 ldi r24,lo8(EE_Parameter) |
||
780 | 801 0740 90E0 ldi r25,hi8(EE_Parameter) |
||
781 | 802 0742 0E94 0000 call RAM_Checksum |
||
782 | 803 0746 8093 0000 sts EE_Parameter+112,r24 |
||
783 | 804 074a 81E7 ldi r24,lo8(113) |
||
784 | 805 074c 189F mul r17,r24 |
||
785 | 806 074e D001 movw r26,r0 |
||
786 | 807 0750 1124 clr r1 |
||
787 | 808 0752 1D97 sbiw r26,13 |
||
788 | 809 0754 FE01 movw r30,r28 |
||
789 | 810 /* #APP */ |
||
790 | 811 0756 182E mov __zero_reg__,r24 |
||
791 | 812 0758 0E94 0000 call __eeprom_write_block_1F2021 |
||
792 | 813 /* #NOAPP */ |
||
793 | 814 075c E0E0 ldi r30,lo8(EE_Parameter+1) |
||
794 | 815 075e F0E0 ldi r31,hi8(EE_Parameter+1) |
||
795 | 816 0760 A0E5 ldi r26,lo8(80) |
||
796 | 817 0762 B0E0 ldi r27,hi8(80) |
||
797 | 818 0764 2CE0 ldi r18,lo8(12) |
||
798 | 819 0766 30E0 ldi r19,hi8(12) |
||
799 | 820 /* #APP */ |
||
800 | 821 0768 122E mov __zero_reg__,r18 |
||
801 | 822 076a 0E94 0000 call __eeprom_write_block_1F2021 |
||
802 | 823 /* #NOAPP */ |
||
803 | 824 076e B901 movw r22,r18 |
||
804 | 825 0770 80E0 ldi r24,lo8(EE_Parameter+1) |
||
805 | 826 0772 90E0 ldi r25,hi8(EE_Parameter+1) |
||
806 | 827 0774 0E94 0000 call RAM_Checksum |
||
807 | 828 0778 ACE5 ldi r26,lo8(92) |
||
808 | 829 077a B0E0 ldi r27,hi8(92) |
||
809 | 830 /* #APP */ |
||
810 | 831 077c 082E mov __tmp_reg__,r24 |
||
811 | 832 077e 0E94 0000 call __eeprom_write_byte_1F2021 |
||
812 | 833 /* #NOAPP */ |
||
813 | 834 0782 812F mov r24,r17 |
||
814 | 835 0784 0E94 0000 call SetActiveParamSet |
||
815 | 836 0788 0E94 0000 call LED_Init |
||
816 | 837 078c 81E0 ldi r24,lo8(1) |
||
817 | 838 078e 90E0 ldi r25,hi8(1) |
||
818 | 839 0790 02C0 rjmp .L56 |
||
819 | 840 .L57: |
||
820 | 841 0792 80E0 ldi r24,lo8(0) |
||
821 | 842 0794 90E0 ldi r25,hi8(0) |
||
822 | 843 .L56: |
||
823 | 844 /* epilogue: frame size=0 */ |
||
824 | 845 0796 DF91 pop r29 |
||
825 | 846 0798 CF91 pop r28 |
||
826 | 847 079a 1F91 pop r17 |
||
827 | 848 079c 0895 ret |
||
828 | 849 /* epilogue end (size=4) */ |
||
829 | 850 /* function ParamSet_WriteToEEProm size 69 (62) */ |
||
830 | 852 .global MixerTable_ReadFromEEProm |
||
831 | 854 MixerTable_ReadFromEEProm: |
||
832 | 855 /* prologue: frame size=0 */ |
||
833 | 856 /* prologue end (size=0) */ |
||
834 | 857 079e 6DE4 ldi r22,lo8(77) |
||
835 | 858 07a0 70E0 ldi r23,hi8(77) |
||
836 | 859 07a2 88EE ldi r24,lo8(1000) |
||
837 | 860 07a4 93E0 ldi r25,hi8(1000) |
||
838 | 861 07a6 0E94 0000 call EEProm_Checksum |
||
839 | 862 07aa A5E3 ldi r26,lo8(1077) |
||
840 | 863 07ac B4E0 ldi r27,hi8(1077) |
||
841 | 864 /* #APP */ |
||
842 | 865 07ae 0E94 0000 call __eeprom_read_byte_1F2021 |
||
843 | 866 07b2 902D mov r25,__tmp_reg__ |
||
844 | 867 /* #NOAPP */ |
||
845 | 868 07b4 9817 cp r25,r24 |
||
846 | 869 07b6 39F4 brne .L87 |
||
847 | 870 07b8 A8EE ldi r26,lo8(1000) |
||
848 | 871 07ba B3E0 ldi r27,hi8(1000) |
||
849 | 872 /* #APP */ |
||
850 | 873 07bc 0E94 0000 call __eeprom_read_byte_1F2021 |
||
851 | 874 07c0 802D mov r24,__tmp_reg__ |
||
852 | 875 /* #NOAPP */ |
||
853 | 876 07c2 8130 cpi r24,lo8(1) |
||
854 | 877 07c4 19F0 breq .L78 |
||
855 | 878 .L87: |
||
856 | 879 07c6 80E0 ldi r24,lo8(0) |
||
857 | 880 07c8 90E0 ldi r25,hi8(0) |
||
858 | 881 07ca 0895 ret |
||
859 | 882 .L78: |
||
860 | 883 07cc E0E0 ldi r30,lo8(Mixer) |
||
861 | 884 07ce F0E0 ldi r31,hi8(Mixer) |
||
862 | 885 07d0 A8EE ldi r26,lo8(1000) |
||
863 | 886 07d2 B3E0 ldi r27,hi8(1000) |
||
864 | 887 07d4 8EE4 ldi r24,lo8(78) |
||
865 | 888 /* #APP */ |
||
866 | 889 07d6 182E mov __zero_reg__,r24 |
||
867 | 890 07d8 0E94 0000 call __eeprom_read_block_1F2021 |
||
868 | 891 /* #NOAPP */ |
||
869 | 892 07dc 81E0 ldi r24,lo8(1) |
||
870 | 893 07de 90E0 ldi r25,hi8(1) |
||
871 | 894 07e0 0895 ret |
||
872 | 895 /* epilogue: frame size=0 */ |
||
873 | 896 /* epilogue: noreturn */ |
||
874 | 897 /* epilogue end (size=0) */ |
||
875 | 898 /* function MixerTable_ReadFromEEProm size 37 (37) */ |
||
876 | 900 .global MixerTable_WriteToEEProm |
||
877 | 902 MixerTable_WriteToEEProm: |
||
878 | 903 /* prologue: frame size=0 */ |
||
879 | 904 07e2 CF93 push r28 |
||
880 | 905 07e4 DF93 push r29 |
||
881 | 906 /* prologue end (size=2) */ |
||
882 | 907 07e6 C0E0 ldi r28,lo8(Mixer) |
||
883 | 908 07e8 D0E0 ldi r29,hi8(Mixer) |
||
884 | 909 07ea 8091 0000 lds r24,Mixer |
||
885 | 910 07ee 8130 cpi r24,lo8(1) |
||
886 | 911 07f0 89F4 brne .L89 |
||
887 | 912 07f2 6DE4 ldi r22,lo8(77) |
||
888 | 913 07f4 70E0 ldi r23,hi8(77) |
||
889 | 914 07f6 CE01 movw r24,r28 |
||
890 | 915 07f8 0E94 0000 call RAM_Checksum |
||
891 | 916 07fc 8093 0000 sts Mixer+77,r24 |
||
892 | 917 0800 A8EE ldi r26,lo8(1000) |
||
893 | 918 0802 B3E0 ldi r27,hi8(1000) |
||
894 | 919 0804 8EE4 ldi r24,lo8(78) |
||
895 | 920 0806 FE01 movw r30,r28 |
||
896 | 921 /* #APP */ |
||
897 | 922 0808 182E mov __zero_reg__,r24 |
||
898 | 923 080a 0E94 0000 call __eeprom_write_block_1F2021 |
||
899 | 924 /* #NOAPP */ |
||
900 | 925 080e 81E0 ldi r24,lo8(1) |
||
901 | 926 0810 90E0 ldi r25,hi8(1) |
||
902 | 927 0812 02C0 rjmp .L88 |
||
903 | 928 .L89: |
||
904 | 929 0814 80E0 ldi r24,lo8(0) |
||
905 | 930 0816 90E0 ldi r25,hi8(0) |
||
906 | 931 .L88: |
||
907 | 932 /* epilogue: frame size=0 */ |
||
908 | 933 0818 DF91 pop r29 |
||
909 | 934 081a CF91 pop r28 |
||
910 | 935 081c 0895 ret |
||
911 | 936 /* epilogue end (size=3) */ |
||
912 | 937 /* function MixerTable_WriteToEEProm size 31 (26) */ |
||
913 | 939 .data |
||
914 | 940 .LC3: |
||
915 | 941 0019 5175 6164 .string "Quadro" |
||
916 | 941 726F 00 |
||
917 | 942 0020 00 .string "" |
||
918 | 943 .text |
||
919 | 944 .global MixerTable_Default |
||
920 | 946 MixerTable_Default: |
||
921 | 947 /* prologue: frame size=0 */ |
||
922 | 948 081e CF93 push r28 |
||
923 | 949 0820 DF93 push r29 |
||
924 | 950 /* prologue end (size=2) */ |
||
925 | 951 0822 81E0 ldi r24,lo8(1) |
||
926 | 952 0824 8093 0000 sts Mixer,r24 |
||
927 | 953 0828 E0E0 ldi r30,lo8(Mixer) |
||
928 | 954 082a F0E0 ldi r31,hi8(Mixer) |
||
929 | 955 082c 8FE0 ldi r24,lo8(15) |
||
930 | 956 .L102: |
||
931 | 957 082e 1586 std Z+13,__zero_reg__ |
||
932 | 958 0830 1686 std Z+14,__zero_reg__ |
||
933 | 959 0832 1786 std Z+15,__zero_reg__ |
||
934 | 960 0834 108A std Z+16,__zero_reg__ |
||
935 | 961 0836 8150 subi r24,lo8(-(-1)) |
||
936 | 962 0838 3496 adiw r30,4 |
||
937 | 963 083a 87FF sbrs r24,7 |
||
938 | 964 083c F8CF rjmp .L102 |
||
939 | 965 083e 80E4 ldi r24,lo8(64) |
||
940 | 966 0840 8093 0000 sts Mixer+13,r24 |
||
941 | 967 0844 8093 0000 sts Mixer+14,r24 |
||
942 | 968 0848 1092 0000 sts Mixer+15,__zero_reg__ |
||
943 | 969 084c 8093 0000 sts Mixer+16,r24 |
||
944 | 970 0850 8093 0000 sts Mixer+17,r24 |
||
945 | 971 0854 90EC ldi r25,lo8(-64) |
||
946 | 972 0856 9093 0000 sts Mixer+18,r25 |
||
947 | 973 085a 1092 0000 sts Mixer+19,__zero_reg__ |
||
948 | 974 085e 8093 0000 sts Mixer+20,r24 |
||
949 | 975 0862 8093 0000 sts Mixer+21,r24 |
||
950 | 976 0866 1092 0000 sts Mixer+22,__zero_reg__ |
||
951 | 977 086a 9093 0000 sts Mixer+23,r25 |
||
952 | 978 086e 9093 0000 sts Mixer+24,r25 |
||
953 | 979 0872 8093 0000 sts Mixer+25,r24 |
||
954 | 980 0876 1092 0000 sts Mixer+26,__zero_reg__ |
||
955 | 981 087a 8093 0000 sts Mixer+27,r24 |
||
956 | 982 087e 9093 0000 sts Mixer+28,r25 |
||
957 | 983 0882 A0E0 ldi r26,lo8(Mixer+1) |
||
958 | 984 0884 B0E0 ldi r27,hi8(Mixer+1) |
||
959 | 985 0886 87E0 ldi r24,lo8(7) |
||
960 | 986 0888 E0E0 ldi r30,lo8(.LC3) |
||
961 | 987 088a F0E0 ldi r31,hi8(.LC3) |
||
962 | 988 088c ED01 movw r28,r26 |
||
963 | 989 088e 0190 ld __tmp_reg__,Z+ |
||
964 | 990 0890 0992 st Y+,__tmp_reg__ |
||
965 | 991 0892 8A95 dec r24 |
||
966 | 992 0894 E1F7 brne .-8 |
||
967 | 993 0896 6DE4 ldi r22,lo8(77) |
||
968 | 994 0898 70E0 ldi r23,hi8(77) |
||
969 | 995 089a CD01 movw r24,r26 |
||
970 | 996 089c 0197 sbiw r24,1 |
||
971 | 997 089e 0E94 0000 call RAM_Checksum |
||
972 | 998 08a2 8093 0000 sts Mixer+77,r24 |
||
973 | 999 /* epilogue: frame size=0 */ |
||
974 | 1000 08a6 DF91 pop r29 |
||
975 | 1001 08a8 CF91 pop r28 |
||
976 | 1002 08aa 0895 ret |
||
977 | 1003 /* epilogue end (size=3) */ |
||
978 | 1004 /* function MixerTable_Default size 71 (66) */ |
||
979 | 1006 .global GetActiveParamSet |
||
980 | 1008 GetActiveParamSet: |
||
981 | 1009 /* prologue: frame size=0 */ |
||
982 | 1010 /* prologue end (size=0) */ |
||
983 | 1011 08ac A2E0 ldi r26,lo8(2) |
||
984 | 1012 08ae B0E0 ldi r27,hi8(2) |
||
985 | 1013 /* #APP */ |
||
986 | 1014 08b0 0E94 0000 call __eeprom_read_byte_1F2021 |
||
987 | 1015 08b4 802D mov r24,__tmp_reg__ |
||
988 | 1016 /* #NOAPP */ |
||
989 | 1017 08b6 8630 cpi r24,lo8(6) |
||
990 | 1018 08b8 30F0 brlo .L107 |
||
991 | 1019 08ba 83E0 ldi r24,lo8(3) |
||
992 | 1020 08bc A2E0 ldi r26,lo8(2) |
||
993 | 1021 08be B0E0 ldi r27,hi8(2) |
||
994 | 1022 /* #APP */ |
||
995 | 1023 08c0 082E mov __tmp_reg__,r24 |
||
996 | 1024 08c2 0E94 0000 call __eeprom_write_byte_1F2021 |
||
997 | 1025 /* #NOAPP */ |
||
998 | 1026 .L107: |
||
999 | 1027 08c6 9927 clr r25 |
||
1000 | 1028 /* epilogue: frame size=0 */ |
||
1001 | 1029 08c8 0895 ret |
||
1002 | 1030 /* epilogue end (size=1) */ |
||
1003 | 1031 /* function GetActiveParamSet size 17 (16) */ |
||
1004 | 1033 .section .progmem.data,"a",@progbits |
||
1005 | 1036 __c.0: |
||
1006 | 1037 0000 0A0D 4765 .string "\n\rGenerating default Parameter Set %d" |
||
1007 | 1037 6E65 7261 |
||
1008 | 1037 7469 6E67 |
||
1009 | 1037 2064 6566 |
||
1010 | 1037 6175 6C74 |
||
1011 | 1040 __c.1: |
||
1012 | 1041 0026 0A0D 5573 .string "\n\rUsing Parameter Set %d" |
||
1013 | 1041 696E 6720 |
||
1014 | 1041 5061 7261 |
||
1015 | 1041 6D65 7465 |
||
1016 | 1041 7220 5365 |
||
1017 | 1044 __c.2: |
||
1018 | 1045 003f 0A0D 4765 .string "\n\rGenerating default Mixer Table" |
||
1019 | 1045 6E65 7261 |
||
1020 | 1045 7469 6E67 |
||
1021 | 1045 2064 6566 |
||
1022 | 1045 6175 6C74 |
||
1023 | 1048 __c.3: |
||
1024 | 1049 0060 0A0D 4D69 .string "\n\rMixer-Config: '%s' (%u Motors)" |
||
1025 | 1049 7865 722D |
||
1026 | 1049 436F 6E66 |
||
1027 | 1049 6967 3A20 |
||
1028 | 1049 2725 7327 |
||
1029 | 1052 __c.4: |
||
1030 | 1053 0081 0A0D 3D3D .string "\n\r==============================" |
||
1031 | 1053 3D3D 3D3D |
||
1032 | 1053 3D3D 3D3D |
||
1033 | 1053 3D3D 3D3D |
||
1034 | 1053 3D3D 3D3D |
||
1035 | 1054 .text |
||
1036 | 1055 .global ParamSet_Init |
||
1037 | 1057 ParamSet_Init: |
||
1038 | 1058 /* prologue: frame size=0 */ |
||
1039 | 1059 08ca DF92 push r13 |
||
1040 | 1060 08cc EF92 push r14 |
||
1041 | 1061 08ce FF92 push r15 |
||
1042 | 1062 08d0 0F93 push r16 |
||
1043 | 1063 08d2 1F93 push r17 |
||
1044 | 1064 08d4 CF93 push r28 |
||
1045 | 1065 /* prologue end (size=6) */ |
||
1046 | 1066 08d6 FF24 clr r15 |
||
1047 | 1067 08d8 DF2C mov r13,r15 |
||
1048 | 1068 08da EF2C mov r14,r15 |
||
1049 | 1069 08dc 81E0 ldi r24,lo8(1) |
||
1050 | 1070 08de 90E0 ldi r25,hi8(1) |
||
1051 | 1071 08e0 0E94 0000 call GetParamByte |
||
1052 | 1072 08e4 8435 cpi r24,lo8(84) |
||
1053 | 1073 08e6 39F0 breq .L110 |
||
1054 | 1074 08e8 31E0 ldi r19,lo8(1) |
||
1055 | 1075 08ea E32E mov r14,r19 |
||
1056 | 1076 08ec 64E5 ldi r22,lo8(84) |
||
1057 | 1077 08ee 81E0 ldi r24,lo8(1) |
||
1058 | 1078 08f0 90E0 ldi r25,hi8(1) |
||
1059 | 1079 08f2 0E94 0000 call SetParamByte |
||
1060 | 1080 .L110: |
||
1061 | 1081 08f6 6CE0 ldi r22,lo8(12) |
||
1062 | 1082 08f8 70E0 ldi r23,hi8(12) |
||
1063 | 1083 08fa 80E5 ldi r24,lo8(80) |
||
1064 | 1084 08fc 90E0 ldi r25,hi8(80) |
||
1065 | 1085 08fe 0E94 0000 call EEProm_Checksum |
||
1066 | 1086 0902 C82F mov r28,r24 |
||
1067 | 1087 0904 ACE5 ldi r26,lo8(92) |
||
1068 | 1088 0906 B0E0 ldi r27,hi8(92) |
||
1069 | 1089 /* #APP */ |
||
1070 | 1090 0908 0E94 0000 call __eeprom_read_byte_1F2021 |
||
1071 | 1091 090c 802D mov r24,__tmp_reg__ |
||
1072 | 1092 /* #NOAPP */ |
||
1073 | 1093 090e 8C17 cp r24,r28 |
||
1074 | 1094 0910 11F4 brne .L111 |
||
1075 | 1095 0912 21E0 ldi r18,lo8(1) |
||
1076 | 1096 0914 D22E mov r13,r18 |
||
1077 | 1097 .L111: |
||
1078 | 1098 0916 C1E0 ldi r28,lo8(1) |
||
1079 | 1099 0918 01E0 ldi r16,lo8(1) |
||
1080 | 1100 091a 10E0 ldi r17,hi8(1) |
||
1081 | 1101 .L133: |
||
1082 | 1102 091c EE20 tst r14 |
||
1083 | 1103 091e 29F4 brne .L117 |
||
1084 | 1104 0920 8C2F mov r24,r28 |
||
1085 | 1105 0922 0E94 0000 call ParamSet_ReadFromEEProm |
||
1086 | 1106 0926 8823 tst r24 |
||
1087 | 1107 0928 B1F5 brne .L115 |
||
1088 | 1108 .L117: |
||
1089 | 1109 092a 91E0 ldi r25,lo8(1) |
||
1090 | 1110 092c F92E mov r15,r25 |
||
1091 | 1111 092e 1F93 push r17 |
||
1092 | 1112 0930 0F93 push r16 |
||
1093 | 1113 0932 80E0 ldi r24,lo8(__c.0) |
||
1094 | 1114 0934 90E0 ldi r25,hi8(__c.0) |
||
1095 | 1115 0936 9F93 push r25 |
||
1096 | 1116 0938 8F93 push r24 |
||
1097 | 1117 093a 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
1098 | 1118 093c 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
1099 | 1119 093e 9F93 push r25 |
||
1100 | 1120 0940 8F93 push r24 |
||
1101 | 1121 0942 E091 0000 lds r30,_printf_P |
||
1102 | 1122 0946 F091 0000 lds r31,(_printf_P)+1 |
||
1103 | 1123 094a 0995 icall |
||
1104 | 1124 094c 8DB7 in r24,__SP_L__ |
||
1105 | 1125 094e 9EB7 in r25,__SP_H__ |
||
1106 | 1126 0950 0696 adiw r24,6 |
||
1107 | 1127 0952 8DBF out __SP_L__,r24 |
||
1108 | 1128 0954 0230 cpi r16,2 |
||
1109 | 1129 0956 1105 cpc r17,__zero_reg__ |
||
1110 | 1130 0958 49F0 breq .L120 |
||
1111 | 1131 095a 0330 cpi r16,3 |
||
1112 | 1132 095c 1105 cpc r17,__zero_reg__ |
||
1113 | 1133 095e 4CF4 brge .L122 |
||
1114 | 1134 0960 0130 cpi r16,1 |
||
1115 | 1135 0962 1105 cpc r17,__zero_reg__ |
||
1116 | 1136 0964 31F4 brne .L122 |
||
1117 | 1137 0966 0E94 0000 call ParamSet_DefaultSet1 |
||
1118 | 1138 096a 05C0 rjmp .L118 |
||
1119 | 1139 .L120: |
||
1120 | 1140 096c 0E94 0000 call ParamSet_DefaultSet2 |
||
1121 | 1141 0970 02C0 rjmp .L118 |
||
1122 | 1142 .L122: |
||
1123 | 1143 0972 0E94 0000 call ParamSet_DefaultSet3 |
||
1124 | 1144 .L118: |
||
1125 | 1145 0976 DD20 tst r13 |
||
1126 | 1146 0978 49F0 breq .L124 |
||
1127 | 1147 097a E0E0 ldi r30,lo8(EE_Parameter+1) |
||
1128 | 1148 097c F0E0 ldi r31,hi8(EE_Parameter+1) |
||
1129 | 1149 097e A0E5 ldi r26,lo8(80) |
||
1130 | 1150 0980 B0E0 ldi r27,hi8(80) |
||
1131 | 1151 0982 8CE0 ldi r24,lo8(12) |
||
1132 | 1152 /* #APP */ |
||
1133 | 1153 0984 182E mov __zero_reg__,r24 |
||
1134 | 1154 0986 0E94 0000 call __eeprom_read_block_1F2021 |
||
1135 | 1155 /* #NOAPP */ |
||
1136 | 1156 098a 02C0 rjmp .L132 |
||
1137 | 1157 .L124: |
||
1138 | 1158 098c 0E94 0000 call ParamSet_DefaultStickMapping |
||
1139 | 1159 .L132: |
||
1140 | 1160 0990 8C2F mov r24,r28 |
||
1141 | 1161 0992 0E94 0000 call ParamSet_WriteToEEProm |
||
1142 | 1162 .L115: |
||
1143 | 1163 0996 CF5F subi r28,lo8(-(1)) |
||
1144 | 1164 0998 0F5F subi r16,lo8(-(1)) |
||
1145 | 1165 099a 1F4F sbci r17,hi8(-(1)) |
||
1146 | 1166 099c C630 cpi r28,lo8(6) |
||
1147 | 1167 099e 08F4 brsh .+2 |
||
1148 | 1168 09a0 BDCF rjmp .L133 |
||
1149 | 1169 09a2 FF20 tst r15 |
||
1150 | 1170 09a4 19F0 breq .L134 |
||
1151 | 1171 09a6 83E0 ldi r24,lo8(3) |
||
1152 | 1172 09a8 0E94 0000 call SetActiveParamSet |
||
1153 | 1173 .L134: |
||
1154 | 1174 09ac 0E94 0000 call GetActiveParamSet |
||
1155 | 1175 09b0 C82F mov r28,r24 |
||
1156 | 1176 09b2 0E94 0000 call ParamSet_ReadFromEEProm |
||
1157 | 1177 09b6 8C2F mov r24,r28 |
||
1158 | 1178 09b8 9927 clr r25 |
||
1159 | 1179 09ba 9F93 push r25 |
||
1160 | 1180 09bc 8F93 push r24 |
||
1161 | 1181 09be 80E0 ldi r24,lo8(__c.1) |
||
1162 | 1182 09c0 90E0 ldi r25,hi8(__c.1) |
||
1163 | 1183 09c2 9F93 push r25 |
||
1164 | 1184 09c4 8F93 push r24 |
||
1165 | 1185 09c6 00E0 ldi r16,lo8(pm(uart_putchar)) |
||
1166 | 1186 09c8 10E0 ldi r17,hi8(pm(uart_putchar)) |
||
1167 | 1187 09ca 1F93 push r17 |
||
1168 | 1188 09cc 0F93 push r16 |
||
1169 | 1189 09ce E091 0000 lds r30,_printf_P |
||
1170 | 1190 09d2 F091 0000 lds r31,(_printf_P)+1 |
||
1171 | 1191 09d6 0995 icall |
||
1172 | 1192 09d8 8DB7 in r24,__SP_L__ |
||
1173 | 1193 09da 9EB7 in r25,__SP_H__ |
||
1174 | 1194 09dc 0696 adiw r24,6 |
||
1175 | 1195 09de 8DBF out __SP_L__,r24 |
||
1176 | 1196 09e0 EE20 tst r14 |
||
1177 | 1197 09e2 21F4 brne .L136 |
||
1178 | 1198 09e4 0E94 0000 call MixerTable_ReadFromEEProm |
||
1179 | 1199 09e8 8823 tst r24 |
||
1180 | 1200 09ea 99F4 brne .L135 |
||
1181 | 1201 .L136: |
||
1182 | 1202 09ec 80E0 ldi r24,lo8(__c.2) |
||
1183 | 1203 09ee 90E0 ldi r25,hi8(__c.2) |
||
1184 | 1204 09f0 9F93 push r25 |
||
1185 | 1205 09f2 8F93 push r24 |
||
1186 | 1206 09f4 1F93 push r17 |
||
1187 | 1207 09f6 0F93 push r16 |
||
1188 | 1208 09f8 E091 0000 lds r30,_printf_P |
||
1189 | 1209 09fc F091 0000 lds r31,(_printf_P)+1 |
||
1190 | 1210 0a00 0995 icall |
||
1191 | 1211 0a02 0E94 0000 call MixerTable_Default |
||
1192 | 1212 0a06 0E94 0000 call MixerTable_WriteToEEProm |
||
1193 | 1213 0a0a 0F90 pop __tmp_reg__ |
||
1194 | 1214 0a0c 0F90 pop __tmp_reg__ |
||
1195 | 1215 0a0e 0F90 pop __tmp_reg__ |
||
1196 | 1216 0a10 0F90 pop __tmp_reg__ |
||
1197 | 1217 .L135: |
||
1198 | 1218 0a12 1092 0000 sts RequiredMotors,__zero_reg__ |
||
1199 | 1219 0a16 90E0 ldi r25,lo8(0) |
||
1200 | 1220 0a18 E0E0 ldi r30,lo8(Mixer+13) |
||
1201 | 1221 0a1a F0E0 ldi r31,hi8(Mixer+13) |
||
1202 | 1222 0a1c CFE0 ldi r28,lo8(15) |
||
1203 | 1223 .L141: |
||
1204 | 1224 0a1e 8081 ld r24,Z |
||
1205 | 1225 0a20 3496 adiw r30,4 |
||
1206 | 1226 0a22 1816 cp __zero_reg__,r24 |
||
1207 | 1227 0a24 0CF4 brge .L139 |
||
1208 | 1228 0a26 9F5F subi r25,lo8(-(1)) |
||
1209 | 1229 .L139: |
||
1210 | 1230 0a28 C150 subi r28,lo8(-(-1)) |
||
1211 | 1231 0a2a C7FF sbrs r28,7 |
||
1212 | 1232 0a2c F8CF rjmp .L141 |
||
1213 | 1233 0a2e 9093 0000 sts RequiredMotors,r25 |
||
1214 | 1234 0a32 892F mov r24,r25 |
||
1215 | 1235 0a34 9927 clr r25 |
||
1216 | 1236 0a36 9F93 push r25 |
||
1217 | 1237 0a38 8F93 push r24 |
||
1218 | 1238 0a3a 80E0 ldi r24,lo8(Mixer+1) |
||
1219 | 1239 0a3c 90E0 ldi r25,hi8(Mixer+1) |
||
1220 | 1240 0a3e 9F93 push r25 |
||
1221 | 1241 0a40 8F93 push r24 |
||
1222 | 1242 0a42 80E0 ldi r24,lo8(__c.3) |
||
1223 | 1243 0a44 90E0 ldi r25,hi8(__c.3) |
||
1224 | 1244 0a46 9F93 push r25 |
||
1225 | 1245 0a48 8F93 push r24 |
||
1226 | 1246 0a4a 1F93 push r17 |
||
1227 | 1247 0a4c 0F93 push r16 |
||
1228 | 1248 0a4e E091 0000 lds r30,_printf_P |
||
1229 | 1249 0a52 F091 0000 lds r31,(_printf_P)+1 |
||
1230 | 1250 0a56 0995 icall |
||
1231 | 1251 0a58 8DB7 in r24,__SP_L__ |
||
1232 | 1252 0a5a 9EB7 in r25,__SP_H__ |
||
1233 | 1253 0a5c 0896 adiw r24,8 |
||
1234 | 1254 0a5e 8DBF out __SP_L__,r24 |
||
1235 | 1255 0a60 80E0 ldi r24,lo8(__c.4) |
||
1236 | 1256 0a62 90E0 ldi r25,hi8(__c.4) |
||
1237 | 1257 0a64 9F93 push r25 |
||
1238 | 1258 0a66 8F93 push r24 |
||
1239 | 1259 0a68 1F93 push r17 |
||
1240 | 1260 0a6a 0F93 push r16 |
||
1241 | 1261 0a6c E091 0000 lds r30,_printf_P |
||
1242 | 1262 0a70 F091 0000 lds r31,(_printf_P)+1 |
||
1243 | 1263 0a74 0995 icall |
||
1244 | 1264 0a76 0F90 pop __tmp_reg__ |
||
1245 | 1265 0a78 0F90 pop __tmp_reg__ |
||
1246 | 1266 0a7a 0F90 pop __tmp_reg__ |
||
1247 | 1267 0a7c 0F90 pop __tmp_reg__ |
||
1248 | 1268 /* epilogue: frame size=0 */ |
||
1249 | 1269 0a7e CF91 pop r28 |
||
1250 | 1270 0a80 1F91 pop r17 |
||
1251 | 1271 0a82 0F91 pop r16 |
||
1252 | 1272 0a84 FF90 pop r15 |
||
1253 | 1273 0a86 EF90 pop r14 |
||
1254 | 1274 0a88 DF90 pop r13 |
||
1255 | 1275 0a8a 0895 ret |
||
1256 | 1276 /* epilogue end (size=7) */ |
||
1257 | 1277 /* function ParamSet_Init size 227 (214) */ |
||
1258 | 1279 .comm Mixer,78,1 |
||
1259 | 1280 .comm RequiredMotors,1,1 |
||
1260 | 1281 .comm EE_Parameter,113,1 |
||
1261 | 1282 /* File "eeprom.c": code 1373 = 0x055d (1307), prologues 25, epilogues 41 */ |
||
1262 | DEFINED SYMBOLS |
||
1263 | *ABS*:00000000 eeprom.c |
||
1264 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:3 *ABS*:0000003f __SREG__ |
||
1265 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:4 *ABS*:0000003e __SP_H__ |
||
1266 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:5 *ABS*:0000003d __SP_L__ |
||
1267 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:6 *ABS*:00000000 __tmp_reg__ |
||
1268 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:7 *ABS*:00000001 __zero_reg__ |
||
1269 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:13 .text:00000000 RAM_Checksum |
||
1270 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:41 .text:00000022 EEProm_Checksum |
||
1271 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:73 .text:0000004a ParamSet_DefaultStickMapping |
||
1272 | *COM*:00000071 EE_Parameter |
||
1273 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:112 .text:00000094 ParamSet_DefaultSet1 |
||
1274 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:285 .text:00000288 ParamSet_DefaultSet2 |
||
1275 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:457 .text:0000047a ParamSet_DefaultSet3 |
||
1276 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:622 .text:00000668 GetParamByte |
||
1277 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:638 .text:00000674 SetParamByte |
||
1278 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:653 .text:0000067e GetParamWord |
||
1279 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:669 .text:00000688 SetParamWord |
||
1280 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:685 .text:00000692 ParamSet_ReadFromEEProm |
||
1281 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:753 .text:00000700 SetActiveParamSet |
||
1282 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:778 .text:0000071a ParamSet_WriteToEEProm |
||
1283 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:854 .text:0000079e MixerTable_ReadFromEEProm |
||
1284 | *COM*:0000004e Mixer |
||
1285 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:902 .text:000007e2 MixerTable_WriteToEEProm |
||
1286 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:946 .text:0000081e MixerTable_Default |
||
1287 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1008 .text:000008ac GetActiveParamSet |
||
1288 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1036 .progmem.data:00000000 __c.0 |
||
1289 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1040 .progmem.data:00000026 __c.1 |
||
1290 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1044 .progmem.data:0000003f __c.2 |
||
1291 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1048 .progmem.data:00000060 __c.3 |
||
1292 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1052 .progmem.data:00000081 __c.4 |
||
1293 | C:\Users\Arthur-P\AppData\Local\Temp/ccuObaaa.s:1057 .text:000008ca ParamSet_Init |
||
1294 | *COM*:00000001 RequiredMotors |
||
1295 | |||
1296 | UNDEFINED SYMBOLS |
||
1297 | __do_copy_data |
||
1298 | __do_clear_bss |
||
1299 | __eeprom_read_byte_1F2021 |
||
1300 | PlatinenVersion |
||
1301 | __eeprom_write_byte_1F2021 |
||
1302 | __eeprom_read_word_1F2021 |
||
1303 | __eeprom_write_word_1F2021 |
||
1304 | __eeprom_read_block_1F2021 |
||
1305 | LED_Init |
||
1306 | __epilogue_restores__ |
||
1307 | __eeprom_write_block_1F2021 |
||
1308 | uart_putchar |
||
1309 | _printf_P |