Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1754 - 1
   1               		.file	"jetimenu.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               	.global	JetiBox_Menu
11
  11               		.section	.progmem.data,"a",@progbits
12
  14               	JetiBox_Menu:
13
  15 0000 03        		.byte	3
14
  16 0001 01        		.byte	1
15
  17 0002 00        		.byte	0
16
  18 0003 00        		.byte	0
17
  19 0004 0000      		.word	pm(Menu_Status)
18
  20 0006 00        		.byte	0
19
  21 0007 02        		.byte	2
20
  22 0008 01        		.byte	1
21
  23 0009 01        		.byte	1
22
  24 000a 0000      		.word	pm(Menu_Temperature)
23
  25 000c 01        		.byte	1
24
  26 000d 03        		.byte	3
25
  27 000e 02        		.byte	2
26
  28 000f 02        		.byte	2
27
  29 0010 0000      		.word	pm(Menu_Battery)
28
  30 0012 02        		.byte	2
29
  31 0013 00        		.byte	0
30
  32 0014 03        		.byte	3
31
  33 0015 03        		.byte	3
32
  34 0016 0000      		.word	pm(Menu_PosInfo)
33
  37               	__c.14:
34
  38 0018 2532 692E 		.string	"%2i.%1iV"
35
  38      2531 6956
36
  38      00
37
  41               	__c.15:
38
  42 0021 2533 6425 		.string	"%3d%c %03dm"
39
  42      6320 2530
40
  42      3364 6D00
41
  45               	__c.16:
42
  46 002d 5374 6174 		.string	"Status"
43
  46      7573 00
44
  49               	__c.17:
45
  50 0034 4552 524F 		.string	"ERROR: %2d"
46
  50      523A 2025
47
  50      3264 00
48
  53               	__c.18:
49
  54 003f 2534 6920 		.string	"%4i %2i:%02i"
50
  54      2532 693A
51
  54      2530 3269
52
  54      00
53
  57               	__c.19:
54
  58 004c 2534 696D 		.string	"%4im%c"
55
  58      2563 00
56
  59               		.text
57
  60               	.global	Menu_Status
58
  62               	Menu_Status:
59
  63               	/* prologue: frame size=0 */
60
  64 0000 CF93      		push r28
61
  65 0002 DF93      		push r29
62
  66               	/* prologue end (size=2) */
63
  67 0004 80E0      		ldi r24,lo8(0)
64
  68 0006 0E94 0000 		call LIBFC_JetiBox_SetPos
65
  69 000a 8091 0000 		lds r24,UBat
66
  70 000e 9091 0000 		lds r25,(UBat)+1
67
  71 0012 6AE0      		ldi r22,lo8(10)
68
  72 0014 70E0      		ldi r23,hi8(10)
69
  73 0016 0E94 0000 		call __divmodhi4
70
  74 001a 9F93      		push r25
71
  75 001c 8F93      		push r24
72
  76 001e 8091 0000 		lds r24,UBat
73
  77 0022 9091 0000 		lds r25,(UBat)+1
74
  78 0026 6AE0      		ldi r22,lo8(10)
75
  79 0028 70E0      		ldi r23,hi8(10)
76
  80 002a 0E94 0000 		call __divmodhi4
77
  81 002e 7F93      		push r23
78
  82 0030 6F93      		push r22
79
  83 0032 80E0      		ldi r24,lo8(__c.14)
80
  84 0034 90E0      		ldi r25,hi8(__c.14)
81
  85 0036 9F93      		push r25
82
  86 0038 8F93      		push r24
83
  87 003a C0E0      		ldi r28,lo8(pm(LIBFC_JetiBox_Putchar))
84
  88 003c D0E0      		ldi r29,hi8(pm(LIBFC_JetiBox_Putchar))
85
  89 003e DF93      		push r29
86
  90 0040 CF93      		push r28
87
  91 0042 E091 0000 		lds r30,_printf_P
88
  92 0046 F091 0000 		lds r31,(_printf_P)+1
89
  93 004a 0995      		icall
90
  94 004c 2DB7      		in r18,__SP_L__
91
  95 004e 3EB7      		in r19,__SP_H__
92
  96 0050 285F      		subi r18,lo8(-(8))
93
  97 0052 3F4F      		sbci r19,hi8(-(8))
94
  98 0054 2DBF      		out __SP_L__,r18
95
  99 0056 8091 0000 		lds r24,NaviDataOkay
96
 100 005a 8823      		tst r24
97
 101 005c B9F1      		breq .L2
98
 102 005e 86E0      		ldi r24,lo8(6)
99
 103 0060 0E94 0000 		call LIBFC_JetiBox_SetPos
100
 104 0064 8091 0000 		lds r24,GPSInfo+4
101
 105 0068 9091 0000 		lds r25,(GPSInfo+4)+1
102
 106 006c 6AE0      		ldi r22,lo8(10)
103
 107 006e 70E0      		ldi r23,hi8(10)
104
 108 0070 0E94 0000 		call __udivmodhi4
105
 109 0074 7F93      		push r23
106
 110 0076 6F93      		push r22
107
 111 0078 8FED      		ldi r24,lo8(223)
108
 112 007a 90E0      		ldi r25,hi8(223)
109
 113 007c 9F93      		push r25
110
 114 007e 8F93      		push r24
111
 115 0080 8091 0000 		lds r24,ErsatzKompass
112
 116 0084 9091 0000 		lds r25,(ErsatzKompass)+1
113
 117 0088 A091 0000 		lds r26,(ErsatzKompass)+2
114
 118 008c B091 0000 		lds r27,(ErsatzKompass)+3
115
 119 0090 2091 0000 		lds r18,GIER_GRAD_FAKTOR
116
 120 0094 3091 0000 		lds r19,(GIER_GRAD_FAKTOR)+1
117
 121 0098 4091 0000 		lds r20,(GIER_GRAD_FAKTOR)+2
118
 122 009c 5091 0000 		lds r21,(GIER_GRAD_FAKTOR)+3
119
 123 00a0 BC01      		movw r22,r24
120
 124 00a2 CD01      		movw r24,r26
121
 125 00a4 0E94 0000 		call __divmodsi4
122
 126 00a8 3F93      		push r19
123
 127 00aa 2F93      		push r18
124
 128 00ac 80E0      		ldi r24,lo8(__c.15)
125
 129 00ae 90E0      		ldi r25,hi8(__c.15)
126
 130 00b0 9F93      		push r25
127
 131 00b2 8F93      		push r24
128
 132 00b4 DF93      		push r29
129
 133 00b6 CF93      		push r28
130
 134 00b8 E091 0000 		lds r30,_printf_P
131
 135 00bc F091 0000 		lds r31,(_printf_P)+1
132
 136 00c0 0995      		icall
133
 137 00c2 8DB7      		in r24,__SP_L__
134
 138 00c4 9EB7      		in r25,__SP_H__
135
 139 00c6 0A96      		adiw r24,10
136
 140 00c8 8DBF      		out __SP_L__,r24
137
 141 00ca 12C0      		rjmp .L3
138
 142               	.L2:
139
 143 00cc 86E0      		ldi r24,lo8(6)
140
 144 00ce 0E94 0000 		call LIBFC_JetiBox_SetPos
141
 145 00d2 80E0      		ldi r24,lo8(__c.16)
142
 146 00d4 90E0      		ldi r25,hi8(__c.16)
143
 147 00d6 9F93      		push r25
144
 148 00d8 8F93      		push r24
145
 149 00da DF93      		push r29
146
 150 00dc CF93      		push r28
147
 151 00de E091 0000 		lds r30,_printf_P
148
 152 00e2 F091 0000 		lds r31,(_printf_P)+1
149
 153 00e6 0995      		icall
150
 154 00e8 0F90      		pop __tmp_reg__
151
 155 00ea 0F90      		pop __tmp_reg__
152
 156 00ec 0F90      		pop __tmp_reg__
153
 157 00ee 0F90      		pop __tmp_reg__
154
 158               	.L3:
155
 159 00f0 8091 0000 		lds r24,NC_ErrorCode
156
 160 00f4 8823      		tst r24
157
 161 00f6 C1F0      		breq .L4
158
 162 00f8 86E0      		ldi r24,lo8(6)
159
 163 00fa 0E94 0000 		call LIBFC_JetiBox_SetPos
160
 164 00fe 8091 0000 		lds r24,NC_ErrorCode
161
 165 0102 9927      		clr r25
162
 166 0104 9F93      		push r25
163
 167 0106 8F93      		push r24
164
 168 0108 80E0      		ldi r24,lo8(__c.17)
165
 169 010a 90E0      		ldi r25,hi8(__c.17)
166
 170 010c 9F93      		push r25
167
 171 010e 8F93      		push r24
168
 172 0110 DF93      		push r29
169
 173 0112 CF93      		push r28
170
 174 0114 E091 0000 		lds r30,_printf_P
171
 175 0118 F091 0000 		lds r31,(_printf_P)+1
172
 176 011c 0995      		icall
173
 177 011e 2DB7      		in r18,__SP_L__
174
 178 0120 3EB7      		in r19,__SP_H__
175
 179 0122 2A5F      		subi r18,lo8(-(6))
176
 180 0124 3F4F      		sbci r19,hi8(-(6))
177
 181 0126 2DBF      		out __SP_L__,r18
178
 182               	.L4:
179
 183 0128 80E1      		ldi r24,lo8(16)
180
 184 012a 0E94 0000 		call LIBFC_JetiBox_SetPos
181
 185 012e 8091 0000 		lds r24,FlugSekunden
182
 186 0132 9091 0000 		lds r25,(FlugSekunden)+1
183
 187 0136 6CE3      		ldi r22,lo8(60)
184
 188 0138 70E0      		ldi r23,hi8(60)
185
 189 013a 0E94 0000 		call __udivmodhi4
186
 190 013e 9F93      		push r25
187
 191 0140 8F93      		push r24
188
 192 0142 8091 0000 		lds r24,FlugSekunden
189
 193 0146 9091 0000 		lds r25,(FlugSekunden)+1
190
 194 014a 6CE3      		ldi r22,lo8(60)
191
 195 014c 70E0      		ldi r23,hi8(60)
192
 196 014e 0E94 0000 		call __udivmodhi4
193
 197 0152 7F93      		push r23
194
 198 0154 6F93      		push r22
195
 199 0156 8091 0000 		lds r24,Capacity+4
196
 200 015a 9091 0000 		lds r25,(Capacity+4)+1
197
 201 015e 9F93      		push r25
198
 202 0160 8F93      		push r24
199
 203 0162 80E0      		ldi r24,lo8(__c.18)
200
 204 0164 90E0      		ldi r25,hi8(__c.18)
201
 205 0166 9F93      		push r25
202
 206 0168 8F93      		push r24
203
 207 016a C0E0      		ldi r28,lo8(pm(LIBFC_JetiBox_Putchar))
204
 208 016c D0E0      		ldi r29,hi8(pm(LIBFC_JetiBox_Putchar))
205
 209 016e DF93      		push r29
206
 210 0170 CF93      		push r28
207
 211 0172 E091 0000 		lds r30,_printf_P
208
 212 0176 F091 0000 		lds r31,(_printf_P)+1
209
 213 017a 0995      		icall
210
 214 017c 8091 0000 		lds r24,EE_Parameter+13
211
 215 0180 2DB7      		in r18,__SP_L__
212
 216 0182 3EB7      		in r19,__SP_H__
213
 217 0184 265F      		subi r18,lo8(-(10))
214
 218 0186 3F4F      		sbci r19,hi8(-(10))
215
 219 0188 2DBF      		out __SP_L__,r18
216
 220 018a 80FF      		sbrs r24,0
217
 221 018c 29C0      		rjmp .L1
218
 222 018e 8AE1      		ldi r24,lo8(26)
219
 223 0190 0E94 0000 		call LIBFC_JetiBox_SetPos
220
 224 0194 8091 0000 		lds r24,VarioCharacter
221
 225 0198 9927      		clr r25
222
 226 019a 9F93      		push r25
223
 227 019c 8F93      		push r24
224
 228 019e 8091 0000 		lds r24,HoehenWert
225
 229 01a2 9091 0000 		lds r25,(HoehenWert)+1
226
 230 01a6 A091 0000 		lds r26,(HoehenWert)+2
227
 231 01aa B091 0000 		lds r27,(HoehenWert)+3
228
 232 01ae BC01      		movw r22,r24
229
 233 01b0 CD01      		movw r24,r26
230
 234 01b2 24E6      		ldi r18,lo8(100)
231
 235 01b4 30E0      		ldi r19,hi8(100)
232
 236 01b6 40E0      		ldi r20,hlo8(100)
233
 237 01b8 50E0      		ldi r21,hhi8(100)
234
 238 01ba 0E94 0000 		call __divmodsi4
235
 239 01be 3F93      		push r19
236
 240 01c0 2F93      		push r18
237
 241 01c2 80E0      		ldi r24,lo8(__c.19)
238
 242 01c4 90E0      		ldi r25,hi8(__c.19)
239
 243 01c6 9F93      		push r25
240
 244 01c8 8F93      		push r24
241
 245 01ca DF93      		push r29
242
 246 01cc CF93      		push r28
243
 247 01ce E091 0000 		lds r30,_printf_P
244
 248 01d2 F091 0000 		lds r31,(_printf_P)+1
245
 249 01d6 0995      		icall
246
 250 01d8 8DB7      		in r24,__SP_L__
247
 251 01da 9EB7      		in r25,__SP_H__
248
 252 01dc 0896      		adiw r24,8
249
 253 01de 8DBF      		out __SP_L__,r24
250
 254               	.L1:
251
 255               	/* epilogue: frame size=0 */
252
 256 01e0 DF91      		pop r29
253
 257 01e2 CF91      		pop r28
254
 258 01e4 0895      		ret
255
 259               	/* epilogue end (size=3) */
256
 260               	/* function Menu_Status size 243 (238) */
257
 262               		.section	.progmem.data
258
 265               	__c.10:
259
 266 0053 2533 6920 		.string	"%3i %3i %3i %3i"
260
 266      2533 6920
261
 266      2533 6920
262
 266      2533 6900
263
 269               	__c.11:
264
 270 0063 2533 6920 		.string	"%3i %3i %3i %3i"
265
 270      2533 6920
266
 270      2533 6920
267
 270      2533 6900
268
 273               	__c.12:
269
 274 0073 5465 6D70 		.string	"Temperatures    "
270
 274      6572 6174
271
 274      7572 6573
272
 274      2020 2020
273
 274      00
274
 277               	__c.13:
275
 278 0084 2563 4320 		.string	"%cC     "
276
 278      2020 2020
277
 278      00
278
 279               		.text
279
 280               	.global	Menu_Temperature
280
 282               	Menu_Temperature:
281
 283               	/* prologue: frame size=0 */
282
 284 01e6 CF93      		push r28
283
 285 01e8 DF93      		push r29
284
 286               	/* prologue end (size=2) */
285
 287 01ea 80E0      		ldi r24,lo8(0)
286
 288 01ec 0E94 0000 		call LIBFC_JetiBox_SetPos
287
 289 01f0 8091 0000 		lds r24,Motor+31
288
 290 01f4 9927      		clr r25
289
 291 01f6 87FD      		sbrc r24,7
290
 292 01f8 9095      		com r25
291
 293 01fa 9F93      		push r25
292
 294 01fc 8F93      		push r24
293
 295 01fe 8091 0000 		lds r24,Motor+23
294
 296 0202 9927      		clr r25
295
 297 0204 87FD      		sbrc r24,7
296
 298 0206 9095      		com r25
297
 299 0208 9F93      		push r25
298
 300 020a 8F93      		push r24
299
 301 020c 8091 0000 		lds r24,Motor+15
300
 302 0210 9927      		clr r25
301
 303 0212 87FD      		sbrc r24,7
302
 304 0214 9095      		com r25
303
 305 0216 9F93      		push r25
304
 306 0218 8F93      		push r24
305
 307 021a 8091 0000 		lds r24,Motor+7
306
 308 021e 9927      		clr r25
307
 309 0220 87FD      		sbrc r24,7
308
 310 0222 9095      		com r25
309
 311 0224 9F93      		push r25
310
 312 0226 8F93      		push r24
311
 313 0228 80E0      		ldi r24,lo8(__c.10)
312
 314 022a 90E0      		ldi r25,hi8(__c.10)
313
 315 022c 9F93      		push r25
314
 316 022e 8F93      		push r24
315
 317 0230 C0E0      		ldi r28,lo8(pm(LIBFC_JetiBox_Putchar))
316
 318 0232 D0E0      		ldi r29,hi8(pm(LIBFC_JetiBox_Putchar))
317
 319 0234 DF93      		push r29
318
 320 0236 CF93      		push r28
319
 321 0238 E091 0000 		lds r30,_printf_P
320
 322 023c F091 0000 		lds r31,(_printf_P)+1
321
 323 0240 0995      		icall
322
 324 0242 80E1      		ldi r24,lo8(16)
323
 325 0244 0E94 0000 		call LIBFC_JetiBox_SetPos
324
 326 0248 2DB7      		in r18,__SP_L__
325
 327 024a 3EB7      		in r19,__SP_H__
326
 328 024c 245F      		subi r18,lo8(-(12))
327
 329 024e 3F4F      		sbci r19,hi8(-(12))
328
 330 0250 2DBF      		out __SP_L__,r18
329
 331 0252 8091 0000 		lds r24,Motor+63
330
 332 0256 9927      		clr r25
331
 333 0258 87FD      		sbrc r24,7
332
 334 025a 9095      		com r25
333
 335 025c 9F93      		push r25
334
 336 025e 8F93      		push r24
335
 337 0260 8091 0000 		lds r24,Motor+55
336
 338 0264 9927      		clr r25
337
 339 0266 87FD      		sbrc r24,7
338
 340 0268 9095      		com r25
339
 341 026a 9F93      		push r25
340
 342 026c 8F93      		push r24
341
 343 026e 8091 0000 		lds r24,Motor+47
342
 344 0272 9927      		clr r25
343
 345 0274 87FD      		sbrc r24,7
344
 346 0276 9095      		com r25
345
 347 0278 9F93      		push r25
346
 348 027a 8F93      		push r24
347
 349 027c 8091 0000 		lds r24,Motor+39
348
 350 0280 9927      		clr r25
349
 351 0282 87FD      		sbrc r24,7
350
 352 0284 9095      		com r25
351
 353 0286 9F93      		push r25
352
 354 0288 8F93      		push r24
353
 355 028a 80E0      		ldi r24,lo8(__c.11)
354
 356 028c 90E0      		ldi r25,hi8(__c.11)
355
 357 028e 9F93      		push r25
356
 358 0290 8F93      		push r24
357
 359 0292 DF93      		push r29
358
 360 0294 CF93      		push r28
359
 361 0296 E091 0000 		lds r30,_printf_P
360
 362 029a F091 0000 		lds r31,(_printf_P)+1
361
 363 029e 0995      		icall
362
 364 02a0 8091 0000 		lds r24,RequiredMotors
363
 365 02a4 2DB7      		in r18,__SP_L__
364
 366 02a6 3EB7      		in r19,__SP_H__
365
 367 02a8 245F      		subi r18,lo8(-(12))
366
 368 02aa 3F4F      		sbci r19,hi8(-(12))
367
 369 02ac 2DBF      		out __SP_L__,r18
368
 370 02ae 8530      		cpi r24,lo8(5)
369
 371 02b0 98F4      		brsh .L7
370
 372 02b2 80E1      		ldi r24,lo8(16)
371
 373 02b4 0E94 0000 		call LIBFC_JetiBox_SetPos
372
 374 02b8 80E0      		ldi r24,lo8(__c.12)
373
 375 02ba 90E0      		ldi r25,hi8(__c.12)
374
 376 02bc 9F93      		push r25
375
 377 02be 8F93      		push r24
376
 378 02c0 DF93      		push r29
377
 379 02c2 CF93      		push r28
378
 380 02c4 E091 0000 		lds r30,_printf_P
379
 381 02c8 F091 0000 		lds r31,(_printf_P)+1
380
 382 02cc 0995      		icall
381
 383 02ce 0F90      		pop __tmp_reg__
382
 384 02d0 0F90      		pop __tmp_reg__
383
 385 02d2 0F90      		pop __tmp_reg__
384
 386 02d4 0F90      		pop __tmp_reg__
385
 387 02d6 18C0      		rjmp .L6
386
 388               	.L7:
387
 389 02d8 8730      		cpi r24,lo8(7)
388
 390 02da B0F4      		brsh .L6
389
 391 02dc 88E1      		ldi r24,lo8(24)
390
 392 02de 0E94 0000 		call LIBFC_JetiBox_SetPos
391
 393 02e2 8FED      		ldi r24,lo8(223)
392
 394 02e4 90E0      		ldi r25,hi8(223)
393
 395 02e6 9F93      		push r25
394
 396 02e8 8F93      		push r24
395
 397 02ea 80E0      		ldi r24,lo8(__c.13)
396
 398 02ec 90E0      		ldi r25,hi8(__c.13)
397
 399 02ee 9F93      		push r25
398
 400 02f0 8F93      		push r24
399
 401 02f2 DF93      		push r29
400
 402 02f4 CF93      		push r28
401
 403 02f6 E091 0000 		lds r30,_printf_P
402
 404 02fa F091 0000 		lds r31,(_printf_P)+1
403
 405 02fe 0995      		icall
404
 406 0300 8DB7      		in r24,__SP_L__
405
 407 0302 9EB7      		in r25,__SP_H__
406
 408 0304 0696      		adiw r24,6
407
 409 0306 8DBF      		out __SP_L__,r24
408
 410               	.L6:
409
 411               	/* epilogue: frame size=0 */
410
 412 0308 DF91      		pop r29
411
 413 030a CF91      		pop r28
412
 414 030c 0895      		ret
413
 415               	/* epilogue end (size=3) */
414
 416               	/* function Menu_Temperature size 148 (143) */
415
 418               		.section	.progmem.data
416
 421               	__c.8:
417
 422 008d 2532 692E 		.string	"%2i.%1iV  %3i.%1iA"
418
 422      2531 6956
419
 422      2020 2533
420
 422      692E 2531
421
 422      6941 00
422
 425               	__c.9:
423
 426 00a0 2534 6957 		.string	"%4iW %6imAh"
424
 426      2025 3669
425
 426      6D41 6800
426
 427               		.text
427
 428               	.global	Menu_Battery
428
 430               	Menu_Battery:
429
 431               	/* prologue: frame size=0 */
430
 432 030e 0F93      		push r16
431
 433 0310 1F93      		push r17
432
 434               	/* prologue end (size=2) */
433
 435 0312 80E0      		ldi r24,lo8(0)
434
 436 0314 0E94 0000 		call LIBFC_JetiBox_SetPos
435
 437 0318 2AE0      		ldi r18,lo8(10)
436
 438 031a 30E0      		ldi r19,hi8(10)
437
 439 031c 8091 0000 		lds r24,Capacity
438
 440 0320 9091 0000 		lds r25,(Capacity)+1
439
 441 0324 B901      		movw r22,r18
440
 442 0326 0E94 0000 		call __udivmodhi4
441
 443 032a 9F93      		push r25
442
 444 032c 8F93      		push r24
443
 445 032e 8091 0000 		lds r24,Capacity
444
 446 0332 9091 0000 		lds r25,(Capacity)+1
445
 447 0336 B901      		movw r22,r18
446
 448 0338 0E94 0000 		call __udivmodhi4
447
 449 033c 7F93      		push r23
448
 450 033e 6F93      		push r22
449
 451 0340 8091 0000 		lds r24,UBat
450
 452 0344 9091 0000 		lds r25,(UBat)+1
451
 453 0348 B901      		movw r22,r18
452
 454 034a 0E94 0000 		call __divmodhi4
453
 455 034e 9F93      		push r25
454
 456 0350 8F93      		push r24
455
 457 0352 8091 0000 		lds r24,UBat
456
 458 0356 9091 0000 		lds r25,(UBat)+1
457
 459 035a B901      		movw r22,r18
458
 460 035c 0E94 0000 		call __divmodhi4
459
 461 0360 7F93      		push r23
460
 462 0362 6F93      		push r22
461
 463 0364 80E0      		ldi r24,lo8(__c.8)
462
 464 0366 90E0      		ldi r25,hi8(__c.8)
463
 465 0368 9F93      		push r25
464
 466 036a 8F93      		push r24
465
 467 036c 00E0      		ldi r16,lo8(pm(LIBFC_JetiBox_Putchar))
466
 468 036e 10E0      		ldi r17,hi8(pm(LIBFC_JetiBox_Putchar))
467
 469 0370 1F93      		push r17
468
 470 0372 0F93      		push r16
469
 471 0374 E091 0000 		lds r30,_printf_P
470
 472 0378 F091 0000 		lds r31,(_printf_P)+1
471
 473 037c 0995      		icall
472
 474 037e 80E1      		ldi r24,lo8(16)
473
 475 0380 0E94 0000 		call LIBFC_JetiBox_SetPos
474
 476 0384 8DB7      		in r24,__SP_L__
475
 477 0386 9EB7      		in r25,__SP_H__
476
 478 0388 0C96      		adiw r24,12
477
 479 038a 8DBF      		out __SP_L__,r24
478
 480 038c 8091 0000 		lds r24,Capacity+4
479
 481 0390 9091 0000 		lds r25,(Capacity+4)+1
480
 482 0394 9F93      		push r25
481
 483 0396 8F93      		push r24
482
 484 0398 8091 0000 		lds r24,Capacity+2
483
 485 039c 9091 0000 		lds r25,(Capacity+2)+1
484
 486 03a0 9F93      		push r25
485
 487 03a2 8F93      		push r24
486
 488 03a4 80E0      		ldi r24,lo8(__c.9)
487
 489 03a6 90E0      		ldi r25,hi8(__c.9)
488
 490 03a8 9F93      		push r25
489
 491 03aa 8F93      		push r24
490
 492 03ac 1F93      		push r17
491
 493 03ae 0F93      		push r16
492
 494 03b0 E091 0000 		lds r30,_printf_P
493
 495 03b4 F091 0000 		lds r31,(_printf_P)+1
494
 496 03b8 0995      		icall
495
 497 03ba 8DB7      		in r24,__SP_L__
496
 498 03bc 9EB7      		in r25,__SP_H__
497
 499 03be 0896      		adiw r24,8
498
 500 03c0 8DBF      		out __SP_L__,r24
499
 501               	/* epilogue: frame size=0 */
500
 502 03c2 1F91      		pop r17
501
 503 03c4 0F91      		pop r16
502
 504 03c6 0895      		ret
503
 505               	/* epilogue end (size=3) */
504
 506               	/* function Menu_Battery size 93 (88) */
505
 508               		.section	.progmem.data
506
 511               	__c.2:
507
 512 00ac 2532 756D 		.string	"%2um/s Sat:%d "
508
 512      2F73 2053
509
 512      6174 3A25
510
 512      6420 00
511
 515               	__c.3:
512
 516 00bb 2020 3344 		.string	"  3D"
513
 516      00
514
 519               	__c.4:
515
 520 00c0 4E6F 4678 		.string	"NoFx"
516
 520      00
517
 523               	__c.5:
518
 524 00c5 4447 5053 		.string	"DGPS"
519
 524      00
520
 527               	__c.6:
521
 528 00ca 486F 6D65 		.string	"Home:%3dm %3d%c"
522
 528      3A25 3364
523
 528      6D20 2533
524
 528      6425 6300
525
 531               	__c.7:
526
 532 00da 4E6F 204E 		.string	"No NaviCtrl!"
527
 532      6176 6943
528
 532      7472 6C21
529
 532      00
530
 533               		.text
531
 534               	.global	Menu_PosInfo
532
 536               	Menu_PosInfo:
533
 537               	/* prologue: frame size=0 */
534
 538 03c8 0F93      		push r16
535
 539 03ca 1F93      		push r17
536
 540 03cc CF93      		push r28
537
 541 03ce DF93      		push r29
538
 542               	/* prologue end (size=4) */
539
 543 03d0 8091 0000 		lds r24,NaviDataOkay
540
 544 03d4 C0E0      		ldi r28,lo8(pm(LIBFC_JetiBox_Putchar))
541
 545 03d6 D0E0      		ldi r29,hi8(pm(LIBFC_JetiBox_Putchar))
542
 546 03d8 8823      		tst r24
543
 547 03da 09F4      		brne .+2
544
 548 03dc 78C0      		rjmp .L12
545
 549 03de 80E0      		ldi r24,lo8(0)
546
 550 03e0 0E94 0000 		call LIBFC_JetiBox_SetPos
547
 551 03e4 8091 0000 		lds r24,GPSInfo+1
548
 552 03e8 9927      		clr r25
549
 553 03ea 9F93      		push r25
550
 554 03ec 8F93      		push r24
551
 555 03ee 8091 0000 		lds r24,GPSInfo+3
552
 556 03f2 9927      		clr r25
553
 557 03f4 9F93      		push r25
554
 558 03f6 8F93      		push r24
555
 559 03f8 80E0      		ldi r24,lo8(__c.2)
556
 560 03fa 90E0      		ldi r25,hi8(__c.2)
557
 561 03fc 9F93      		push r25
558
 562 03fe 8F93      		push r24
559
 563 0400 8E01      		movw r16,r28
560
 564 0402 DF93      		push r29
561
 565 0404 CF93      		push r28
562
 566 0406 E091 0000 		lds r30,_printf_P
563
 567 040a F091 0000 		lds r31,(_printf_P)+1
564
 568 040e 0995      		icall
565
 569 0410 8DB7      		in r24,__SP_L__
566
 570 0412 9EB7      		in r25,__SP_H__
567
 571 0414 0896      		adiw r24,8
568
 572 0416 8DBF      		out __SP_L__,r24
569
 573 0418 8091 0000 		lds r24,GPSInfo+2
570
 574 041c 8330      		cpi r24,lo8(3)
571
 575 041e 31F4      		brne .L17
572
 576 0420 8CE0      		ldi r24,lo8(12)
573
 577 0422 0E94 0000 		call LIBFC_JetiBox_SetPos
574
 578 0426 80E0      		ldi r24,lo8(__c.3)
575
 579 0428 90E0      		ldi r25,hi8(__c.3)
576
 580 042a 05C0      		rjmp .L20
577
 581               	.L17:
578
 582 042c 8CE0      		ldi r24,lo8(12)
579
 583 042e 0E94 0000 		call LIBFC_JetiBox_SetPos
580
 584 0432 80E0      		ldi r24,lo8(__c.4)
581
 585 0434 90E0      		ldi r25,hi8(__c.4)
582
 586               	.L20:
583
 587 0436 9F93      		push r25
584
 588 0438 8F93      		push r24
585
 589 043a DF93      		push r29
586
 590 043c CF93      		push r28
587
 591 043e E091 0000 		lds r30,_printf_P
588
 592 0442 F091 0000 		lds r31,(_printf_P)+1
589
 593 0446 0995      		icall
590
 594 0448 0F90      		pop __tmp_reg__
591
 595 044a 0F90      		pop __tmp_reg__
592
 596 044c 0F90      		pop __tmp_reg__
593
 597 044e 0F90      		pop __tmp_reg__
594
 598 0450 8091 0000 		lds r24,GPSInfo
595
 599 0454 81FF      		sbrs r24,1
596
 600 0456 12C0      		rjmp .L18
597
 601 0458 8CE0      		ldi r24,lo8(12)
598
 602 045a 0E94 0000 		call LIBFC_JetiBox_SetPos
599
 603 045e 80E0      		ldi r24,lo8(__c.5)
600
 604 0460 90E0      		ldi r25,hi8(__c.5)
601
 605 0462 9F93      		push r25
602
 606 0464 8F93      		push r24
603
 607 0466 1F93      		push r17
604
 608 0468 0F93      		push r16
605
 609 046a E091 0000 		lds r30,_printf_P
606
 610 046e F091 0000 		lds r31,(_printf_P)+1
607
 611 0472 0995      		icall
608
 612 0474 0F90      		pop __tmp_reg__
609
 613 0476 0F90      		pop __tmp_reg__
610
 614 0478 0F90      		pop __tmp_reg__
611
 615 047a 0F90      		pop __tmp_reg__
612
 616               	.L18:
613
 617 047c 80E1      		ldi r24,lo8(16)
614
 618 047e 0E94 0000 		call LIBFC_JetiBox_SetPos
615
 619 0482 8FED      		ldi r24,lo8(223)
616
 620 0484 90E0      		ldi r25,hi8(223)
617
 621 0486 9F93      		push r25
618
 622 0488 8F93      		push r24
619
 623 048a 8091 0000 		lds r24,GPSInfo+6
620
 624 048e 9091 0000 		lds r25,(GPSInfo+6)+1
621
 625 0492 9F93      		push r25
622
 626 0494 8F93      		push r24
623
 627 0496 8091 0000 		lds r24,GPSInfo+4
624
 628 049a 9091 0000 		lds r25,(GPSInfo+4)+1
625
 629 049e 6AE0      		ldi r22,lo8(10)
626
 630 04a0 70E0      		ldi r23,hi8(10)
627
 631 04a2 0E94 0000 		call __udivmodhi4
628
 632 04a6 7F93      		push r23
629
 633 04a8 6F93      		push r22
630
 634 04aa 80E0      		ldi r24,lo8(__c.6)
631
 635 04ac 90E0      		ldi r25,hi8(__c.6)
632
 636 04ae 9F93      		push r25
633
 637 04b0 8F93      		push r24
634
 638 04b2 80E0      		ldi r24,lo8(pm(LIBFC_JetiBox_Putchar))
635
 639 04b4 90E0      		ldi r25,hi8(pm(LIBFC_JetiBox_Putchar))
636
 640 04b6 9F93      		push r25
637
 641 04b8 8F93      		push r24
638
 642 04ba E091 0000 		lds r30,_printf_P
639
 643 04be F091 0000 		lds r31,(_printf_P)+1
640
 644 04c2 0995      		icall
641
 645 04c4 8DB7      		in r24,__SP_L__
642
 646 04c6 9EB7      		in r25,__SP_H__
643
 647 04c8 0A96      		adiw r24,10
644
 648 04ca 8DBF      		out __SP_L__,r24
645
 649 04cc 12C0      		rjmp .L11
646
 650               	.L12:
647
 651 04ce 82E0      		ldi r24,lo8(2)
648
 652 04d0 0E94 0000 		call LIBFC_JetiBox_SetPos
649
 653 04d4 80E0      		ldi r24,lo8(__c.7)
650
 654 04d6 90E0      		ldi r25,hi8(__c.7)
651
 655 04d8 9F93      		push r25
652
 656 04da 8F93      		push r24
653
 657 04dc DF93      		push r29
654
 658 04de CF93      		push r28
655
 659 04e0 E091 0000 		lds r30,_printf_P
656
 660 04e4 F091 0000 		lds r31,(_printf_P)+1
657
 661 04e8 0995      		icall
658
 662 04ea 0F90      		pop __tmp_reg__
659
 663 04ec 0F90      		pop __tmp_reg__
660
 664 04ee 0F90      		pop __tmp_reg__
661
 665 04f0 0F90      		pop __tmp_reg__
662
 666               	.L11:
663
 667               	/* epilogue: frame size=0 */
664
 668 04f2 DF91      		pop r29
665
 669 04f4 CF91      		pop r28
666
 670 04f6 1F91      		pop r17
667
 671 04f8 0F91      		pop r16
668
 672 04fa 0895      		ret
669
 673               	/* epilogue end (size=5) */
670
 674               	/* function Menu_PosInfo size 154 (145) */
671
 676               		.lcomm item.0,1
672
 677               		.lcomm last_item.1,1
673
 678               	.global	JetiBox_Update
674
 680               	JetiBox_Update:
675
 681               	/* prologue: frame size=0 */
676
 682 04fc CF93      		push r28
677
 683               	/* prologue end (size=1) */
678
 684 04fe C82F      		mov r28,r24
679
 685 0500 2091 0000 		lds r18,item.0
680
 686 0504 2093 0000 		sts last_item.1,r18
681
 687 0508 9927      		clr r25
682
 688 050a 8F32      		cpi r24,47
683
 689 050c 9105      		cpc r25,__zero_reg__
684
 690 050e 09F1      		breq .L27
685
 691 0510 8033      		cpi r24,48
686
 692 0512 9105      		cpc r25,__zero_reg__
687
 693 0514 1CF4      		brge .L30
688
 694 0516 4F97      		sbiw r24,31
689
 695 0518 A1F0      		breq .L26
690
 696 051a 2CC0      		rjmp .L22
691
 697               	.L30:
692
 698 051c 8F34      		cpi r24,79
693
 699 051e 9105      		cpc r25,__zero_reg__
694
 700 0520 01F1      		breq .L28
695
 701 0522 8F38      		cpi r24,143
696
 702 0524 9105      		cpc r25,__zero_reg__
697
 703 0526 31F5      		brne .L22
698
 704 0528 2223      		tst r18
699
 705 052a 19F4      		brne .L24
700
 706 052c 81E0      		ldi r24,lo8(1)
701
 707 052e 90E0      		ldi r25,hi8(1)
702
 708 0530 38C0      		rjmp .L21
703
 709               	.L24:
704
 710 0532 86E0      		ldi r24,lo8(6)
705
 711 0534 289F      		mul r18,r24
706
 712 0536 F001      		movw r30,r0
707
 713 0538 1124      		clr r1
708
 714 053a E050      		subi r30,lo8(-(JetiBox_Menu))
709
 715 053c F040      		sbci r31,hi8(-(JetiBox_Menu))
710
 716               	/* #APP */
711
 717 053e 8491      		lpm r24, Z
712
 718
713
 719               	/* #NOAPP */
714
 720 0540 17C0      		rjmp .L32
715
 721               	.L26:
716
 722 0542 86E0      		ldi r24,lo8(6)
717
 723 0544 289F      		mul r18,r24
718
 724 0546 F001      		movw r30,r0
719
 725 0548 1124      		clr r1
720
 726 054a E050      		subi r30,lo8(-(JetiBox_Menu+1))
721
 727 054c F040      		sbci r31,hi8(-(JetiBox_Menu+1))
722
 728               	/* #APP */
723
 729 054e 8491      		lpm r24, Z
724
 730
725
 731               	/* #NOAPP */
726
 732 0550 0FC0      		rjmp .L32
727
 733               	.L27:
728
 734 0552 86E0      		ldi r24,lo8(6)
729
 735 0554 289F      		mul r18,r24
730
 736 0556 F001      		movw r30,r0
731
 737 0558 1124      		clr r1
732
 738 055a E050      		subi r30,lo8(-(JetiBox_Menu+2))
733
 739 055c F040      		sbci r31,hi8(-(JetiBox_Menu+2))
734
 740               	/* #APP */
735
 741 055e 8491      		lpm r24, Z
736
 742
737
 743               	/* #NOAPP */
738
 744 0560 07C0      		rjmp .L32
739
 745               	.L28:
740
 746 0562 86E0      		ldi r24,lo8(6)
741
 747 0564 289F      		mul r18,r24
742
 748 0566 F001      		movw r30,r0
743
 749 0568 1124      		clr r1
744
 750 056a E050      		subi r30,lo8(-(JetiBox_Menu+3))
745
 751 056c F040      		sbci r31,hi8(-(JetiBox_Menu+3))
746
 752               	/* #APP */
747
 753 056e 8491      		lpm r24, Z
748
 754
749
 755               	/* #NOAPP */
750
 756               	.L32:
751
 757 0570 8093 0000 		sts item.0,r24
752
 758               	.L22:
753
 759 0574 9091 0000 		lds r25,item.0
754
 760 0578 8091 0000 		lds r24,last_item.1
755
 761 057c 9813      		cpse r25,r24
756
 762 057e C0E0      		ldi r28,lo8(0)
757
 763               	.L31:
758
 764 0580 0E94 0000 		call LIBFC_JetiBox_Clear
759
 765 0584 9091 0000 		lds r25,item.0
760
 766 0588 86E0      		ldi r24,lo8(6)
761
 767 058a 989F      		mul r25,r24
762
 768 058c F001      		movw r30,r0
763
 769 058e 1124      		clr r1
764
 770 0590 E050      		subi r30,lo8(-(JetiBox_Menu+4))
765
 771 0592 F040      		sbci r31,hi8(-(JetiBox_Menu+4))
766
 772               	/* #APP */
767
 773 0594 2591      		lpm r18, Z+
768
 774 0596 3491      		lpm r19, Z
769
 775
770
 776               	/* #NOAPP */
771
 777 0598 8C2F      		mov r24,r28
772
 778 059a F901      		movw r30,r18
773
 779 059c 0995      		icall
774
 780 059e 80E0      		ldi r24,lo8(0)
775
 781 05a0 90E0      		ldi r25,hi8(0)
776
 782               	.L21:
777
 783               	/* epilogue: frame size=0 */
778
 784 05a2 CF91      		pop r28
779
 785 05a4 0895      		ret
780
 786               	/* epilogue end (size=2) */
781
 787               	/* function JetiBox_Update size 103 (100) */
782
 789               	/* File "jetimenu.c": code  741 = 0x02e5 ( 714), prologues  11, epilogues  16 */
783
DEFINED SYMBOLS
784
                            *ABS*:00000000 jetimenu.c
785
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:3      *ABS*:0000003f __SREG__
786
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:4      *ABS*:0000003e __SP_H__
787
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:5      *ABS*:0000003d __SP_L__
788
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:6      *ABS*:00000000 __tmp_reg__
789
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:7      *ABS*:00000001 __zero_reg__
790
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:14     .progmem.data:00000000 JetiBox_Menu
791
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:62     .text:00000000 Menu_Status
792
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:282    .text:000001e6 Menu_Temperature
793
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:430    .text:0000030e Menu_Battery
794
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:536    .text:000003c8 Menu_PosInfo
795
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:37     .progmem.data:00000018 __c.14
796
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:41     .progmem.data:00000021 __c.15
797
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:45     .progmem.data:0000002d __c.16
798
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:49     .progmem.data:00000034 __c.17
799
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:53     .progmem.data:0000003f __c.18
800
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:57     .progmem.data:0000004c __c.19
801
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:265    .progmem.data:00000053 __c.10
802
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:269    .progmem.data:00000063 __c.11
803
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:273    .progmem.data:00000073 __c.12
804
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:277    .progmem.data:00000084 __c.13
805
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:421    .progmem.data:0000008d __c.8
806
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:425    .progmem.data:000000a0 __c.9
807
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:511    .progmem.data:000000ac __c.2
808
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:515    .progmem.data:000000bb __c.3
809
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:519    .progmem.data:000000c0 __c.4
810
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:523    .progmem.data:000000c5 __c.5
811
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:527    .progmem.data:000000ca __c.6
812
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:531    .progmem.data:000000da __c.7
813
                             .bss:00000000 item.0
814
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:676    .bss:00000001 last_item.1
815
C:\Users\Arthur-P\AppData\Local\Temp/ccCAbaaa.s:680    .text:000004fc JetiBox_Update
816
 
817
UNDEFINED SYMBOLS
818
__do_copy_data
819
__do_clear_bss
820
LIBFC_JetiBox_SetPos
821
UBat
822
__divmodhi4
823
LIBFC_JetiBox_Putchar
824
_printf_P
825
NaviDataOkay
826
GPSInfo
827
__udivmodhi4
828
ErsatzKompass
829
GIER_GRAD_FAKTOR
830
__divmodsi4
831
NC_ErrorCode
832
FlugSekunden
833
Capacity
834
EE_Parameter
835
VarioCharacter
836
HoehenWert
837
Motor
838
RequiredMotors
839
LIBFC_JetiBox_Clear