Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2299 | - | 1 | 1 .file "analog.c" |
2 | 2 .arch atmega1284p |
||
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 .global AdReady |
||
11 | 11 .data |
||
12 | 14 AdReady: |
||
13 | 15 0000 01 .byte 1 |
||
14 | 16 .global AnalogOffsetGier |
||
15 | 19 AnalogOffsetGier: |
||
16 | 20 0001 73 .byte 115 |
||
17 | 21 .global AnalogOffsetRoll |
||
18 | 24 AnalogOffsetRoll: |
||
19 | 25 0002 73 .byte 115 |
||
20 | 26 .global AnalogOffsetNick |
||
21 | 29 AnalogOffsetNick: |
||
22 | 30 0003 73 .byte 115 |
||
23 | 31 .global ZaehlMessungen |
||
24 | 32 .global ZaehlMessungen |
||
25 | 33 .section .bss |
||
26 | 36 ZaehlMessungen: |
||
27 | 37 0000 0000 .skip 2,0 |
||
28 | 38 .global VarioMeter |
||
29 | 39 .global VarioMeter |
||
30 | 42 VarioMeter: |
||
31 | 43 0002 0000 .skip 2,0 |
||
32 | 44 .global ExpandBaro |
||
33 | 45 .global ExpandBaro |
||
34 | 48 ExpandBaro: |
||
35 | 49 0004 00 .skip 1,0 |
||
36 | 50 .global MessLuftdruck |
||
37 | 51 .data |
||
38 | 54 MessLuftdruck: |
||
39 | 55 0004 FF03 .word 1023 |
||
40 | 56 .global SummenHoehe |
||
41 | 57 .global SummenHoehe |
||
42 | 58 .section .bss |
||
43 | 61 SummenHoehe: |
||
44 | 62 0005 0000 0000 .skip 4,0 |
||
45 | 63 .global Luftdruck |
||
46 | 64 .data |
||
47 | 67 Luftdruck: |
||
48 | 68 0006 007D 0000 .long 32000 |
||
49 | 69 .global AdWertAccHoch |
||
50 | 70 .global AdWertAccHoch |
||
51 | 71 .section .bss |
||
52 | 74 AdWertAccHoch: |
||
53 | 75 0009 0000 .skip 2,0 |
||
54 | 76 .global AdWertAccNick |
||
55 | 77 .global AdWertAccNick |
||
56 | 80 AdWertAccNick: |
||
57 | 81 000b 0000 .skip 2,0 |
||
58 | 82 .global AdWertAccRoll |
||
59 | 83 .global AdWertAccRoll |
||
60 | 86 AdWertAccRoll: |
||
61 | 87 000d 0000 .skip 2,0 |
||
62 | 88 .global AdWertGier |
||
63 | 89 .global AdWertGier |
||
64 | 92 AdWertGier: |
||
65 | 93 000f 0000 .skip 2,0 |
||
66 | 94 .global AdWertRoll |
||
67 | 95 .global AdWertRoll |
||
68 | 98 AdWertRoll: |
||
69 | 99 0011 0000 .skip 2,0 |
||
70 | 100 .global AdWertNick |
||
71 | 101 .global AdWertNick |
||
72 | 104 AdWertNick: |
||
73 | 105 0013 0000 .skip 2,0 |
||
74 | 106 .global HiResRoll |
||
75 | 107 .data |
||
76 | 110 HiResRoll: |
||
77 | 111 000a C409 .word 2500 |
||
78 | 112 .global HiResNick |
||
79 | 115 HiResNick: |
||
80 | 116 000c C409 .word 2500 |
||
81 | 117 .global AdWertGierFilter |
||
82 | 118 .global AdWertGierFilter |
||
83 | 119 .section .bss |
||
84 | 122 AdWertGierFilter: |
||
85 | 123 0015 0000 .skip 2,0 |
||
86 | 124 .global AdWertRollFilter |
||
87 | 125 .global AdWertRollFilter |
||
88 | 128 AdWertRollFilter: |
||
89 | 129 0017 0000 .skip 2,0 |
||
90 | 130 .global AdWertNickFilter |
||
91 | 131 .global AdWertNickFilter |
||
92 | 134 AdWertNickFilter: |
||
93 | 135 0019 0000 .skip 2,0 |
||
94 | 136 .global UBat |
||
95 | 137 .data |
||
96 | 140 UBat: |
||
97 | 141 000e 6400 .word 100 |
||
98 | 142 .text |
||
99 | 143 .global ADC_Init |
||
100 | 145 ADC_Init: |
||
101 | 146 /* prologue: frame size=0 */ |
||
102 | 147 /* prologue end (size=0) */ |
||
103 | 148 0000 1092 7C00 sts 124,__zero_reg__ |
||
104 | 149 0004 8FEC ldi r24,lo8(-49) |
||
105 | 150 0006 8093 7A00 sts 122,r24 |
||
106 | 151 /* epilogue: frame size=0 */ |
||
107 | 152 000a 0895 ret |
||
108 | 153 /* epilogue end (size=1) */ |
||
109 | 154 /* function ADC_Init size 6 (5) */ |
||
110 | 156 .section .progmem.data,"a",@progbits |
||
111 | 159 __c.13: |
||
112 | 160 0000 2A00 .string "*" |
||
113 | 163 __c.14: |
||
114 | 164 0002 2E00 .string "." |
||
115 | 165 .text |
||
116 | 166 .global SucheLuftruckOffset |
||
117 | 168 SucheLuftruckOffset: |
||
118 | 169 /* prologue: frame size=0 */ |
||
119 | 170 000c CF93 push r28 |
||
120 | 171 000e DF93 push r29 |
||
121 | 172 /* prologue end (size=2) */ |
||
122 | 173 0010 1092 0000 sts ExpandBaro,__zero_reg__ |
||
123 | 174 0014 86E9 ldi r24,lo8(-106) |
||
124 | 175 0016 87BD out 71-0x20,r24 |
||
125 | 176 0018 83E0 ldi r24,lo8(3) |
||
126 | 177 001a 90E0 ldi r25,hi8(3) |
||
127 | 178 001c 0E94 0000 call GetParamByte |
||
128 | 179 0020 C82F mov r28,r24 |
||
129 | 180 0022 863E cpi r24,lo8(-26) |
||
130 | 181 0024 00F4 brsh .L3 |
||
131 | 182 0026 C65F subi r28,lo8(-(10)) |
||
132 | 183 .L3: |
||
133 | 184 0028 C8BD out 72-0x20,r28 |
||
134 | 185 002a 84E6 ldi r24,lo8(100) |
||
135 | 186 002c 90E0 ldi r25,hi8(100) |
||
136 | 187 002e 0E94 0000 call Delay_ms_Mess |
||
137 | 188 0032 8091 0000 lds r24,MessLuftdruck |
||
138 | 189 0036 9091 0000 lds r25,(MessLuftdruck)+1 |
||
139 | 190 003a 8152 subi r24,lo8(801) |
||
140 | 191 003c 9340 sbci r25,hi8(801) |
||
141 | 192 003e 00F0 brlo .L4 |
||
142 | 193 0040 C0EF ldi r28,lo8(-16) |
||
143 | 194 0042 00C0 rjmp .L9 |
||
144 | 195 .L4: |
||
145 | 196 0044 C530 cpi r28,lo8(5) |
||
146 | 197 0046 00F0 brlo .L6 |
||
147 | 198 .L9: |
||
148 | 199 0048 C8BD out 72-0x20,r28 |
||
149 | 200 004a 82E3 ldi r24,lo8(50) |
||
150 | 201 004c 90E0 ldi r25,hi8(50) |
||
151 | 202 004e 0E94 0000 call Delay_ms_Mess |
||
152 | 203 0052 80E0 ldi r24,lo8(__c.13) |
||
153 | 204 0054 90E0 ldi r25,hi8(__c.13) |
||
154 | 205 0056 9F93 push r25 |
||
155 | 206 0058 8F93 push r24 |
||
156 | 207 005a 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
157 | 208 005c 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
158 | 209 005e 9F93 push r25 |
||
159 | 210 0060 8F93 push r24 |
||
160 | 211 0062 E091 0000 lds r30,_printf_P |
||
161 | 212 0066 F091 0000 lds r31,(_printf_P)+1 |
||
162 | 213 006a 0995 icall |
||
163 | 214 006c 8091 0000 lds r24,MessLuftdruck |
||
164 | 215 0070 9091 0000 lds r25,(MessLuftdruck)+1 |
||
165 | 216 0074 0F90 pop __tmp_reg__ |
||
166 | 217 0076 0F90 pop __tmp_reg__ |
||
167 | 218 0078 0F90 pop __tmp_reg__ |
||
168 | 219 007a 0F90 pop __tmp_reg__ |
||
169 | 220 007c 8152 subi r24,lo8(801) |
||
170 | 221 007e 9340 sbci r25,hi8(801) |
||
171 | 222 0080 00F4 brsh .L6 |
||
172 | 223 0082 C550 subi r28,lo8(-(-5)) |
||
173 | 224 0084 00C0 rjmp .L4 |
||
174 | 225 .L6: |
||
175 | 226 0086 6C2F mov r22,r28 |
||
176 | 227 0088 83E0 ldi r24,lo8(3) |
||
177 | 228 008a 90E0 ldi r25,hi8(3) |
||
178 | 229 008c 0E94 0000 call SetParamByte |
||
179 | 230 0090 CF30 cpi r28,lo8(15) |
||
180 | 231 0092 00F0 brlo .L10 |
||
181 | 232 0094 CCE8 ldi r28,lo8(140) |
||
182 | 233 0096 D0E0 ldi r29,hi8(140) |
||
183 | 234 0098 00C0 rjmp .L11 |
||
184 | 235 .L10: |
||
185 | 236 009a C0E0 ldi r28,lo8(0) |
||
186 | 237 009c D0E0 ldi r29,hi8(0) |
||
187 | 238 .L11: |
||
188 | 239 009e CA3F cpi r28,250 |
||
189 | 240 00a0 D105 cpc r29,__zero_reg__ |
||
190 | 241 00a2 00F4 brsh .L13 |
||
191 | 242 00a4 C7BD out 71-0x20,r28 |
||
192 | 243 00a6 82E3 ldi r24,lo8(50) |
||
193 | 244 00a8 90E0 ldi r25,hi8(50) |
||
194 | 245 00aa 0E94 0000 call Delay_ms_Mess |
||
195 | 246 00ae 80E0 ldi r24,lo8(__c.14) |
||
196 | 247 00b0 90E0 ldi r25,hi8(__c.14) |
||
197 | 248 00b2 9F93 push r25 |
||
198 | 249 00b4 8F93 push r24 |
||
199 | 250 00b6 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
200 | 251 00b8 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
201 | 252 00ba 9F93 push r25 |
||
202 | 253 00bc 8F93 push r24 |
||
203 | 254 00be E091 0000 lds r30,_printf_P |
||
204 | 255 00c2 F091 0000 lds r31,(_printf_P)+1 |
||
205 | 256 00c6 0995 icall |
||
206 | 257 00c8 8091 0000 lds r24,MessLuftdruck |
||
207 | 258 00cc 9091 0000 lds r25,(MessLuftdruck)+1 |
||
208 | 259 00d0 0F90 pop __tmp_reg__ |
||
209 | 260 00d2 0F90 pop __tmp_reg__ |
||
210 | 261 00d4 0F90 pop __tmp_reg__ |
||
211 | 262 00d6 0F90 pop __tmp_reg__ |
||
212 | 263 00d8 8052 subi r24,lo8(800) |
||
213 | 264 00da 9340 sbci r25,hi8(800) |
||
214 | 265 00dc 00F0 brlo .L13 |
||
215 | 266 00de 2196 adiw r28,1 |
||
216 | 267 00e0 00C0 rjmp .L11 |
||
217 | 268 .L13: |
||
218 | 269 00e2 C093 0000 sts DruckOffsetSetting,r28 |
||
219 | 270 00e6 8091 0000 lds r24,EE_Parameter+13 |
||
220 | 271 00ea 80FF sbrs r24,0 |
||
221 | 272 00ec 00C0 rjmp .L17 |
||
222 | 273 00ee 8C2F mov r24,r28 |
||
223 | 274 00f0 8A50 subi r24,lo8(-(-10)) |
||
224 | 275 00f2 8B3E cpi r24,lo8(-21) |
||
225 | 276 00f4 00F0 brlo .L17 |
||
226 | 277 00f6 8091 0000 lds r24,VersionInfo+5 |
||
227 | 278 00fa 8064 ori r24,lo8(64) |
||
228 | 279 00fc 8093 0000 sts VersionInfo+5,r24 |
||
229 | 280 .L17: |
||
230 | 281 0100 C7BD out 71-0x20,r28 |
||
231 | 282 0102 8CE2 ldi r24,lo8(300) |
||
232 | 283 0104 91E0 ldi r25,hi8(300) |
||
233 | 284 0106 0E94 0000 call Delay_ms_Mess |
||
234 | 285 /* epilogue: frame size=0 */ |
||
235 | 286 010a DF91 pop r29 |
||
236 | 287 010c CF91 pop r28 |
||
237 | 288 010e 0895 ret |
||
238 | 289 /* epilogue end (size=3) */ |
||
239 | 290 /* function SucheLuftruckOffset size 133 (128) */ |
||
240 | 292 .section .progmem.data |
||
241 | 295 __c.12: |
||
242 | 296 0004 0A0D 2044 .string "\n\r DAC or I2C ERROR! Check I2C, 3Vref, DAC and BL-Ctrl" |
||
243 | 296 4143 206F |
||
244 | 296 7220 4932 |
||
245 | 296 4320 4552 |
||
246 | 296 524F 5221 |
||
247 | 297 .text |
||
248 | 298 .global SucheGyroOffset |
||
249 | 300 SucheGyroOffset: |
||
250 | 301 /* prologue: frame size=0 */ |
||
251 | 302 0110 EF92 push r14 |
||
252 | 303 0112 FF92 push r15 |
||
253 | 304 0114 1F93 push r17 |
||
254 | 305 0116 CF93 push r28 |
||
255 | 306 /* prologue end (size=4) */ |
||
256 | 307 0118 10E0 ldi r17,lo8(0) |
||
257 | 308 011a 80ED ldi r24,lo8(2000) |
||
258 | 309 011c 97E0 ldi r25,hi8(2000) |
||
259 | 310 011e 0E94 0000 call SetDelay |
||
260 | 311 0122 7C01 movw r14,r24 |
||
261 | 312 0124 CCE8 ldi r28,lo8(-116) |
||
262 | 313 .L51: |
||
263 | 314 0126 1330 cpi r17,lo8(3) |
||
264 | 315 0128 01F4 brne .L24 |
||
265 | 316 012a CB30 cpi r28,lo8(11) |
||
266 | 317 012c 00F0 brlo .L24 |
||
267 | 318 012e C9E0 ldi r28,lo8(9) |
||
268 | 319 .L24: |
||
269 | 320 0130 10E0 ldi r17,lo8(0) |
||
270 | 321 0132 8091 0000 lds r24,AdWertNick |
||
271 | 322 0136 9091 0000 lds r25,(AdWertNick)+1 |
||
272 | 323 013a 8C5F subi r24,lo8(1020) |
||
273 | 324 013c 9340 sbci r25,hi8(1020) |
||
274 | 325 013e 04F4 brge .L25 |
||
275 | 326 0140 8091 0000 lds r24,AnalogOffsetNick |
||
276 | 327 0144 8150 subi r24,lo8(-(-1)) |
||
277 | 328 0146 00C0 rjmp .L56 |
||
278 | 329 .L25: |
||
279 | 330 0148 8091 0000 lds r24,AdWertNick |
||
280 | 331 014c 9091 0000 lds r25,(AdWertNick)+1 |
||
281 | 332 0150 8750 subi r24,lo8(1031) |
||
282 | 333 0152 9440 sbci r25,hi8(1031) |
||
283 | 334 0154 04F0 brlt .L27 |
||
284 | 335 0156 8091 0000 lds r24,AnalogOffsetNick |
||
285 | 336 015a 8F5F subi r24,lo8(-(1)) |
||
286 | 337 .L56: |
||
287 | 338 015c 8093 0000 sts AnalogOffsetNick,r24 |
||
288 | 339 0160 00C0 rjmp .L26 |
||
289 | 340 .L27: |
||
290 | 341 0162 11E0 ldi r17,lo8(1) |
||
291 | 342 .L26: |
||
292 | 343 0164 8091 0000 lds r24,AdWertRoll |
||
293 | 344 0168 9091 0000 lds r25,(AdWertRoll)+1 |
||
294 | 345 016c 8C5F subi r24,lo8(1020) |
||
295 | 346 016e 9340 sbci r25,hi8(1020) |
||
296 | 347 0170 04F4 brge .L29 |
||
297 | 348 0172 8091 0000 lds r24,AnalogOffsetRoll |
||
298 | 349 0176 8150 subi r24,lo8(-(-1)) |
||
299 | 350 0178 00C0 rjmp .L57 |
||
300 | 351 .L29: |
||
301 | 352 017a 8091 0000 lds r24,AdWertRoll |
||
302 | 353 017e 9091 0000 lds r25,(AdWertRoll)+1 |
||
303 | 354 0182 8750 subi r24,lo8(1031) |
||
304 | 355 0184 9440 sbci r25,hi8(1031) |
||
305 | 356 0186 04F0 brlt .L31 |
||
306 | 357 0188 8091 0000 lds r24,AnalogOffsetRoll |
||
307 | 358 018c 8F5F subi r24,lo8(-(1)) |
||
308 | 359 .L57: |
||
309 | 360 018e 8093 0000 sts AnalogOffsetRoll,r24 |
||
310 | 361 0192 00C0 rjmp .L30 |
||
311 | 362 .L31: |
||
312 | 363 0194 1F5F subi r17,lo8(-(1)) |
||
313 | 364 .L30: |
||
314 | 365 0196 8091 0000 lds r24,AdWertGier |
||
315 | 366 019a 9091 0000 lds r25,(AdWertGier)+1 |
||
316 | 367 019e 8C5F subi r24,lo8(1020) |
||
317 | 368 01a0 9340 sbci r25,hi8(1020) |
||
318 | 369 01a2 04F4 brge .L33 |
||
319 | 370 01a4 8091 0000 lds r24,AnalogOffsetGier |
||
320 | 371 01a8 8150 subi r24,lo8(-(-1)) |
||
321 | 372 01aa 00C0 rjmp .L58 |
||
322 | 373 .L33: |
||
323 | 374 01ac 8091 0000 lds r24,AdWertGier |
||
324 | 375 01b0 9091 0000 lds r25,(AdWertGier)+1 |
||
325 | 376 01b4 8750 subi r24,lo8(1031) |
||
326 | 377 01b6 9440 sbci r25,hi8(1031) |
||
327 | 378 01b8 04F0 brlt .L35 |
||
328 | 379 01ba 8091 0000 lds r24,AnalogOffsetGier |
||
329 | 380 01be 8F5F subi r24,lo8(-(1)) |
||
330 | 381 .L58: |
||
331 | 382 01c0 8093 0000 sts AnalogOffsetGier,r24 |
||
332 | 383 01c4 00C0 rjmp .L34 |
||
333 | 384 .L55: |
||
334 | 385 01c6 80E0 ldi r24,lo8(__c.12) |
||
335 | 386 01c8 90E0 ldi r25,hi8(__c.12) |
||
336 | 387 01ca 9F93 push r25 |
||
337 | 388 01cc 8F93 push r24 |
||
338 | 389 01ce 80E0 ldi r24,lo8(pm(uart_putchar)) |
||
339 | 390 01d0 90E0 ldi r25,hi8(pm(uart_putchar)) |
||
340 | 391 01d2 9F93 push r25 |
||
341 | 392 01d4 8F93 push r24 |
||
342 | 393 01d6 E091 0000 lds r30,_printf_P |
||
343 | 394 01da F091 0000 lds r31,(_printf_P)+1 |
||
344 | 395 01de 0995 icall |
||
345 | 396 01e0 0F90 pop __tmp_reg__ |
||
346 | 397 01e2 0F90 pop __tmp_reg__ |
||
347 | 398 01e4 0F90 pop __tmp_reg__ |
||
348 | 399 01e6 0F90 pop __tmp_reg__ |
||
349 | 400 01e8 00C0 rjmp .L44 |
||
350 | 401 .L35: |
||
351 | 402 01ea 1F5F subi r17,lo8(-(1)) |
||
352 | 403 .L34: |
||
353 | 404 01ec 82E1 ldi r24,lo8(18) |
||
354 | 405 01ee 8093 0000 sts twi_state,r24 |
||
355 | 406 01f2 8091 0000 lds r24,BLFlags |
||
356 | 407 01f6 8E7F andi r24,lo8(-2) |
||
357 | 408 01f8 8093 0000 sts BLFlags,r24 |
||
358 | 409 01fc 85EA ldi r24,lo8(-91) |
||
359 | 410 01fe 8093 BC00 sts 188,r24 |
||
360 | 411 0202 8091 0000 lds r24,AnalogOffsetNick |
||
361 | 412 0206 8A30 cpi r24,lo8(10) |
||
362 | 413 0208 00F4 brsh .L37 |
||
363 | 414 020a 8091 0000 lds r24,VersionInfo+5 |
||
364 | 415 020e 8160 ori r24,lo8(1) |
||
365 | 416 0210 8093 0000 sts VersionInfo+5,r24 |
||
366 | 417 0214 8AE0 ldi r24,lo8(10) |
||
367 | 418 0216 8093 0000 sts AnalogOffsetNick,r24 |
||
368 | 419 .L37: |
||
369 | 420 021a 8091 0000 lds r24,AnalogOffsetNick |
||
370 | 421 021e 863F cpi r24,lo8(-10) |
||
371 | 422 0220 00F0 brlo .L38 |
||
372 | 423 0222 8091 0000 lds r24,VersionInfo+5 |
||
373 | 424 0226 8160 ori r24,lo8(1) |
||
374 | 425 0228 8093 0000 sts VersionInfo+5,r24 |
||
375 | 426 022c 85EF ldi r24,lo8(-11) |
||
376 | 427 022e 8093 0000 sts AnalogOffsetNick,r24 |
||
377 | 428 .L38: |
||
378 | 429 0232 8091 0000 lds r24,AnalogOffsetRoll |
||
379 | 430 0236 8A30 cpi r24,lo8(10) |
||
380 | 431 0238 00F4 brsh .L39 |
||
381 | 432 023a 8091 0000 lds r24,VersionInfo+5 |
||
382 | 433 023e 8260 ori r24,lo8(2) |
||
383 | 434 0240 8093 0000 sts VersionInfo+5,r24 |
||
384 | 435 0244 8AE0 ldi r24,lo8(10) |
||
385 | 436 0246 8093 0000 sts AnalogOffsetRoll,r24 |
||
386 | 437 .L39: |
||
387 | 438 024a 8091 0000 lds r24,AnalogOffsetRoll |
||
388 | 439 024e 863F cpi r24,lo8(-10) |
||
389 | 440 0250 00F0 brlo .L40 |
||
390 | 441 0252 8091 0000 lds r24,VersionInfo+5 |
||
391 | 442 0256 8260 ori r24,lo8(2) |
||
392 | 443 0258 8093 0000 sts VersionInfo+5,r24 |
||
393 | 444 025c 85EF ldi r24,lo8(-11) |
||
394 | 445 025e 8093 0000 sts AnalogOffsetRoll,r24 |
||
395 | 446 .L40: |
||
396 | 447 0262 8091 0000 lds r24,AnalogOffsetGier |
||
397 | 448 0266 8A30 cpi r24,lo8(10) |
||
398 | 449 0268 00F4 brsh .L41 |
||
399 | 450 026a 8091 0000 lds r24,VersionInfo+5 |
||
400 | 451 026e 8460 ori r24,lo8(4) |
||
401 | 452 0270 8093 0000 sts VersionInfo+5,r24 |
||
402 | 453 0274 8AE0 ldi r24,lo8(10) |
||
403 | 454 0276 8093 0000 sts AnalogOffsetGier,r24 |
||
404 | 455 .L41: |
||
405 | 456 027a 8091 0000 lds r24,AnalogOffsetGier |
||
406 | 457 027e 863F cpi r24,lo8(-10) |
||
407 | 458 0280 00F0 brlo .L42 |
||
408 | 459 0282 8091 0000 lds r24,VersionInfo+5 |
||
409 | 460 0286 8460 ori r24,lo8(4) |
||
410 | 461 0288 8093 0000 sts VersionInfo+5,r24 |
||
411 | 462 028c 85EF ldi r24,lo8(-11) |
||
412 | 463 028e 8093 0000 sts AnalogOffsetGier,r24 |
||
413 | 464 .L42: |
||
414 | 465 0292 8091 0000 lds r24,twi_state |
||
415 | 466 0296 8823 tst r24 |
||
416 | 467 0298 01F0 breq .L44 |
||
417 | 468 029a C701 movw r24,r14 |
||
418 | 469 029c 0E94 0000 call CheckDelay |
||
419 | 470 02a0 8823 tst r24 |
||
420 | 471 02a2 01F0 breq .+2 |
||
421 | 472 02a4 00C0 rjmp .L55 |
||
422 | 473 02a6 00C0 rjmp .L42 |
||
423 | 474 .L44: |
||
424 | 475 02a8 1092 0000 sts AdReady,__zero_reg__ |
||
425 | 476 02ac 8FEC ldi r24,lo8(-49) |
||
426 | 477 02ae 8093 7A00 sts 122,r24 |
||
427 | 478 .L47: |
||
428 | 479 02b2 8091 0000 lds r24,AdReady |
||
429 | 480 02b6 8823 tst r24 |
||
430 | 481 02b8 01F0 breq .L47 |
||
431 | 482 02ba CA30 cpi r28,lo8(10) |
||
432 | 483 02bc 00F4 brsh .L23 |
||
433 | 484 02be 8AE0 ldi r24,lo8(10) |
||
434 | 485 02c0 90E0 ldi r25,hi8(10) |
||
435 | 486 02c2 0E94 0000 call Delay_ms_Mess |
||
436 | 487 .L23: |
||
437 | 488 02c6 C150 subi r28,lo8(-(-1)) |
||
438 | 489 02c8 01F0 breq .+2 |
||
439 | 490 02ca 00C0 rjmp .L51 |
||
440 | 491 02cc 86E4 ldi r24,lo8(70) |
||
441 | 492 02ce 90E0 ldi r25,hi8(70) |
||
442 | 493 02d0 0E94 0000 call Delay_ms_Mess |
||
443 | 494 /* epilogue: frame size=0 */ |
||
444 | 495 02d4 CF91 pop r28 |
||
445 | 496 02d6 1F91 pop r17 |
||
446 | 497 02d8 FF90 pop r15 |
||
447 | 498 02da EF90 pop r14 |
||
448 | 499 02dc 0895 ret |
||
449 | 500 /* epilogue end (size=5) */ |
||
450 | 501 /* function SucheGyroOffset size 238 (229) */ |
||
451 | 503 .lcomm kanal.0,1 |
||
452 | 504 .lcomm state.1,1 |
||
453 | 505 .lcomm subcount.2,1 |
||
454 | 506 .lcomm gier1.3,2 |
||
455 | 507 .lcomm roll1.4,2 |
||
456 | 508 .lcomm nick1.5,2 |
||
457 | 509 .lcomm nick_filter.6,2 |
||
458 | 510 .lcomm roll_filter.7,2 |
||
459 | 511 .lcomm accy.8,2 |
||
460 | 512 .lcomm accx.9,2 |
||
461 | 513 .lcomm tmpLuftdruck.10,4 |
||
462 | 514 .lcomm messanzahl_Druck.11,1 |
||
463 | 515 .global __vector_24 |
||
464 | 517 __vector_24: |
||
465 | 518 /* prologue: frame size=0 */ |
||
466 | 519 02de 1F92 push __zero_reg__ |
||
467 | 520 02e0 0F92 push __tmp_reg__ |
||
468 | 521 02e2 0FB6 in __tmp_reg__,__SREG__ |
||
469 | 522 02e4 0F92 push __tmp_reg__ |
||
470 | 523 02e6 1124 clr __zero_reg__ |
||
471 | 524 02e8 EF92 push r14 |
||
472 | 525 02ea FF92 push r15 |
||
473 | 526 02ec 0F93 push r16 |
||
474 | 527 02ee 1F93 push r17 |
||
475 | 528 02f0 2F93 push r18 |
||
476 | 529 02f2 3F93 push r19 |
||
477 | 530 02f4 4F93 push r20 |
||
478 | 531 02f6 5F93 push r21 |
||
479 | 532 02f8 6F93 push r22 |
||
480 | 533 02fa 7F93 push r23 |
||
481 | 534 02fc 8F93 push r24 |
||
482 | 535 02fe 9F93 push r25 |
||
483 | 536 0300 AF93 push r26 |
||
484 | 537 0302 BF93 push r27 |
||
485 | 538 0304 EF93 push r30 |
||
486 | 539 0306 FF93 push r31 |
||
487 | 540 /* prologue end (size=21) */ |
||
488 | 541 0308 8091 0000 lds r24,state.1 |
||
489 | 542 030c 282F mov r18,r24 |
||
490 | 543 030e 3327 clr r19 |
||
491 | 544 0310 4427 clr r20 |
||
492 | 545 0312 5527 clr r21 |
||
493 | 546 0314 8F5F subi r24,lo8(-(1)) |
||
494 | 547 0316 8093 0000 sts state.1,r24 |
||
495 | 548 031a F901 movw r30,r18 |
||
496 | 549 031c 2231 cpi r18,18 |
||
497 | 550 031e 3105 cpc r19,__zero_reg__ |
||
498 | 551 0320 00F0 brlo .+2 |
||
499 | 552 0322 00C0 rjmp .L118 |
||
500 | 553 0324 E050 subi r30,lo8(-(pm(.L119))) |
||
501 | 554 0326 F040 sbci r31,hi8(-(pm(.L119))) |
||
502 | 555 0328 0C94 0000 jmp __tablejump2__ |
||
503 | 556 .data |
||
504 | 557 .section .progmem.gcc_sw_table, "a", @progbits |
||
505 | 558 .p2align 1 |
||
506 | 559 .L119: |
||
507 | 560 0000 0000 .word pm(.L61) |
||
508 | 561 0002 0000 .word pm(.L62) |
||
509 | 562 0004 0000 .word pm(.L63) |
||
510 | 563 0006 0000 .word pm(.L64) |
||
511 | 564 0008 0000 .word pm(.L65) |
||
512 | 565 000a 0000 .word pm(.L66) |
||
513 | 566 000c 0000 .word pm(.L67) |
||
514 | 567 000e 0000 .word pm(.L68) |
||
515 | 568 0010 0000 .word pm(.L71) |
||
516 | 569 0012 0000 .word pm(.L104) |
||
517 | 570 0014 0000 .word pm(.L66) |
||
518 | 571 0016 0000 .word pm(.L83) |
||
519 | 572 0018 0000 .word pm(.L84) |
||
520 | 573 001a 0000 .word pm(.L89) |
||
521 | 574 001c 0000 .word pm(.L90) |
||
522 | 575 001e 0000 .word pm(.L91) |
||
523 | 576 0020 0000 .word pm(.L97) |
||
524 | 577 0022 0000 .word pm(.L103) |
||
525 | 578 .text |
||
526 | 579 .L61: |
||
527 | 580 032c 8091 7800 lds r24,120 |
||
528 | 581 0330 9091 7900 lds r25,(120)+1 |
||
529 | 582 0334 00C0 rjmp .L130 |
||
530 | 583 .L62: |
||
531 | 584 0336 8091 7800 lds r24,120 |
||
532 | 585 033a 9091 7900 lds r25,(120)+1 |
||
533 | 586 033e 00C0 rjmp .L129 |
||
534 | 587 .L63: |
||
535 | 588 0340 8091 7800 lds r24,120 |
||
536 | 589 0344 9091 7900 lds r25,(120)+1 |
||
537 | 590 0348 9093 0000 sts (gier1.3)+1,r25 |
||
538 | 591 034c 8093 0000 sts gier1.3,r24 |
||
539 | 592 0350 00C0 rjmp .L131 |
||
540 | 593 .L64: |
||
541 | 594 0352 8091 0000 lds r24,NeutralAccY |
||
542 | 595 0356 9091 0000 lds r25,(NeutralAccY)+1 |
||
543 | 596 035a 2091 7800 lds r18,120 |
||
544 | 597 035e 3091 7900 lds r19,(120)+1 |
||
545 | 598 0362 821B sub r24,r18 |
||
546 | 599 0364 930B sbc r25,r19 |
||
547 | 600 0366 9093 0000 sts (Aktuell_ay)+1,r25 |
||
548 | 601 036a 8093 0000 sts Aktuell_ay,r24 |
||
549 | 602 036e 8091 0000 lds r24,Aktuell_ay |
||
550 | 603 0372 9091 0000 lds r25,(Aktuell_ay)+1 |
||
551 | 604 0376 9093 0000 sts (accy.8)+1,r25 |
||
552 | 605 037a 8093 0000 sts accy.8,r24 |
||
553 | 606 037e 00C0 rjmp .L132 |
||
554 | 607 .L65: |
||
555 | 608 0380 8091 7800 lds r24,120 |
||
556 | 609 0384 9091 7900 lds r25,(120)+1 |
||
557 | 610 0388 2091 0000 lds r18,NeutralAccX |
||
558 | 611 038c 3091 0000 lds r19,(NeutralAccX)+1 |
||
559 | 612 0390 821B sub r24,r18 |
||
560 | 613 0392 930B sbc r25,r19 |
||
561 | 614 0394 9093 0000 sts (Aktuell_ax)+1,r25 |
||
562 | 615 0398 8093 0000 sts Aktuell_ax,r24 |
||
563 | 616 039c 8091 0000 lds r24,Aktuell_ax |
||
564 | 617 03a0 9091 0000 lds r25,(Aktuell_ax)+1 |
||
565 | 618 03a4 9093 0000 sts (accx.9)+1,r25 |
||
566 | 619 03a8 8093 0000 sts accx.9,r24 |
||
567 | 620 03ac 00C0 rjmp .L127 |
||
568 | 621 .L66: |
||
569 | 622 03ae 8091 0000 lds r24,nick1.5 |
||
570 | 623 03b2 9091 0000 lds r25,(nick1.5)+1 |
||
571 | 624 03b6 2091 7800 lds r18,120 |
||
572 | 625 03ba 3091 7900 lds r19,(120)+1 |
||
573 | 626 03be 820F add r24,r18 |
||
574 | 627 03c0 931F adc r25,r19 |
||
575 | 628 .L130: |
||
576 | 629 03c2 9093 0000 sts (nick1.5)+1,r25 |
||
577 | 630 03c6 8093 0000 sts nick1.5,r24 |
||
578 | 631 .L134: |
||
579 | 632 03ca 81E0 ldi r24,lo8(1) |
||
580 | 633 03cc 00C0 rjmp .L128 |
||
581 | 634 .L67: |
||
582 | 635 03ce 8091 0000 lds r24,roll1.4 |
||
583 | 636 03d2 9091 0000 lds r25,(roll1.4)+1 |
||
584 | 637 03d6 2091 7800 lds r18,120 |
||
585 | 638 03da 3091 7900 lds r19,(120)+1 |
||
586 | 639 03de 820F add r24,r18 |
||
587 | 640 03e0 931F adc r25,r19 |
||
588 | 641 03e2 9093 0000 sts (roll1.4)+1,r25 |
||
589 | 642 03e6 8093 0000 sts roll1.4,r24 |
||
590 | 643 03ea 84E0 ldi r24,lo8(4) |
||
591 | 644 03ec 00C0 rjmp .L128 |
||
592 | 645 .L68: |
||
593 | 646 03ee 8091 0000 lds r24,EE_Parameter+110 |
||
594 | 647 03f2 83FF sbrs r24,3 |
||
595 | 648 03f4 00C0 rjmp .L69 |
||
596 | 649 03f6 8091 0000 lds r24,UBat |
||
597 | 650 03fa 9091 0000 lds r25,(UBat)+1 |
||
598 | 651 03fe 9C01 movw r18,r24 |
||
599 | 652 0400 220F lsl r18 |
||
600 | 653 0402 331F rol r19 |
||
601 | 654 0404 280F add r18,r24 |
||
602 | 655 0406 391F adc r19,r25 |
||
603 | 656 0408 4091 7800 lds r20,120 |
||
604 | 657 040c 5091 7900 lds r21,(120)+1 |
||
605 | 658 0410 8BE0 ldi r24,lo8(11) |
||
606 | 659 0412 90E0 ldi r25,hi8(11) |
||
607 | 660 0414 489F mul r20,r24 |
||
608 | 661 0416 B001 movw r22,r0 |
||
609 | 662 0418 499F mul r20,r25 |
||
610 | 663 041a 700D add r23,r0 |
||
611 | 664 041c 589F mul r21,r24 |
||
612 | 665 041e 700D add r23,r0 |
||
613 | 666 0420 1124 clr r1 |
||
614 | 667 0422 CB01 movw r24,r22 |
||
615 | 668 0424 6EE1 ldi r22,lo8(30) |
||
616 | 669 0426 70E0 ldi r23,hi8(30) |
||
617 | 670 0428 00C0 rjmp .L121 |
||
618 | 671 .L69: |
||
619 | 672 042a 8091 0000 lds r24,UBat |
||
620 | 673 042e 9091 0000 lds r25,(UBat)+1 |
||
621 | 674 0432 9C01 movw r18,r24 |
||
622 | 675 0434 220F lsl r18 |
||
623 | 676 0436 331F rol r19 |
||
624 | 677 0438 280F add r18,r24 |
||
625 | 678 043a 391F adc r19,r25 |
||
626 | 679 043c 8091 7800 lds r24,120 |
||
627 | 680 0440 9091 7900 lds r25,(120)+1 |
||
628 | 681 0444 63E0 ldi r22,lo8(3) |
||
629 | 682 0446 70E0 ldi r23,hi8(3) |
||
630 | 683 .L121: |
||
631 | 684 0448 0E94 0000 call __udivmodhi4 |
||
632 | 685 044c 260F add r18,r22 |
||
633 | 686 044e 371F adc r19,r23 |
||
634 | 687 0450 3695 lsr r19 |
||
635 | 688 0452 2795 ror r18 |
||
636 | 689 0454 3695 lsr r19 |
||
637 | 690 0456 2795 ror r18 |
||
638 | 691 0458 3093 0000 sts (UBat)+1,r19 |
||
639 | 692 045c 2093 0000 sts UBat,r18 |
||
640 | 693 0460 85E0 ldi r24,lo8(5) |
||
641 | 694 0462 00C0 rjmp .L128 |
||
642 | 695 .L71: |
||
643 | 696 0464 8091 7800 lds r24,120 |
||
644 | 697 0468 9091 7900 lds r25,(120)+1 |
||
645 | 698 046c 4091 0000 lds r20,NeutralAccZ |
||
646 | 699 0470 5091 0000 lds r21,(NeutralAccZ)+1 |
||
647 | 700 0474 841B sub r24,r20 |
||
648 | 701 0476 950B sbc r25,r21 |
||
649 | 702 0478 9093 0000 sts (AdWertAccHoch)+1,r25 |
||
650 | 703 047c 8093 0000 sts AdWertAccHoch,r24 |
||
651 | 704 0480 8091 0000 lds r24,AdWertAccHoch |
||
652 | 705 0484 9091 0000 lds r25,(AdWertAccHoch)+1 |
||
653 | 706 0488 0297 sbiw r24,2 |
||
654 | 707 048a 04F0 brlt .L72 |
||
655 | 708 048c 72E0 ldi r23,hi8(750) |
||
656 | 709 048e 4E3E cpi r20,lo8(750) |
||
657 | 710 0490 5707 cpc r21,r23 |
||
658 | 711 0492 04F4 brge .L73 |
||
659 | 712 0494 2091 0000 lds r18,subcount.2 |
||
660 | 713 0498 2B5F subi r18,lo8(-(5)) |
||
661 | 714 049a 2093 0000 sts subcount.2,r18 |
||
662 | 715 049e 2550 subi r18,lo8(-(-5)) |
||
663 | 716 04a0 8091 0000 lds r24,modell_fliegt |
||
664 | 717 04a4 9091 0000 lds r25,(modell_fliegt)+1 |
||
665 | 718 04a8 845F subi r24,lo8(500) |
||
666 | 719 04aa 9140 sbci r25,hi8(500) |
||
667 | 720 04ac 00F4 brsh .L73 |
||
668 | 721 04ae 215F subi r18,lo8(-(15)) |
||
669 | 722 04b0 2093 0000 sts subcount.2,r18 |
||
670 | 723 .L73: |
||
671 | 724 04b4 8091 0000 lds r24,subcount.2 |
||
672 | 725 04b8 8536 cpi r24,lo8(101) |
||
673 | 726 04ba 04F0 brlt .L76 |
||
674 | 727 04bc 4F5F subi r20,lo8(-(1)) |
||
675 | 728 04be 5F4F sbci r21,hi8(-(1)) |
||
676 | 729 04c0 5093 0000 sts (NeutralAccZ)+1,r21 |
||
677 | 730 04c4 4093 0000 sts NeutralAccZ,r20 |
||
678 | 731 04c8 8456 subi r24,lo8(-(-100)) |
||
679 | 732 04ca 00C0 rjmp .L122 |
||
680 | 733 .L72: |
||
681 | 734 04cc 8091 0000 lds r24,AdWertAccHoch |
||
682 | 735 04d0 9091 0000 lds r25,(AdWertAccHoch)+1 |
||
683 | 736 04d4 8F5F subi r24,lo8(-1) |
||
684 | 737 04d6 9F4F sbci r25,hi8(-1) |
||
685 | 738 04d8 04F4 brge .L76 |
||
686 | 739 04da 72E0 ldi r23,hi8(551) |
||
687 | 740 04dc 4732 cpi r20,lo8(551) |
||
688 | 741 04de 5707 cpc r21,r23 |
||
689 | 742 04e0 04F0 brlt .L76 |
||
690 | 743 04e2 2091 0000 lds r18,subcount.2 |
||
691 | 744 04e6 2550 subi r18,lo8(-(-5)) |
||
692 | 745 04e8 2093 0000 sts subcount.2,r18 |
||
693 | 746 04ec 2B5F subi r18,lo8(-(5)) |
||
694 | 747 04ee 8091 0000 lds r24,modell_fliegt |
||
695 | 748 04f2 9091 0000 lds r25,(modell_fliegt)+1 |
||
696 | 749 04f6 845F subi r24,lo8(500) |
||
697 | 750 04f8 9140 sbci r25,hi8(500) |
||
698 | 751 04fa 00F4 brsh .L79 |
||
699 | 752 04fc 2F50 subi r18,lo8(-(-15)) |
||
700 | 753 04fe 2093 0000 sts subcount.2,r18 |
||
701 | 754 .L79: |
||
702 | 755 0502 8091 0000 lds r24,subcount.2 |
||
703 | 756 0506 8C39 cpi r24,lo8(-100) |
||
704 | 757 0508 04F4 brge .L76 |
||
705 | 758 050a 4150 subi r20,lo8(-(-1)) |
||
706 | 759 050c 5040 sbci r21,hi8(-(-1)) |
||
707 | 760 050e 5093 0000 sts (NeutralAccZ)+1,r21 |
||
708 | 761 0512 4093 0000 sts NeutralAccZ,r20 |
||
709 | 762 0516 8C59 subi r24,lo8(-(100)) |
||
710 | 763 .L122: |
||
711 | 764 0518 8093 0000 sts subcount.2,r24 |
||
712 | 765 .L76: |
||
713 | 766 051c 8091 7800 lds r24,120 |
||
714 | 767 0520 9091 7900 lds r25,(120)+1 |
||
715 | 768 0524 9093 0000 sts (Aktuell_az)+1,r25 |
||
716 | 769 0528 8093 0000 sts Aktuell_az,r24 |
||
717 | 770 052c 8091 0000 lds r24,AdWertAccHoch |
||
718 | 771 0530 9091 0000 lds r25,(AdWertAccHoch)+1 |
||
719 | 772 0534 9C01 movw r18,r24 |
||
720 | 773 0536 4427 clr r20 |
||
721 | 774 0538 37FD sbrc r19,7 |
||
722 | 775 053a 4095 com r20 |
||
723 | 776 053c 542F mov r21,r20 |
||
724 | 777 053e 8091 0000 lds r24,Mess_Integral_Hoch |
||
725 | 778 0542 9091 0000 lds r25,(Mess_Integral_Hoch)+1 |
||
726 | 779 0546 A091 0000 lds r26,(Mess_Integral_Hoch)+2 |
||
727 | 780 054a B091 0000 lds r27,(Mess_Integral_Hoch)+3 |
||
728 | 781 054e 820F add r24,r18 |
||
729 | 782 0550 931F adc r25,r19 |
||
730 | 783 0552 A41F adc r26,r20 |
||
731 | 784 0554 B51F adc r27,r21 |
||
732 | 785 0556 8093 0000 sts Mess_Integral_Hoch,r24 |
||
733 | 786 055a 9093 0000 sts (Mess_Integral_Hoch)+1,r25 |
||
734 | 787 055e A093 0000 sts (Mess_Integral_Hoch)+2,r26 |
||
735 | 788 0562 B093 0000 sts (Mess_Integral_Hoch)+3,r27 |
||
736 | 789 0566 2091 0000 lds r18,Mess_Integral_Hoch |
||
737 | 790 056a 3091 0000 lds r19,(Mess_Integral_Hoch)+1 |
||
738 | 791 056e 4091 0000 lds r20,(Mess_Integral_Hoch)+2 |
||
739 | 792 0572 5091 0000 lds r21,(Mess_Integral_Hoch)+3 |
||
740 | 793 0576 57FF sbrs r21,7 |
||
741 | 794 0578 00C0 rjmp .L81 |
||
742 | 795 057a 2150 subi r18,lo8(-(1023)) |
||
743 | 796 057c 3C4F sbci r19,hi8(-(1023)) |
||
744 | 797 057e 4F4F sbci r20,hlo8(-(1023)) |
||
745 | 798 0580 5F4F sbci r21,hhi8(-(1023)) |
||
746 | 799 .L81: |
||
747 | 800 0582 6AE0 ldi r22,10 |
||
748 | 801 0584 5595 1: asr r21 |
||
749 | 802 0586 4795 ror r20 |
||
750 | 803 0588 3795 ror r19 |
||
751 | 804 058a 2795 ror r18 |
||
752 | 805 058c 6A95 dec r22 |
||
753 | 806 058e 01F4 brne 1b |
||
754 | 807 0590 8091 0000 lds r24,Mess_Integral_Hoch |
||
755 | 808 0594 9091 0000 lds r25,(Mess_Integral_Hoch)+1 |
||
756 | 809 0598 A091 0000 lds r26,(Mess_Integral_Hoch)+2 |
||
757 | 810 059c B091 0000 lds r27,(Mess_Integral_Hoch)+3 |
||
758 | 811 05a0 821B sub r24,r18 |
||
759 | 812 05a2 930B sbc r25,r19 |
||
760 | 813 05a4 A40B sbc r26,r20 |
||
761 | 814 05a6 B50B sbc r27,r21 |
||
762 | 815 05a8 8093 0000 sts Mess_Integral_Hoch,r24 |
||
763 | 816 05ac 9093 0000 sts (Mess_Integral_Hoch)+1,r25 |
||
764 | 817 05b0 A093 0000 sts (Mess_Integral_Hoch)+2,r26 |
||
765 | 818 05b4 B093 0000 sts (Mess_Integral_Hoch)+3,r27 |
||
766 | 819 05b8 00C0 rjmp .L133 |
||
767 | 820 .L83: |
||
768 | 821 05ba 8091 0000 lds r24,roll1.4 |
||
769 | 822 05be 9091 0000 lds r25,(roll1.4)+1 |
||
770 | 823 05c2 2091 7800 lds r18,120 |
||
771 | 824 05c6 3091 7900 lds r19,(120)+1 |
||
772 | 825 05ca 820F add r24,r18 |
||
773 | 826 05cc 931F adc r25,r19 |
||
774 | 827 .L129: |
||
775 | 828 05ce 9093 0000 sts (roll1.4)+1,r25 |
||
776 | 829 05d2 8093 0000 sts roll1.4,r24 |
||
777 | 830 05d6 1092 0000 sts kanal.0,__zero_reg__ |
||
778 | 831 05da 00C0 rjmp .L60 |
||
779 | 832 .L84: |
||
780 | 833 05dc 8091 0000 lds r24,PlatinenVersion |
||
781 | 834 05e0 8A30 cpi r24,lo8(10) |
||
782 | 835 05e2 01F4 brne .L85 |
||
783 | 836 05e4 8091 7800 lds r24,120 |
||
784 | 837 05e8 9091 7900 lds r25,(120)+1 |
||
785 | 838 05ec 2091 0000 lds r18,gier1.3 |
||
786 | 839 05f0 3091 0000 lds r19,(gier1.3)+1 |
||
787 | 840 05f4 820F add r24,r18 |
||
788 | 841 05f6 931F adc r25,r19 |
||
789 | 842 05f8 0196 adiw r24,1 |
||
790 | 843 05fa 9695 lsr r25 |
||
791 | 844 05fc 8795 ror r24 |
||
792 | 845 05fe 00C0 rjmp .L123 |
||
793 | 846 .L85: |
||
794 | 847 0600 4091 0000 lds r20,gier1.3 |
||
795 | 848 0604 5091 0000 lds r21,(gier1.3)+1 |
||
796 | 849 0608 8431 cpi r24,lo8(20) |
||
797 | 850 060a 00F0 brlo .L87 |
||
798 | 851 060c 2091 7800 lds r18,120 |
||
799 | 852 0610 3091 7900 lds r19,(120)+1 |
||
800 | 853 0614 240F add r18,r20 |
||
801 | 854 0616 351F adc r19,r21 |
||
802 | 855 0618 8FEF ldi r24,lo8(2047) |
||
803 | 856 061a 97E0 ldi r25,hi8(2047) |
||
804 | 857 061c 821B sub r24,r18 |
||
805 | 858 061e 930B sbc r25,r19 |
||
806 | 859 0620 00C0 rjmp .L123 |
||
807 | 860 .L87: |
||
808 | 861 0622 8091 7800 lds r24,120 |
||
809 | 862 0626 9091 7900 lds r25,(120)+1 |
||
810 | 863 062a 840F add r24,r20 |
||
811 | 864 062c 951F adc r25,r21 |
||
812 | 865 .L123: |
||
813 | 866 062e 9093 0000 sts (AdWertGier)+1,r25 |
||
814 | 867 0632 8093 0000 sts AdWertGier,r24 |
||
815 | 868 .L131: |
||
816 | 869 0636 86E0 ldi r24,lo8(6) |
||
817 | 870 0638 00C0 rjmp .L128 |
||
818 | 871 .L89: |
||
819 | 872 063a 8091 0000 lds r24,NeutralAccY |
||
820 | 873 063e 9091 0000 lds r25,(NeutralAccY)+1 |
||
821 | 874 0642 2091 7800 lds r18,120 |
||
822 | 875 0646 3091 7900 lds r19,(120)+1 |
||
823 | 876 064a 821B sub r24,r18 |
||
824 | 877 064c 930B sbc r25,r19 |
||
825 | 878 064e 9093 0000 sts (Aktuell_ay)+1,r25 |
||
826 | 879 0652 8093 0000 sts Aktuell_ay,r24 |
||
827 | 880 0656 8091 0000 lds r24,Aktuell_ay |
||
828 | 881 065a 9091 0000 lds r25,(Aktuell_ay)+1 |
||
829 | 882 065e 2091 0000 lds r18,accy.8 |
||
830 | 883 0662 3091 0000 lds r19,(accy.8)+1 |
||
831 | 884 0666 820F add r24,r18 |
||
832 | 885 0668 931F adc r25,r19 |
||
833 | 886 066a 9093 0000 sts (AdWertAccRoll)+1,r25 |
||
834 | 887 066e 8093 0000 sts AdWertAccRoll,r24 |
||
835 | 888 .L132: |
||
836 | 889 0672 87E0 ldi r24,lo8(7) |
||
837 | 890 0674 00C0 rjmp .L128 |
||
838 | 891 .L90: |
||
839 | 892 0676 8091 7800 lds r24,120 |
||
840 | 893 067a 9091 7900 lds r25,(120)+1 |
||
841 | 894 067e 2091 0000 lds r18,NeutralAccX |
||
842 | 895 0682 3091 0000 lds r19,(NeutralAccX)+1 |
||
843 | 896 0686 821B sub r24,r18 |
||
844 | 897 0688 930B sbc r25,r19 |
||
845 | 898 068a 9093 0000 sts (Aktuell_ax)+1,r25 |
||
846 | 899 068e 8093 0000 sts Aktuell_ax,r24 |
||
847 | 900 0692 8091 0000 lds r24,Aktuell_ax |
||
848 | 901 0696 9091 0000 lds r25,(Aktuell_ax)+1 |
||
849 | 902 069a 2091 0000 lds r18,accx.9 |
||
850 | 903 069e 3091 0000 lds r19,(accx.9)+1 |
||
851 | 904 06a2 820F add r24,r18 |
||
852 | 905 06a4 931F adc r25,r19 |
||
853 | 906 06a6 9093 0000 sts (AdWertAccNick)+1,r25 |
||
854 | 907 06aa 8093 0000 sts AdWertAccNick,r24 |
||
855 | 908 06ae 00C0 rjmp .L127 |
||
856 | 909 .L91: |
||
857 | 910 06b0 2091 0000 lds r18,nick1.5 |
||
858 | 911 06b4 3091 0000 lds r19,(nick1.5)+1 |
||
859 | 912 06b8 8091 7800 lds r24,120 |
||
860 | 913 06bc 9091 7900 lds r25,(120)+1 |
||
861 | 914 06c0 280F add r18,r24 |
||
862 | 915 06c2 391F adc r19,r25 |
||
863 | 916 06c4 3093 0000 sts (nick1.5)+1,r19 |
||
864 | 917 06c8 2093 0000 sts nick1.5,r18 |
||
865 | 918 06cc 8091 0000 lds r24,PlatinenVersion |
||
866 | 919 06d0 8A30 cpi r24,lo8(10) |
||
867 | 920 06d2 01F4 brne .L92 |
||
868 | 921 06d4 220F add r18,r18 |
||
869 | 922 06d6 331F adc r19,r19 |
||
870 | 923 06d8 00C0 rjmp .L124 |
||
871 | 924 .L92: |
||
872 | 925 06da 220F lsl r18 |
||
873 | 926 06dc 331F rol r19 |
||
874 | 927 06de 220F lsl r18 |
||
875 | 928 06e0 331F rol r19 |
||
876 | 929 .L124: |
||
877 | 930 06e2 3093 0000 sts (nick1.5)+1,r19 |
||
878 | 931 06e6 2093 0000 sts nick1.5,r18 |
||
879 | 932 06ea 2091 0000 lds r18,nick1.5 |
||
880 | 933 06ee 3091 0000 lds r19,(nick1.5)+1 |
||
881 | 934 06f2 C901 movw r24,r18 |
||
882 | 935 06f4 37FD sbrc r19,7 |
||
883 | 936 06f6 0796 adiw r24,7 |
||
884 | 937 .L94: |
||
885 | 938 06f8 03E0 ldi r16,3 |
||
886 | 939 06fa 9595 1: asr r25 |
||
887 | 940 06fc 8795 ror r24 |
||
888 | 941 06fe 0A95 dec r16 |
||
889 | 942 0700 01F4 brne 1b |
||
890 | 943 0702 9093 0000 sts (AdWertNick)+1,r25 |
||
891 | 944 0706 8093 0000 sts AdWertNick,r24 |
||
892 | 945 070a 8091 0000 lds r24,nick_filter.6 |
||
893 | 946 070e 9091 0000 lds r25,(nick_filter.6)+1 |
||
894 | 947 0712 820F add r24,r18 |
||
895 | 948 0714 931F adc r25,r19 |
||
896 | 949 0716 97FD sbrc r25,7 |
||
897 | 950 0718 0196 adiw r24,1 |
||
898 | 951 .L95: |
||
899 | 952 071a 9595 asr r25 |
||
900 | 953 071c 8795 ror r24 |
||
901 | 954 071e 9093 0000 sts (nick_filter.6)+1,r25 |
||
902 | 955 0722 8093 0000 sts nick_filter.6,r24 |
||
903 | 956 0726 2091 0000 lds r18,AdNeutralNick |
||
904 | 957 072a 3091 0000 lds r19,(AdNeutralNick)+1 |
||
905 | 958 072e 821B sub r24,r18 |
||
906 | 959 0730 930B sbc r25,r19 |
||
907 | 960 0732 9093 0000 sts (HiResNick)+1,r25 |
||
908 | 961 0736 8093 0000 sts HiResNick,r24 |
||
909 | 962 073a 2091 0000 lds r18,AdWertNickFilter |
||
910 | 963 073e 3091 0000 lds r19,(AdWertNickFilter)+1 |
||
911 | 964 0742 8091 0000 lds r24,HiResNick |
||
912 | 965 0746 9091 0000 lds r25,(HiResNick)+1 |
||
913 | 966 074a 280F add r18,r24 |
||
914 | 967 074c 391F adc r19,r25 |
||
915 | 968 074e 37FF sbrs r19,7 |
||
916 | 969 0750 00C0 rjmp .L96 |
||
917 | 970 0752 2F5F subi r18,lo8(-(1)) |
||
918 | 971 0754 3F4F sbci r19,hi8(-(1)) |
||
919 | 972 .L96: |
||
920 | 973 0756 3595 asr r19 |
||
921 | 974 0758 2795 ror r18 |
||
922 | 975 075a 3093 0000 sts (AdWertNickFilter)+1,r19 |
||
923 | 976 075e 2093 0000 sts AdWertNickFilter,r18 |
||
924 | 977 0762 00C0 rjmp .L134 |
||
925 | 978 .L97: |
||
926 | 979 0764 2091 0000 lds r18,roll1.4 |
||
927 | 980 0768 3091 0000 lds r19,(roll1.4)+1 |
||
928 | 981 076c 8091 7800 lds r24,120 |
||
929 | 982 0770 9091 7900 lds r25,(120)+1 |
||
930 | 983 0774 280F add r18,r24 |
||
931 | 984 0776 391F adc r19,r25 |
||
932 | 985 0778 3093 0000 sts (roll1.4)+1,r19 |
||
933 | 986 077c 2093 0000 sts roll1.4,r18 |
||
934 | 987 0780 8091 0000 lds r24,PlatinenVersion |
||
935 | 988 0784 8A30 cpi r24,lo8(10) |
||
936 | 989 0786 01F4 brne .L98 |
||
937 | 990 0788 220F add r18,r18 |
||
938 | 991 078a 331F adc r19,r19 |
||
939 | 992 078c 00C0 rjmp .L125 |
||
940 | 993 .L98: |
||
941 | 994 078e 220F lsl r18 |
||
942 | 995 0790 331F rol r19 |
||
943 | 996 0792 220F lsl r18 |
||
944 | 997 0794 331F rol r19 |
||
945 | 998 .L125: |
||
946 | 999 0796 3093 0000 sts (roll1.4)+1,r19 |
||
947 | 1000 079a 2093 0000 sts roll1.4,r18 |
||
948 | 1001 079e 2091 0000 lds r18,roll1.4 |
||
949 | 1002 07a2 3091 0000 lds r19,(roll1.4)+1 |
||
950 | 1003 07a6 C901 movw r24,r18 |
||
951 | 1004 07a8 37FD sbrc r19,7 |
||
952 | 1005 07aa 0796 adiw r24,7 |
||
953 | 1006 .L100: |
||
954 | 1007 07ac F3E0 ldi r31,3 |
||
955 | 1008 07ae 9595 1: asr r25 |
||
956 | 1009 07b0 8795 ror r24 |
||
957 | 1010 07b2 FA95 dec r31 |
||
958 | 1011 07b4 01F4 brne 1b |
||
959 | 1012 07b6 9093 0000 sts (AdWertRoll)+1,r25 |
||
960 | 1013 07ba 8093 0000 sts AdWertRoll,r24 |
||
961 | 1014 07be 8091 0000 lds r24,roll_filter.7 |
||
962 | 1015 07c2 9091 0000 lds r25,(roll_filter.7)+1 |
||
963 | 1016 07c6 820F add r24,r18 |
||
964 | 1017 07c8 931F adc r25,r19 |
||
965 | 1018 07ca 97FD sbrc r25,7 |
||
966 | 1019 07cc 0196 adiw r24,1 |
||
967 | 1020 .L101: |
||
968 | 1021 07ce 9595 asr r25 |
||
969 | 1022 07d0 8795 ror r24 |
||
970 | 1023 07d2 9093 0000 sts (roll_filter.7)+1,r25 |
||
971 | 1024 07d6 8093 0000 sts roll_filter.7,r24 |
||
972 | 1025 07da 2091 0000 lds r18,AdNeutralRoll |
||
973 | 1026 07de 3091 0000 lds r19,(AdNeutralRoll)+1 |
||
974 | 1027 07e2 821B sub r24,r18 |
||
975 | 1028 07e4 930B sbc r25,r19 |
||
976 | 1029 07e6 9093 0000 sts (HiResRoll)+1,r25 |
||
977 | 1030 07ea 8093 0000 sts HiResRoll,r24 |
||
978 | 1031 07ee 2091 0000 lds r18,AdWertRollFilter |
||
979 | 1032 07f2 3091 0000 lds r19,(AdWertRollFilter)+1 |
||
980 | 1033 07f6 8091 0000 lds r24,HiResRoll |
||
981 | 1034 07fa 9091 0000 lds r25,(HiResRoll)+1 |
||
982 | 1035 07fe 280F add r18,r24 |
||
983 | 1036 0800 391F adc r19,r25 |
||
984 | 1037 0802 37FF sbrs r19,7 |
||
985 | 1038 0804 00C0 rjmp .L102 |
||
986 | 1039 0806 2F5F subi r18,lo8(-(1)) |
||
987 | 1040 0808 3F4F sbci r19,hi8(-(1)) |
||
988 | 1041 .L102: |
||
989 | 1042 080a 3595 asr r19 |
||
990 | 1043 080c 2795 ror r18 |
||
991 | 1044 080e 3093 0000 sts (AdWertRollFilter)+1,r19 |
||
992 | 1045 0812 2093 0000 sts AdWertRollFilter,r18 |
||
993 | 1046 .L133: |
||
994 | 1047 0816 83E0 ldi r24,lo8(3) |
||
995 | 1048 0818 00C0 rjmp .L128 |
||
996 | 1049 .L103: |
||
997 | 1050 081a 1092 0000 sts state.1,__zero_reg__ |
||
998 | 1051 081e 81E0 ldi r24,lo8(1) |
||
999 | 1052 0820 8093 0000 sts AdReady,r24 |
||
1000 | 1053 0824 8091 0000 lds r24,ZaehlMessungen |
||
1001 | 1054 0828 9091 0000 lds r25,(ZaehlMessungen)+1 |
||
1002 | 1055 082c 0196 adiw r24,1 |
||
1003 | 1056 082e 9093 0000 sts (ZaehlMessungen)+1,r25 |
||
1004 | 1057 0832 8093 0000 sts ZaehlMessungen,r24 |
||
1005 | 1058 .L104: |
||
1006 | 1059 0836 8091 7800 lds r24,120 |
||
1007 | 1060 083a 9091 7900 lds r25,(120)+1 |
||
1008 | 1061 083e 9093 0000 sts (MessLuftdruck)+1,r25 |
||
1009 | 1062 0842 8093 0000 sts MessLuftdruck,r24 |
||
1010 | 1063 0846 8091 0000 lds r24,MessLuftdruck |
||
1011 | 1064 084a 9091 0000 lds r25,(MessLuftdruck)+1 |
||
1012 | 1065 084e AA27 clr r26 |
||
1013 | 1066 0850 BB27 clr r27 |
||
1014 | 1067 0852 2091 0000 lds r18,tmpLuftdruck.10 |
||
1015 | 1068 0856 3091 0000 lds r19,(tmpLuftdruck.10)+1 |
||
1016 | 1069 085a 4091 0000 lds r20,(tmpLuftdruck.10)+2 |
||
1017 | 1070 085e 5091 0000 lds r21,(tmpLuftdruck.10)+3 |
||
1018 | 1071 0862 280F add r18,r24 |
||
1019 | 1072 0864 391F adc r19,r25 |
||
1020 | 1073 0866 4A1F adc r20,r26 |
||
1021 | 1074 0868 5B1F adc r21,r27 |
||
1022 | 1075 086a 2093 0000 sts tmpLuftdruck.10,r18 |
||
1023 | 1076 086e 3093 0000 sts (tmpLuftdruck.10)+1,r19 |
||
1024 | 1077 0872 4093 0000 sts (tmpLuftdruck.10)+2,r20 |
||
1025 | 1078 0876 5093 0000 sts (tmpLuftdruck.10)+3,r21 |
||
1026 | 1079 087a 8091 0000 lds r24,messanzahl_Druck.11 |
||
1027 | 1080 087e 8F5F subi r24,lo8(-(1)) |
||
1028 | 1081 0880 8093 0000 sts messanzahl_Druck.11,r24 |
||
1029 | 1082 0884 8031 cpi r24,lo8(16) |
||
1030 | 1083 0886 00F4 brsh .+2 |
||
1031 | 1084 0888 00C0 rjmp .L127 |
||
1032 | 1085 088a 8091 0000 lds r24,Luftdruck |
||
1033 | 1086 088e 9091 0000 lds r25,(Luftdruck)+1 |
||
1034 | 1087 0892 A091 0000 lds r26,(Luftdruck)+2 |
||
1035 | 1088 0896 B091 0000 lds r27,(Luftdruck)+3 |
||
1036 | 1089 089a 7C01 movw r14,r24 |
||
1037 | 1090 089c 8D01 movw r16,r26 |
||
1038 | 1091 089e 63E0 ldi r22,3 |
||
1039 | 1092 08a0 EE0C 1: lsl r14 |
||
1040 | 1093 08a2 FF1C rol r15 |
||
1041 | 1094 08a4 001F rol r16 |
||
1042 | 1095 08a6 111F rol r17 |
||
1043 | 1096 08a8 6A95 dec r22 |
||
1044 | 1097 08aa 01F4 brne 1b |
||
1045 | 1098 08ac E81A sub r14,r24 |
||
1046 | 1099 08ae F90A sbc r15,r25 |
||
1047 | 1100 08b0 0A0B sbc r16,r26 |
||
1048 | 1101 08b2 1B0B sbc r17,r27 |
||
1049 | 1102 08b4 E20E add r14,r18 |
||
1050 | 1103 08b6 F31E adc r15,r19 |
||
1051 | 1104 08b8 041F adc r16,r20 |
||
1052 | 1105 08ba 151F adc r17,r21 |
||
1053 | 1106 08bc 8091 0000 lds r24,ExpandBaro |
||
1054 | 1107 08c0 9927 clr r25 |
||
1055 | 1108 08c2 87FD sbrc r24,7 |
||
1056 | 1109 08c4 9095 com r25 |
||
1057 | 1110 08c6 A92F mov r26,r25 |
||
1058 | 1111 08c8 B92F mov r27,r25 |
||
1059 | 1112 08ca BC01 movw r22,r24 |
||
1060 | 1113 08cc CD01 movw r24,r26 |
||
1061 | 1114 08ce 20EB ldi r18,lo8(8368) |
||
1062 | 1115 08d0 30E2 ldi r19,hi8(8368) |
||
1063 | 1116 08d2 40E0 ldi r20,hlo8(8368) |
||
1064 | 1117 08d4 50E0 ldi r21,hhi8(8368) |
||
1065 | 1118 08d6 0E94 0000 call __mulsi3 |
||
1066 | 1119 08da DC01 movw r26,r24 |
||
1067 | 1120 08dc CB01 movw r24,r22 |
||
1068 | 1121 08de E81A sub r14,r24 |
||
1069 | 1122 08e0 F90A sbc r15,r25 |
||
1070 | 1123 08e2 0A0B sbc r16,r26 |
||
1071 | 1124 08e4 1B0B sbc r17,r27 |
||
1072 | 1125 08e6 D801 movw r26,r16 |
||
1073 | 1126 08e8 C701 movw r24,r14 |
||
1074 | 1127 08ea 0496 adiw r24,4 |
||
1075 | 1128 08ec A11D adc r26,__zero_reg__ |
||
1076 | 1129 08ee B11D adc r27,__zero_reg__ |
||
1077 | 1130 08f0 B7FF sbrs r27,7 |
||
1078 | 1131 08f2 00C0 rjmp .L106 |
||
1079 | 1132 08f4 D801 movw r26,r16 |
||
1080 | 1133 08f6 C701 movw r24,r14 |
||
1081 | 1134 08f8 0B96 adiw r24,11 |
||
1082 | 1135 08fa A11D adc r26,__zero_reg__ |
||
1083 | 1136 08fc B11D adc r27,__zero_reg__ |
||
1084 | 1137 .L106: |
||
1085 | 1138 08fe 23E0 ldi r18,3 |
||
1086 | 1139 0900 B595 1: asr r27 |
||
1087 | 1140 0902 A795 ror r26 |
||
1088 | 1141 0904 9795 ror r25 |
||
1089 | 1142 0906 8795 ror r24 |
||
1090 | 1143 0908 2A95 dec r18 |
||
1091 | 1144 090a 01F4 brne 1b |
||
1092 | 1145 090c 8093 0000 sts Luftdruck,r24 |
||
1093 | 1146 0910 9093 0000 sts (Luftdruck)+1,r25 |
||
1094 | 1147 0914 A093 0000 sts (Luftdruck)+2,r26 |
||
1095 | 1148 0918 B093 0000 sts (Luftdruck)+3,r27 |
||
1096 | 1149 091c 8091 0000 lds r24,StartLuftdruck |
||
1097 | 1150 0920 9091 0000 lds r25,(StartLuftdruck)+1 |
||
1098 | 1151 0924 7C01 movw r14,r24 |
||
1099 | 1152 0926 0027 clr r16 |
||
1100 | 1153 0928 F7FC sbrc r15,7 |
||
1101 | 1154 092a 0095 com r16 |
||
1102 | 1155 092c 102F mov r17,r16 |
||
1103 | 1156 092e 8091 0000 lds r24,Luftdruck |
||
1104 | 1157 0932 9091 0000 lds r25,(Luftdruck)+1 |
||
1105 | 1158 0936 A091 0000 lds r26,(Luftdruck)+2 |
||
1106 | 1159 093a B091 0000 lds r27,(Luftdruck)+3 |
||
1107 | 1160 093e E81A sub r14,r24 |
||
1108 | 1161 0940 F90A sbc r15,r25 |
||
1109 | 1162 0942 0A0B sbc r16,r26 |
||
1110 | 1163 0944 1B0B sbc r17,r27 |
||
1111 | 1164 0946 E092 0000 sts HoehenWert,r14 |
||
1112 | 1165 094a F092 0000 sts (HoehenWert)+1,r15 |
||
1113 | 1166 094e 0093 0000 sts (HoehenWert)+2,r16 |
||
1114 | 1167 0952 1093 0000 sts (HoehenWert)+3,r17 |
||
1115 | 1168 0956 2091 0000 lds r18,SummenHoehe |
||
1116 | 1169 095a 3091 0000 lds r19,(SummenHoehe)+1 |
||
1117 | 1170 095e 4091 0000 lds r20,(SummenHoehe)+2 |
||
1118 | 1171 0962 5091 0000 lds r21,(SummenHoehe)+3 |
||
1119 | 1172 0966 57FF sbrs r21,7 |
||
1120 | 1173 0968 00C0 rjmp .L107 |
||
1121 | 1174 096a 215F subi r18,lo8(-(15)) |
||
1122 | 1175 096c 3F4F sbci r19,hi8(-(15)) |
||
1123 | 1176 096e 4F4F sbci r20,hlo8(-(15)) |
||
1124 | 1177 0970 5F4F sbci r21,hhi8(-(15)) |
||
1125 | 1178 .L107: |
||
1126 | 1179 0972 84E0 ldi r24,4 |
||
1127 | 1180 0974 5595 1: asr r21 |
||
1128 | 1181 0976 4795 ror r20 |
||
1129 | 1182 0978 3795 ror r19 |
||
1130 | 1183 097a 2795 ror r18 |
||
1131 | 1184 097c 8A95 dec r24 |
||
1132 | 1185 097e 01F4 brne 1b |
||
1133 | 1186 0980 8091 0000 lds r24,SummenHoehe |
||
1134 | 1187 0984 9091 0000 lds r25,(SummenHoehe)+1 |
||
1135 | 1188 0988 A091 0000 lds r26,(SummenHoehe)+2 |
||
1136 | 1189 098c B091 0000 lds r27,(SummenHoehe)+3 |
||
1137 | 1190 0990 821B sub r24,r18 |
||
1138 | 1191 0992 930B sbc r25,r19 |
||
1139 | 1192 0994 A40B sbc r26,r20 |
||
1140 | 1193 0996 B50B sbc r27,r21 |
||
1141 | 1194 0998 8093 0000 sts SummenHoehe,r24 |
||
1142 | 1195 099c 9093 0000 sts (SummenHoehe)+1,r25 |
||
1143 | 1196 09a0 A093 0000 sts (SummenHoehe)+2,r26 |
||
1144 | 1197 09a4 B093 0000 sts (SummenHoehe)+3,r27 |
||
1145 | 1198 09a8 8091 0000 lds r24,SummenHoehe |
||
1146 | 1199 09ac 9091 0000 lds r25,(SummenHoehe)+1 |
||
1147 | 1200 09b0 A091 0000 lds r26,(SummenHoehe)+2 |
||
1148 | 1201 09b4 B091 0000 lds r27,(SummenHoehe)+3 |
||
1149 | 1202 09b8 8E0D add r24,r14 |
||
1150 | 1203 09ba 9F1D adc r25,r15 |
||
1151 | 1204 09bc A01F adc r26,r16 |
||
1152 | 1205 09be B11F adc r27,r17 |
||
1153 | 1206 09c0 8093 0000 sts SummenHoehe,r24 |
||
1154 | 1207 09c4 9093 0000 sts (SummenHoehe)+1,r25 |
||
1155 | 1208 09c8 A093 0000 sts (SummenHoehe)+2,r26 |
||
1156 | 1209 09cc B093 0000 sts (SummenHoehe)+3,r27 |
||
1157 | 1210 09d0 8091 0000 lds r24,SummenHoehe |
||
1158 | 1211 09d4 9091 0000 lds r25,(SummenHoehe)+1 |
||
1159 | 1212 09d8 A091 0000 lds r26,(SummenHoehe)+2 |
||
1160 | 1213 09dc B091 0000 lds r27,(SummenHoehe)+3 |
||
1161 | 1214 09e0 B7FF sbrs r27,7 |
||
1162 | 1215 09e2 00C0 rjmp .L108 |
||
1163 | 1216 09e4 0F96 adiw r24,15 |
||
1164 | 1217 09e6 A11D adc r26,__zero_reg__ |
||
1165 | 1218 09e8 B11D adc r27,__zero_reg__ |
||
1166 | 1219 .L108: |
||
1167 | 1220 09ea 14E0 ldi r17,4 |
||
1168 | 1221 09ec B595 1: asr r27 |
||
1169 | 1222 09ee A795 ror r26 |
||
1170 | 1223 09f0 9795 ror r25 |
||
1171 | 1224 09f2 8795 ror r24 |
||
1172 | 1225 09f4 1A95 dec r17 |
||
1173 | 1226 09f6 01F4 brne 1b |
||
1174 | 1227 09f8 2091 0000 lds r18,HoehenWert |
||
1175 | 1228 09fc 3091 0000 lds r19,(HoehenWert)+1 |
||
1176 | 1229 0a00 281B sub r18,r24 |
||
1177 | 1230 0a02 390B sbc r19,r25 |
||
1178 | 1231 0a04 64E0 ldi r22,hi8(1025) |
||
1179 | 1232 0a06 2130 cpi r18,lo8(1025) |
||
1180 | 1233 0a08 3607 cpc r19,r22 |
||
1181 | 1234 0a0a 04F0 brlt .L109 |
||
1182 | 1235 0a0c 20E0 ldi r18,lo8(1024) |
||
1183 | 1236 0a0e 34E0 ldi r19,hi8(1024) |
||
1184 | 1237 0a10 00C0 rjmp .L110 |
||
1185 | 1238 .L109: |
||
1186 | 1239 0a12 7CEF ldi r23,hi8(-1024) |
||
1187 | 1240 0a14 2030 cpi r18,lo8(-1024) |
||
1188 | 1241 0a16 3707 cpc r19,r23 |
||
1189 | 1242 0a18 04F4 brge .L110 |
||
1190 | 1243 0a1a 20E0 ldi r18,lo8(-1024) |
||
1191 | 1244 0a1c 3CEF ldi r19,hi8(-1024) |
||
1192 | 1245 .L110: |
||
1193 | 1246 0a1e 8091 0000 lds r24,VarioMeter |
||
1194 | 1247 0a22 9091 0000 lds r25,(VarioMeter)+1 |
||
1195 | 1248 0a26 8091 0000 lds r24,VarioMeter |
||
1196 | 1249 0a2a 9091 0000 lds r25,(VarioMeter)+1 |
||
1197 | 1250 0a2e 97FF sbrs r25,7 |
||
1198 | 1251 0a30 00C0 rjmp .L113 |
||
1199 | 1252 0a32 9095 com r25 |
||
1200 | 1253 0a34 8195 neg r24 |
||
1201 | 1254 0a36 9F4F sbci r25,lo8(-1) |
||
1202 | 1255 .L113: |
||
1203 | 1256 0a38 A901 movw r20,r18 |
||
1204 | 1257 0a3a F3E0 ldi r31,3 |
||
1205 | 1258 0a3c 440F 1: lsl r20 |
||
1206 | 1259 0a3e 551F rol r21 |
||
1207 | 1260 0a40 FA95 dec r31 |
||
1208 | 1261 0a42 01F4 brne 1b |
||
1209 | 1262 0a44 8D5B subi r24,lo8(701) |
||
1210 | 1263 0a46 9240 sbci r25,hi8(701) |
||
1211 | 1264 0a48 04F0 brlt .L112 |
||
1212 | 1265 0a4a 8091 0000 lds r24,VarioMeter |
||
1213 | 1266 0a4e 9091 0000 lds r25,(VarioMeter)+1 |
||
1214 | 1267 0a52 9C01 movw r18,r24 |
||
1215 | 1268 0a54 E4E0 ldi r30,4 |
||
1216 | 1269 0a56 220F 1: lsl r18 |
||
1217 | 1270 0a58 331F rol r19 |
||
1218 | 1271 0a5a EA95 dec r30 |
||
1219 | 1272 0a5c 01F4 brne 1b |
||
1220 | 1273 0a5e 281B sub r18,r24 |
||
1221 | 1274 0a60 390B sbc r19,r25 |
||
1222 | 1275 0a62 240F add r18,r20 |
||
1223 | 1276 0a64 351F adc r19,r21 |
||
1224 | 1277 0a66 37FF sbrs r19,7 |
||
1225 | 1278 0a68 00C0 rjmp .L114 |
||
1226 | 1279 0a6a 215F subi r18,lo8(-(15)) |
||
1227 | 1280 0a6c 3F4F sbci r19,hi8(-(15)) |
||
1228 | 1281 .L114: |
||
1229 | 1282 0a6e 74E0 ldi r23,4 |
||
1230 | 1283 0a70 3595 1: asr r19 |
||
1231 | 1284 0a72 2795 ror r18 |
||
1232 | 1285 0a74 7A95 dec r23 |
||
1233 | 1286 0a76 01F4 brne 1b |
||
1234 | 1287 0a78 00C0 rjmp .L126 |
||
1235 | 1288 .L112: |
||
1236 | 1289 0a7a 8091 0000 lds r24,VarioMeter |
||
1237 | 1290 0a7e 9091 0000 lds r25,(VarioMeter)+1 |
||
1238 | 1291 0a82 9C01 movw r18,r24 |
||
1239 | 1292 0a84 65E0 ldi r22,5 |
||
1240 | 1293 0a86 220F 1: lsl r18 |
||
1241 | 1294 0a88 331F rol r19 |
||
1242 | 1295 0a8a 6A95 dec r22 |
||
1243 | 1296 0a8c 01F4 brne 1b |
||
1244 | 1297 0a8e 281B sub r18,r24 |
||
1245 | 1298 0a90 390B sbc r19,r25 |
||
1246 | 1299 0a92 240F add r18,r20 |
||
1247 | 1300 0a94 351F adc r19,r21 |
||
1248 | 1301 0a96 37FF sbrs r19,7 |
||
1249 | 1302 0a98 00C0 rjmp .L116 |
||
1250 | 1303 0a9a 215E subi r18,lo8(-(31)) |
||
1251 | 1304 0a9c 3F4F sbci r19,hi8(-(31)) |
||
1252 | 1305 .L116: |
||
1253 | 1306 0a9e 45E0 ldi r20,5 |
||
1254 | 1307 0aa0 3595 1: asr r19 |
||
1255 | 1308 0aa2 2795 ror r18 |
||
1256 | 1309 0aa4 4A95 dec r20 |
||
1257 | 1310 0aa6 01F4 brne 1b |
||
1258 | 1311 .L126: |
||
1259 | 1312 0aa8 3093 0000 sts (VarioMeter)+1,r19 |
||
1260 | 1313 0aac 2093 0000 sts VarioMeter,r18 |
||
1261 | 1314 0ab0 8091 0000 lds r24,tmpLuftdruck.10 |
||
1262 | 1315 0ab4 9091 0000 lds r25,(tmpLuftdruck.10)+1 |
||
1263 | 1316 0ab8 A091 0000 lds r26,(tmpLuftdruck.10)+2 |
||
1264 | 1317 0abc B091 0000 lds r27,(tmpLuftdruck.10)+3 |
||
1265 | 1318 0ac0 B7FF sbrs r27,7 |
||
1266 | 1319 0ac2 00C0 rjmp .L117 |
||
1267 | 1320 0ac4 0196 adiw r24,1 |
||
1268 | 1321 0ac6 A11D adc r26,__zero_reg__ |
||
1269 | 1322 0ac8 B11D adc r27,__zero_reg__ |
||
1270 | 1323 .L117: |
||
1271 | 1324 0aca B595 asr r27 |
||
1272 | 1325 0acc A795 ror r26 |
||
1273 | 1326 0ace 9795 ror r25 |
||
1274 | 1327 0ad0 8795 ror r24 |
||
1275 | 1328 0ad2 8093 0000 sts tmpLuftdruck.10,r24 |
||
1276 | 1329 0ad6 9093 0000 sts (tmpLuftdruck.10)+1,r25 |
||
1277 | 1330 0ada A093 0000 sts (tmpLuftdruck.10)+2,r26 |
||
1278 | 1331 0ade B093 0000 sts (tmpLuftdruck.10)+3,r27 |
||
1279 | 1332 0ae2 88E0 ldi r24,lo8(8) |
||
1280 | 1333 0ae4 8093 0000 sts messanzahl_Druck.11,r24 |
||
1281 | 1334 0ae8 00C0 rjmp .L127 |
||
1282 | 1335 .L118: |
||
1283 | 1336 0aea 1092 0000 sts state.1,__zero_reg__ |
||
1284 | 1337 .L127: |
||
1285 | 1338 0aee 82E0 ldi r24,lo8(2) |
||
1286 | 1339 .L128: |
||
1287 | 1340 0af0 8093 0000 sts kanal.0,r24 |
||
1288 | 1341 .L60: |
||
1289 | 1342 0af4 8091 0000 lds r24,kanal.0 |
||
1290 | 1343 0af8 8093 7C00 sts 124,r24 |
||
1291 | 1344 0afc 8091 0000 lds r24,state.1 |
||
1292 | 1345 0b00 8823 tst r24 |
||
1293 | 1346 0b02 01F0 breq .L59 |
||
1294 | 1347 0b04 8FEC ldi r24,lo8(-49) |
||
1295 | 1348 0b06 8093 7A00 sts 122,r24 |
||
1296 | 1349 .L59: |
||
1297 | 1350 /* epilogue: frame size=0 */ |
||
1298 | 1351 0b0a FF91 pop r31 |
||
1299 | 1352 0b0c EF91 pop r30 |
||
1300 | 1353 0b0e BF91 pop r27 |
||
1301 | 1354 0b10 AF91 pop r26 |
||
1302 | 1355 0b12 9F91 pop r25 |
||
1303 | 1356 0b14 8F91 pop r24 |
||
1304 | 1357 0b16 7F91 pop r23 |
||
1305 | 1358 0b18 6F91 pop r22 |
||
1306 | 1359 0b1a 5F91 pop r21 |
||
1307 | 1360 0b1c 4F91 pop r20 |
||
1308 | 1361 0b1e 3F91 pop r19 |
||
1309 | 1362 0b20 2F91 pop r18 |
||
1310 | 1363 0b22 1F91 pop r17 |
||
1311 | 1364 0b24 0F91 pop r16 |
||
1312 | 1365 0b26 FF90 pop r15 |
||
1313 | 1366 0b28 EF90 pop r14 |
||
1314 | 1367 0b2a 0F90 pop __tmp_reg__ |
||
1315 | 1368 0b2c 0FBE out __SREG__,__tmp_reg__ |
||
1316 | 1369 0b2e 0F90 pop __tmp_reg__ |
||
1317 | 1370 0b30 1F90 pop __zero_reg__ |
||
1318 | 1371 0b32 1895 reti |
||
1319 | 1372 /* epilogue end (size=21) */ |
||
1320 | 1373 /* function __vector_24 size 1094 (1052) */ |
||
1321 | 1375 .comm Aktuell_Nick,2,1 |
||
1322 | 1376 .comm Aktuell_Roll,2,1 |
||
1323 | 1377 .comm Aktuell_Gier,2,1 |
||
1324 | 1378 .comm Aktuell_ax,2,1 |
||
1325 | 1379 .comm Aktuell_ay,2,1 |
||
1326 | 1380 .comm Aktuell_az,2,1 |
||
1327 | 1381 .comm DruckOffsetSetting,1,1 |
||
1328 | 1382 .comm StartLuftdruck,2,1 |
||
1329 | 1383 /* File "analog.c": code 1471 = 0x05bf (1414), prologues 27, epilogues 30 */ |
||
1330 | DEFINED SYMBOLS |
||
1331 | *ABS*:00000000 analog.c |
||
1332 | C:\Temp/ccyqySIY.s:3 *ABS*:0000003f __SREG__ |
||
1333 | C:\Temp/ccyqySIY.s:4 *ABS*:0000003e __SP_H__ |
||
1334 | C:\Temp/ccyqySIY.s:5 *ABS*:0000003d __SP_L__ |
||
1335 | C:\Temp/ccyqySIY.s:6 *ABS*:00000000 __tmp_reg__ |
||
1336 | C:\Temp/ccyqySIY.s:7 *ABS*:00000001 __zero_reg__ |
||
1337 | C:\Temp/ccyqySIY.s:14 .data:00000000 AdReady |
||
1338 | C:\Temp/ccyqySIY.s:19 .data:00000001 AnalogOffsetGier |
||
1339 | C:\Temp/ccyqySIY.s:24 .data:00000002 AnalogOffsetRoll |
||
1340 | C:\Temp/ccyqySIY.s:29 .data:00000003 AnalogOffsetNick |
||
1341 | C:\Temp/ccyqySIY.s:36 .bss:00000000 ZaehlMessungen |
||
1342 | C:\Temp/ccyqySIY.s:42 .bss:00000002 VarioMeter |
||
1343 | C:\Temp/ccyqySIY.s:48 .bss:00000004 ExpandBaro |
||
1344 | C:\Temp/ccyqySIY.s:54 .data:00000004 MessLuftdruck |
||
1345 | C:\Temp/ccyqySIY.s:61 .bss:00000005 SummenHoehe |
||
1346 | C:\Temp/ccyqySIY.s:67 .data:00000006 Luftdruck |
||
1347 | C:\Temp/ccyqySIY.s:74 .bss:00000009 AdWertAccHoch |
||
1348 | C:\Temp/ccyqySIY.s:80 .bss:0000000b AdWertAccNick |
||
1349 | C:\Temp/ccyqySIY.s:86 .bss:0000000d AdWertAccRoll |
||
1350 | C:\Temp/ccyqySIY.s:92 .bss:0000000f AdWertGier |
||
1351 | C:\Temp/ccyqySIY.s:98 .bss:00000011 AdWertRoll |
||
1352 | C:\Temp/ccyqySIY.s:104 .bss:00000013 AdWertNick |
||
1353 | C:\Temp/ccyqySIY.s:110 .data:0000000a HiResRoll |
||
1354 | C:\Temp/ccyqySIY.s:115 .data:0000000c HiResNick |
||
1355 | C:\Temp/ccyqySIY.s:122 .bss:00000015 AdWertGierFilter |
||
1356 | C:\Temp/ccyqySIY.s:128 .bss:00000017 AdWertRollFilter |
||
1357 | C:\Temp/ccyqySIY.s:134 .bss:00000019 AdWertNickFilter |
||
1358 | C:\Temp/ccyqySIY.s:140 .data:0000000e UBat |
||
1359 | C:\Temp/ccyqySIY.s:145 .text:00000000 ADC_Init |
||
1360 | C:\Temp/ccyqySIY.s:159 .progmem.data:00000000 __c.13 |
||
1361 | C:\Temp/ccyqySIY.s:163 .progmem.data:00000002 __c.14 |
||
1362 | C:\Temp/ccyqySIY.s:168 .text:0000000c SucheLuftruckOffset |
||
1363 | *COM*:00000001 DruckOffsetSetting |
||
1364 | C:\Temp/ccyqySIY.s:295 .progmem.data:00000004 __c.12 |
||
1365 | C:\Temp/ccyqySIY.s:300 .text:00000110 SucheGyroOffset |
||
1366 | .bss:0000001b kanal.0 |
||
1367 | C:\Temp/ccyqySIY.s:503 .bss:0000001c state.1 |
||
1368 | C:\Temp/ccyqySIY.s:504 .bss:0000001d subcount.2 |
||
1369 | C:\Temp/ccyqySIY.s:505 .bss:0000001e gier1.3 |
||
1370 | C:\Temp/ccyqySIY.s:506 .bss:00000020 roll1.4 |
||
1371 | C:\Temp/ccyqySIY.s:507 .bss:00000022 nick1.5 |
||
1372 | C:\Temp/ccyqySIY.s:508 .bss:00000024 nick_filter.6 |
||
1373 | C:\Temp/ccyqySIY.s:509 .bss:00000026 roll_filter.7 |
||
1374 | C:\Temp/ccyqySIY.s:510 .bss:00000028 accy.8 |
||
1375 | C:\Temp/ccyqySIY.s:511 .bss:0000002a accx.9 |
||
1376 | C:\Temp/ccyqySIY.s:512 .bss:0000002c tmpLuftdruck.10 |
||
1377 | C:\Temp/ccyqySIY.s:513 .bss:00000030 messanzahl_Druck.11 |
||
1378 | C:\Temp/ccyqySIY.s:517 .text:000002de __vector_24 |
||
1379 | *COM*:00000002 Aktuell_ay |
||
1380 | *COM*:00000002 Aktuell_ax |
||
1381 | *COM*:00000002 Aktuell_az |
||
1382 | *COM*:00000002 StartLuftdruck |
||
1383 | *COM*:00000002 Aktuell_Nick |
||
1384 | *COM*:00000002 Aktuell_Roll |
||
1385 | *COM*:00000002 Aktuell_Gier |
||
1386 | |||
1387 | UNDEFINED SYMBOLS |
||
1388 | __do_copy_data |
||
1389 | __do_clear_bss |
||
1390 | GetParamByte |
||
1391 | Delay_ms_Mess |
||
1392 | uart_putchar |
||
1393 | _printf_P |
||
1394 | SetParamByte |
||
1395 | EE_Parameter |
||
1396 | VersionInfo |
||
1397 | SetDelay |
||
1398 | twi_state |
||
1399 | BLFlags |
||
1400 | CheckDelay |
||
1401 | __tablejump2__ |
||
1402 | NeutralAccY |
||
1403 | NeutralAccX |
||
1404 | __udivmodhi4 |
||
1405 | NeutralAccZ |
||
1406 | modell_fliegt |
||
1407 | Mess_Integral_Hoch |
||
1408 | PlatinenVersion |
||
1409 | AdNeutralNick |
||
1410 | AdNeutralRoll |
||
1411 | __mulsi3 |
||
1412 | HoehenWert |