Automatic commit. Tue Aug 7 03:00:04 WST 2012
[matches/honours.git] / research / TCS / apparatus / source_code / commands.lst
1    1                            .file   "commands.c"
2    2                    __SREG__ = 0x3f
3    3                    __SP_H__ = 0x3e
4    4                    __SP_L__ = 0x3d
5    5                    __CCP__  = 0x34
6    6                    __tmp_reg__ = 0
7    7                    __zero_reg__ = 1
8   15                    .Ltext0:
9   16                            .section        .text.reset,"ax",@progbits
10   17                    .global reset
11   19                    reset:
12   20                    .LFB8:
13   21                    .LSM0:
14   22                    .LVL0:
15   23                    /* prologue: function */
16   24                    /* frame size = 0 */
17   25                    .LSM1:
18   26 0000 0E94 0000             call Initialization
19   27                    .LVL1:
20   28                    .LSM2:
21   29 0004 80E0                  ldi r24,lo8(0)
22   30                    /* epilogue start */
23   31 0006 0895                  ret
24   32                    .LFE8:
25   34                            .data
26   35                    .LC0:
27   36 0000 2320 6465             .string "# delay %i\r\n"
28   36      6C61 7920 
29   36      2569 0D0A 
30   36      00
31   37                    .LC1:
32   38 000d 6465 6C61             .string "delay %i"
33   38      7920 2569 
34   38      00
35   39                            .section        .text.set_delay,"ax",@progbits
36   40                    .global set_delay
37   42                    set_delay:
38   43                    .LFB7:
39   44                    .LSM3:
40   45                    .LVL2:
41   46                    /* prologue: function */
42   47                    /* frame size = 0 */
43   48 0000 FC01                  movw r30,r24
44   49                    .LSM4:
45   50 0002 8081                  ld r24,Z
46   51                    .LVL3:
47   52 0004 8823                  tst r24
48   53 0006 01F0                  breq .L4
49   54                    .LSM5:
50   55 0008 CF01                  movw r24,r30
51   56 000a 0E94 0000             call atoi
52   57                    .LVL4:
53   58 000e 9093 0000             sts (setup)+1,r25
54   59 0012 8093 0000             sts setup,r24
55   60                    .LVL5:
56   61                    .L4:
57   62                    .LSM6:
58   63 0016 00D0                  rcall .
59   64 0018 00D0                  rcall .
60   65 001a 80E0                  ldi r24,lo8(.LC0)
61   66 001c 90E0                  ldi r25,hi8(.LC0)
62   67 001e EDB7                  in r30,__SP_L__
63   68 0020 FEB7                  in r31,__SP_H__
64   69                    .LVL6:
65   70 0022 9283                  std Z+2,r25
66   71 0024 8183                  std Z+1,r24
67   72 0026 8091 0000             lds r24,setup
68   73 002a 9091 0000             lds r25,(setup)+1
69   74 002e 9483                  std Z+4,r25
70   75 0030 8383                  std Z+3,r24
71   76 0032 0E94 0000             call USART_printf
72   77                    .LSM7:
73   78 0036 80E0                  ldi r24,lo8(.LC1)
74   79 0038 90E0                  ldi r25,hi8(.LC1)
75   80 003a EDB7                  in r30,__SP_L__
76   81 003c FEB7                  in r31,__SP_H__
77   82 003e 9283                  std Z+2,r25
78   83 0040 8183                  std Z+1,r24
79   84 0042 8091 0000             lds r24,setup
80   85 0046 9091 0000             lds r25,(setup)+1
81   86 004a 9483                  std Z+4,r25
82   87 004c 8383                  std Z+3,r24
83   88 004e 0E94 0000             call LCD_printf
84   89 0052 0F90                  pop __tmp_reg__
85   90 0054 0F90                  pop __tmp_reg__
86   91 0056 0F90                  pop __tmp_reg__
87   92 0058 0F90                  pop __tmp_reg__
88   93                    .LSM8:
89   94 005a 80E0                  ldi r24,lo8(0)
90   95                    /* epilogue start */
91   96 005c 0895                  ret
92   97                    .LFE7:
93   99                            .data
94  100                    .LC2:
95  101 0016 2320 7469             .string "# timeout %i\r\n"
96  101      6D65 6F75 
97  101      7420 2569 
98  101      0D0A 00
99  102                    .LC3:
100  103 0025 7469 6D65             .string "timeout %i"
101  103      6F75 7420 
102  103      2569 00
103  104                            .section        .text.set_timeout,"ax",@progbits
104  105                    .global set_timeout
105  107                    set_timeout:
106  108                    .LFB6:
107  109                    .LSM9:
108  110                    .LVL7:
109  111                    /* prologue: function */
110  112                    /* frame size = 0 */
111  113 0000 FC01                  movw r30,r24
112  114                    .LSM10:
113  115 0002 8081                  ld r24,Z
114  116                    .LVL8:
115  117 0004 8823                  tst r24
116  118 0006 01F0                  breq .L7
117  119                    .LSM11:
118  120 0008 CF01                  movw r24,r30
119  121 000a 0E94 0000             call atoi
120  122                    .LVL9:
121  123 000e AA27                  clr r26
122  124 0010 97FD                  sbrc r25,7
123  125 0012 A095                  com r26
124  126 0014 BA2F                  mov r27,r26
125  127 0016 8093 0000             sts setup+4,r24
126  128 001a 9093 0000             sts (setup+4)+1,r25
127  129 001e A093 0000             sts (setup+4)+2,r26
128  130 0022 B093 0000             sts (setup+4)+3,r27
129  131                    .LVL10:
130  132                    .L7:
131  133                    .LSM12:
132  134 0026 00D0                  rcall .
133  135 0028 00D0                  rcall .
134  136 002a 00D0                  rcall .
135  137 002c 80E0                  ldi r24,lo8(.LC2)
136  138 002e 90E0                  ldi r25,hi8(.LC2)
137  139 0030 EDB7                  in r30,__SP_L__
138  140 0032 FEB7                  in r31,__SP_H__
139  141                    .LVL11:
140  142 0034 9283                  std Z+2,r25
141  143 0036 8183                  std Z+1,r24
142  144 0038 8091 0000             lds r24,setup+4
143  145 003c 9091 0000             lds r25,(setup+4)+1
144  146 0040 A091 0000             lds r26,(setup+4)+2
145  147 0044 B091 0000             lds r27,(setup+4)+3
146  148 0048 8383                  std Z+3,r24
147  149 004a 9483                  std Z+4,r25
148  150 004c A583                  std Z+5,r26
149  151 004e B683                  std Z+6,r27
150  152 0050 0E94 0000             call USART_printf
151  153                    .LSM13:
152  154 0054 80E0                  ldi r24,lo8(.LC3)
153  155 0056 90E0                  ldi r25,hi8(.LC3)
154  156 0058 EDB7                  in r30,__SP_L__
155  157 005a FEB7                  in r31,__SP_H__
156  158 005c 9283                  std Z+2,r25
157  159 005e 8183                  std Z+1,r24
158  160 0060 8091 0000             lds r24,setup+4
159  161 0064 9091 0000             lds r25,(setup+4)+1
160  162 0068 A091 0000             lds r26,(setup+4)+2
161  163 006c B091 0000             lds r27,(setup+4)+3
162  164 0070 8383                  std Z+3,r24
163  165 0072 9483                  std Z+4,r25
164  166 0074 A583                  std Z+5,r26
165  167 0076 B683                  std Z+6,r27
166  168 0078 0E94 0000             call LCD_printf
167  169 007c 8DB7                  in r24,__SP_L__
168  170 007e 9EB7                  in r25,__SP_H__
169  171 0080 0696                  adiw r24,6
170  172 0082 0FB6                  in __tmp_reg__,__SREG__
171  173 0084 F894                  cli
172  174 0086 9EBF                  out __SP_H__,r25
173  175 0088 0FBE                  out __SREG__,__tmp_reg__
174  176 008a 8DBF                  out __SP_L__,r24
175  177                    .LSM14:
176  178 008c 80E0                  ldi r24,lo8(0)
177  179                    /* epilogue start */
178  180 008e 0895                  ret
179  181                    .LFE6:
180  183                            .data
181  184                    .LC4:
182  185 0030 2320 4176             .string "# Avgs %i\r\n"
183  185      6773 2025 
184  185      690D 0A00 
185  186                    .LC5:
186  187 003c 4176 6773             .string "Avgs %i"
187  187      2025 6900 
188  188                            .section        .text.set_averages,"ax",@progbits
189  189                    .global set_averages
190  191                    set_averages:
191  192                    .LFB5:
192  193                    .LSM15:
193  194                    .LVL12:
194  195                    /* prologue: function */
195  196                    /* frame size = 0 */
196  197 0000 FC01                  movw r30,r24
197  198                    .LSM16:
198  199 0002 8081                  ld r24,Z
199  200                    .LVL13:
200  201 0004 8823                  tst r24
201  202 0006 01F0                  breq .L10
202  203                    .LSM17:
203  204 0008 CF01                  movw r24,r30
204  205 000a 0E94 0000             call atoi
205  206                    .LVL14:
206  207 000e 9093 0000             sts (setup+2)+1,r25
207  208 0012 8093 0000             sts setup+2,r24
208  209                    .LVL15:
209  210                    .L10:
210  211                    .LSM18:
211  212 0016 00D0                  rcall .
212  213 0018 00D0                  rcall .
213  214 001a 80E0                  ldi r24,lo8(.LC4)
214  215 001c 90E0                  ldi r25,hi8(.LC4)
215  216 001e EDB7                  in r30,__SP_L__
216  217 0020 FEB7                  in r31,__SP_H__
217  218                    .LVL16:
218  219 0022 9283                  std Z+2,r25
219  220 0024 8183                  std Z+1,r24
220  221 0026 8091 0000             lds r24,setup+2
221  222 002a 9091 0000             lds r25,(setup+2)+1
222  223 002e 9483                  std Z+4,r25
223  224 0030 8383                  std Z+3,r24
224  225 0032 0E94 0000             call USART_printf
225  226                    .LSM19:
226  227 0036 80E0                  ldi r24,lo8(.LC5)
227  228 0038 90E0                  ldi r25,hi8(.LC5)
228  229 003a EDB7                  in r30,__SP_L__
229  230 003c FEB7                  in r31,__SP_H__
230  231 003e 9283                  std Z+2,r25
231  232 0040 8183                  std Z+1,r24
232  233 0042 8091 0000             lds r24,setup+2
233  234 0046 9091 0000             lds r25,(setup+2)+1
234  235 004a 9483                  std Z+4,r25
235  236 004c 8383                  std Z+3,r24
236  237 004e 0E94 0000             call LCD_printf
237  238 0052 0F90                  pop __tmp_reg__
238  239 0054 0F90                  pop __tmp_reg__
239  240 0056 0F90                  pop __tmp_reg__
240  241 0058 0F90                  pop __tmp_reg__
241  242                    .LSM20:
242  243 005a 80E0                  ldi r24,lo8(0)
243  244                    /* epilogue start */
244  245 005c 0895                  ret
245  246                    .LFE5:
246  248                            .data
247  249                    .LC6:
248  250 0044 2320 4441             .string "# DAC %i\r\n"
249  250      4320 2569 
250  250      0D0A 00
251  251                    .LC7:
252  252 004f 4420 2569             .string "D %i"
253  252      00
254  253                            .section        .text.set_dac,"ax",@progbits
255  254                    .global set_dac
256  256                    set_dac:
257  257                    .LFB4:
258  258                    .LSM21:
259  259                    .LVL17:
260  260                    /* prologue: function */
261  261                    /* frame size = 0 */
262  262 0000 FC01                  movw r30,r24
263  263                    .LSM22:
264  264 0002 8081                  ld r24,Z
265  265                    .LVL18:
266  266 0004 8823                  tst r24
267  267 0006 01F0                  breq .L13
268  268                    .LSM23:
269  269 0008 CF01                  movw r24,r30
270  270 000a 0E94 0000             call atoi
271  271                    .LVL19:
272  272 000e 9093 0000             sts (setup+12)+1,r25
273  273 0012 8093 0000             sts setup+12,r24
274  274                    .LSM24:
275  275 0016 0E94 0000             call DAC_Set
276  276                    .LVL20:
277  277                    .L13:
278  278                    .LSM25:
279  279 001a 00D0                  rcall .
280  280 001c 00D0                  rcall .
281  281 001e 80E0                  ldi r24,lo8(.LC6)
282  282 0020 90E0                  ldi r25,hi8(.LC6)
283  283 0022 EDB7                  in r30,__SP_L__
284  284 0024 FEB7                  in r31,__SP_H__
285  285                    .LVL21:
286  286 0026 9283                  std Z+2,r25
287  287 0028 8183                  std Z+1,r24
288  288 002a 8091 0000             lds r24,setup+12
289  289 002e 9091 0000             lds r25,(setup+12)+1
290  290 0032 9483                  std Z+4,r25
291  291 0034 8383                  std Z+3,r24
292  292 0036 0E94 0000             call USART_printf
293  293                    .LSM26:
294  294 003a 80E0                  ldi r24,lo8(.LC7)
295  295 003c 90E0                  ldi r25,hi8(.LC7)
296  296 003e EDB7                  in r30,__SP_L__
297  297 0040 FEB7                  in r31,__SP_H__
298  298 0042 9283                  std Z+2,r25
299  299 0044 8183                  std Z+1,r24
300  300 0046 8091 0000             lds r24,setup+12
301  301 004a 9091 0000             lds r25,(setup+12)+1
302  302 004e 9483                  std Z+4,r25
303  303 0050 8383                  std Z+3,r24
304  304 0052 0E94 0000             call LCD_printf
305  305 0056 0F90                  pop __tmp_reg__
306  306 0058 0F90                  pop __tmp_reg__
307  307 005a 0F90                  pop __tmp_reg__
308  308 005c 0F90                  pop __tmp_reg__
309  309                    .LSM27:
310  310 005e 80E0                  ldi r24,lo8(0)
311  311                    /* epilogue start */
312  312 0060 0895                  ret
313  313                    .LFE4:
314  315                            .data
315  316                    .LC8:
316  317 0054 2569 2000             .string "%i "
317  318                    .LC9:
318  319 0058 2566 2025             .string "%f %f "
319  319      6620 00
320  320                    .LC10:
321  321 005f 2569 00               .string "%i"
322  322                    .LC11:
323  323 0062 0D0A 00               .string "\r\n"
324  324                            .section        .text.read_adc,"ax",@progbits
325  325                    .global read_adc
326  327                    read_adc:
327  328                    .LFB2:
328  329                    .LSM28:
329  330 0000 AF92                  push r10
330  331 0002 BF92                  push r11
331  332 0004 CF92                  push r12
332  333 0006 DF92                  push r13
333  334 0008 EF92                  push r14
334  335 000a FF92                  push r15
335  336 000c 0F93                  push r16
336  337 000e 1F93                  push r17
337  338 0010 CF93                  push r28
338  339 0012 DF93                  push r29
339  340                    /* prologue: function */
340  341                    /* frame size = 0 */
341  342 0014 6C01                  movw r12,r24
342  343                    .LSM29:
343  344 0016 DC01                  movw r26,r24
344  345 0018 8C91                  ld r24,X
345  346 001a 8823                  tst r24
346  347 001c 01F0                  breq .L16
347  348 001e E601                  movw r28,r12
348  349                    .LBB2:
349  350                    .LSM30:
350  351 0020 20E0                  ldi r18,lo8(.LC9)
351  352 0022 A22E                  mov r10,r18
352  353 0024 20E0                  ldi r18,hi8(.LC9)
353  354 0026 B22E                  mov r11,r18
354  355 0028 00C0                  rjmp .L17
355  356                    .L16:
356  357                    .LBE2:
357  358                    .LSM31:
358  359 002a 00E0                  ldi r16,lo8(0)
359  360                    .LBB3:
360  361                    .LSM32:
361  362 002c C0E0                  ldi r28,lo8(.LC8)
362  363 002e D0E0                  ldi r29,hi8(.LC8)
363  364                    .L18:
364  365 0030 802F                  mov r24,r16
365  366 0032 0E94 0000             call ADC_read
366  367 0036 00D0                  rcall .
367  368 0038 00D0                  rcall .
368  369 003a 00D0                  rcall .
369  370 003c EDB7                  in r30,__SP_L__
370  371 003e FEB7                  in r31,__SP_H__
371  372 0040 D283                  std Z+2,r29
372  373 0042 C183                  std Z+1,r28
373  374 0044 ADB7                  in r26,__SP_L__
374  375 0046 BEB7                  in r27,__SP_H__
375  376 0048 1396                  adiw r26,3
376  377 004a 6D93                  st X+,r22
377  378 004c 7D93                  st X+,r23
378  379 004e 8D93                  st X+,r24
379  380 0050 9C93                  st X,r25
380  381 0052 1697                  sbiw r26,3+3
381  382 0054 0E94 0000             call USART_printf
382  383                    .LSM33:
383  384 0058 0F5F                  subi r16,lo8(-(1))
384  385 005a EDB7                  in r30,__SP_L__
385  386 005c FEB7                  in r31,__SP_H__
386  387 005e 3696                  adiw r30,6
387  388 0060 0FB6                  in __tmp_reg__,__SREG__
388  389 0062 F894                  cli
389  390 0064 FEBF                  out __SP_H__,r31
390  391 0066 0FBE                  out __SREG__,__tmp_reg__
391  392 0068 EDBF                  out __SP_L__,r30
392  393 006a 0830                  cpi r16,lo8(8)
393  394 006c 01F4                  brne .L18
394  395 006e 00C0                  rjmp .L19
395  396                    .L20:
396  397                    .LBE3:
397  398                    .LBB4:
398  399                    .LSM34:
399  400 0070 8053                  subi r24,lo8(-(-48))
400  401 0072 0E94 0000             call ADC_read
401  402 0076 7B01                  movw r14,r22
402  403 0078 8C01                  movw r16,r24
403  404 007a E991                  ld r30,Y+
404  405 007c F0E0                  ldi r31,lo8(0)
405  406 007e EE0F                  lsl r30
406  407 0080 FF1F                  rol r31
407  408 0082 EE0F                  lsl r30
408  409 0084 FF1F                  rol r31
409  410 0086 E050                  subi r30,lo8(-(setup-192))
410  411 0088 F040                  sbci r31,hi8(-(setup-192))
411  412 008a 66A5                  ldd r22,Z+46
412  413 008c 77A5                  ldd r23,Z+47
413  414 008e 80A9                  ldd r24,Z+48
414  415 0090 91A9                  ldd r25,Z+49
415  416 0092 0E94 0000             call sqrt
416  417 0096 2DB7                  in r18,__SP_L__
417  418 0098 3EB7                  in r19,__SP_H__
418  419 009a 2A50                  subi r18,lo8(-(-10))
419  420 009c 3040                  sbci r19,hi8(-(-10))
420  421 009e 0FB6                  in __tmp_reg__,__SREG__
421  422 00a0 F894                  cli
422  423 00a2 3EBF                  out __SP_H__,r19
423  424 00a4 0FBE                  out __SREG__,__tmp_reg__
424  425 00a6 2DBF                  out __SP_L__,r18
425  426 00a8 EDB7                  in r30,__SP_L__
426  427 00aa FEB7                  in r31,__SP_H__
427  428 00ac 3196                  adiw r30,1
428  429 00ae ADB7                  in r26,__SP_L__
429  430 00b0 BEB7                  in r27,__SP_H__
430  431 00b2 1296                  adiw r26,1+1
431  432 00b4 BC92                  st X,r11
432  433 00b6 AE92                  st -X,r10
433  434 00b8 1197                  sbiw r26,1
434  435 00ba E282                  std Z+2,r14
435  436 00bc F382                  std Z+3,r15
436  437 00be 0483                  std Z+4,r16
437  438 00c0 1583                  std Z+5,r17
438  439 00c2 6683                  std Z+6,r22
439  440 00c4 7783                  std Z+7,r23
440  441 00c6 8087                  std Z+8,r24
441  442 00c8 9187                  std Z+9,r25
442  443 00ca 0E94 0000             call USART_printf
443  444                    .LSM35:
444  445 00ce EDB7                  in r30,__SP_L__
445  446 00d0 FEB7                  in r31,__SP_H__
446  447 00d2 3A96                  adiw r30,10
447  448 00d4 0FB6                  in __tmp_reg__,__SREG__
448  449 00d6 F894                  cli
449  450 00d8 FEBF                  out __SP_H__,r31
450  451 00da 0FBE                  out __SREG__,__tmp_reg__
451  452 00dc EDBF                  out __SP_L__,r30
452  453                    .L17:
453  454 00de 8881                  ld r24,Y
454  455 00e0 8823                  tst r24
455  456 00e2 01F4                  brne .L20
456  457                    .LBE4:
457  458                    .LSM36:
458  459 00e4 00D0                  rcall .
459  460 00e6 00D0                  rcall .
460  461 00e8 0DB7                  in r16,__SP_L__
461  462 00ea 1EB7                  in r17,__SP_H__
462  463 00ec 0F5F                  subi r16,lo8(-(1))
463  464 00ee 1F4F                  sbci r17,hi8(-(1))
464  465 00f0 80E0                  ldi r24,lo8(.LC10)
465  466 00f2 90E0                  ldi r25,hi8(.LC10)
466  467 00f4 ADB7                  in r26,__SP_L__
467  468 00f6 BEB7                  in r27,__SP_H__
468  469 00f8 1296                  adiw r26,1+1
469  470 00fa 9C93                  st X,r25
470  471 00fc 8E93                  st -X,r24
471  472 00fe 1197                  sbiw r26,1
472  473 0100 D601                  movw r26,r12
473  474 0102 EC91                  ld r30,X
474  475 0104 F0E0                  ldi r31,lo8(0)
475  476 0106 EE0F                  lsl r30
476  477 0108 FF1F                  rol r31
477  478 010a EE0F                  lsl r30
478  479 010c FF1F                  rol r31
479  480 010e E050                  subi r30,lo8(-(setup-192))
480  481 0110 F040                  sbci r31,hi8(-(setup-192))
481  482 0112 6685                  ldd r22,Z+14
482  483 0114 7785                  ldd r23,Z+15
483  484 0116 8089                  ldd r24,Z+16
484  485 0118 9189                  ldd r25,Z+17
485  486 011a 0E94 0000             call __fixunssfsi
486  487 011e F801                  movw r30,r16
487  488 0120 7383                  std Z+3,r23
488  489 0122 6283                  std Z+2,r22
489  490 0124 0E94 0000             call LCD_printf
490  491 0128 0F90                  pop __tmp_reg__
491  492 012a 0F90                  pop __tmp_reg__
492  493 012c 0F90                  pop __tmp_reg__
493  494 012e 0F90                  pop __tmp_reg__
494  495                    .L19:
495  496                    .LSM37:
496  497 0130 00D0                  rcall .
497  498 0132 80E0                  ldi r24,lo8(.LC11)
498  499 0134 90E0                  ldi r25,hi8(.LC11)
499  500 0136 ADB7                  in r26,__SP_L__
500  501 0138 BEB7                  in r27,__SP_H__
501  502 013a 1296                  adiw r26,1+1
502  503 013c 9C93                  st X,r25
503  504 013e 8E93                  st -X,r24
504  505 0140 1197                  sbiw r26,1
505  506 0142 0E94 0000             call USART_printf
506  507 0146 0F90                  pop __tmp_reg__
507  508 0148 0F90                  pop __tmp_reg__
508  509                    .LSM38:
509  510 014a 80E0                  ldi r24,lo8(0)
510  511                    /* epilogue start */
511  512 014c DF91                  pop r29
512  513 014e CF91                  pop r28
513  514 0150 1F91                  pop r17
514  515 0152 0F91                  pop r16
515  516 0154 FF90                  pop r15
516  517 0156 EF90                  pop r14
517  518 0158 DF90                  pop r13
518  519 015a CF90                  pop r12
519  520 015c BF90                  pop r11
520  521 015e AF90                  pop r10
521  522 0160 0895                  ret
522  523                    .LFE2:
523  525                            .data
524  526                    .LC12:
525  527 0065 706F 6C6C             .string "poll"
526  527      00
527  528                    .LC13:
528  529 006a 256C 2000             .string "%l "
529  530                            .section        .text.poll_adc,"ax",@progbits
530  531                    .global poll_adc
531  533                    poll_adc:
532  534                    .LFB3:
533  535                    .LSM39:
534  536 0000 CF92                  push r12
535  537 0002 DF92                  push r13
536  538 0004 EF92                  push r14
537  539 0006 FF92                  push r15
538  540 0008 0F93                  push r16
539  541 000a 1F93                  push r17
540  542 000c CF93                  push r28
541  543 000e DF93                  push r29
542  544                    /* prologue: function */
543  545                    /* frame size = 0 */
544  546 0010 EC01                  movw r28,r24
545  547                    .LSM40:
546  548 0012 80E0                  ldi r24,lo8(.LC12)
547  549 0014 90E0                  ldi r25,hi8(.LC12)
548  550 0016 0E94 0000             call LCD_puts
549  551 001a EE24                  clr r14
550  552 001c FF24                  clr r15
551  553 001e 8701                  movw r16,r14
552  554                    .LSM41:
553  555 0020 30E0                  ldi r19,lo8(.LC13)
554  556 0022 C32E                  mov r12,r19
555  557 0024 30E0                  ldi r19,hi8(.LC13)
556  558 0026 D32E                  mov r13,r19
557  559                    .L28:
558  560                    .LSM42:
559  561 0028 1092 0000             sts setup+8,__zero_reg__
560  562 002c 1092 0000             sts (setup+8)+1,__zero_reg__
561  563 0030 1092 0000             sts (setup+8)+2,__zero_reg__
562  564 0034 1092 0000             sts (setup+8)+3,__zero_reg__
563  565                    .LSM43:
564  566 0038 00D0                  rcall .
565  567 003a 00D0                  rcall .
566  568 003c 00D0                  rcall .
567  569 003e EDB7                  in r30,__SP_L__
568  570 0040 FEB7                  in r31,__SP_H__
569  571 0042 D282                  std Z+2,r13
570  572 0044 C182                  std Z+1,r12
571  573 0046 E382                  std Z+3,r14
572  574 0048 F482                  std Z+4,r15
573  575 004a 0583                  std Z+5,r16
574  576 004c 1683                  std Z+6,r17
575  577 004e 0E94 0000             call USART_printf
576  578                    .LSM44:
577  579 0052 8DB7                  in r24,__SP_L__
578  580 0054 9EB7                  in r25,__SP_H__
579  581 0056 0696                  adiw r24,6
580  582 0058 0FB6                  in __tmp_reg__,__SREG__
581  583 005a F894                  cli
582  584 005c 9EBF                  out __SP_H__,r25
583  585 005e 0FBE                  out __SREG__,__tmp_reg__
584  586 0060 8DBF                  out __SP_L__,r24
585  587 0062 CE01                  movw r24,r28
586  588 0064 0E94 0000             call read_adc
587  589                    .LSM45:
588  590 0068 8881                  ld r24,Y
589  591 006a 8823                  tst r24
590  592 006c 01F0                  breq .L24
591  593 006e 8981                  ldd r24,Y+1
592  594 0070 8437                  cpi r24,lo8(116)
593  595 0072 01F4                  brne .L30
594  596                    .L24:
595  597                    .LSM46:
596  598 0074 81E0                  ldi r24,lo8(1)
597  599 0076 0E94 0000             call LCD_Colon
598  600                    .LSM47:
599  601 007a C801                  movw r24,r16
600  602 007c B701                  movw r22,r14
601  603 007e 0E94 0000             call LCD_ShowTime
602  604 0082 00C0                  rjmp .L30
603  605                    .L27:
604  606                    .LSM48:
605  607 0084 0E94 0000             call USART_Poll
606  608 0088 8823                  tst r24
607  609 008a 01F4                  brne .L33
608  610                    .L30:
609  611                    .LSM49:
610  612 008c 2091 0000             lds r18,setup+8
611  613 0090 3091 0000             lds r19,(setup+8)+1
612  614 0094 4091 0000             lds r20,(setup+8)+2
613  615 0098 5091 0000             lds r21,(setup+8)+3
614  616 009c 8091 0000             lds r24,setup
615  617 00a0 9091 0000             lds r25,(setup)+1
616  618 00a4 A0E0                  ldi r26,lo8(0)
617  619 00a6 B0E0                  ldi r27,hi8(0)
618  620 00a8 2817                  cp r18,r24
619  621 00aa 3907                  cpc r19,r25
620  622 00ac 4A07                  cpc r20,r26
621  623 00ae 5B07                  cpc r21,r27
622  624 00b0 00F0                  brlo .L27
623  625                    .LSM50:
624  626 00b2 E20E                  add r14,r18
625  627 00b4 F31E                  adc r15,r19
626  628 00b6 041F                  adc r16,r20
627  629 00b8 151F                  adc r17,r21
628  630                    .LSM51:
629  631 00ba 8091 0000             lds r24,setup+4
630  632 00be 9091 0000             lds r25,(setup+4)+1
631  633 00c2 A091 0000             lds r26,(setup+4)+2
632  634 00c6 B091 0000             lds r27,(setup+4)+3
633  635 00ca E816                  cp r14,r24
634  636 00cc F906                  cpc r15,r25
635  637 00ce 0A07                  cpc r16,r26
636  638 00d0 1B07                  cpc r17,r27
637  639 00d2 00F4                  brsh .+2
638  640 00d4 00C0                  rjmp .L28
639  641                    .L33:
640  642                    .LSM52:
641  643 00d6 80E0                  ldi r24,lo8(0)
642  644 00d8 0E94 0000             call LCD_Colon
643  645                    .LSM53:
644  646 00dc 80E0                  ldi r24,lo8(0)
645  647                    /* epilogue start */
646  648 00de DF91                  pop r29
647  649 00e0 CF91                  pop r28
648  650 00e2 1F91                  pop r17
649  651 00e4 0F91                  pop r16
650  652 00e6 FF90                  pop r15
651  653 00e8 EF90                  pop r14
652  654 00ea DF90                  pop r13
653  655 00ec CF90                  pop r12
654  656 00ee 0895                  ret
655  657                    .LFE3:
656  731                    .Letext0:
657 DEFINED SYMBOLS
658                             *ABS*:0000000000000000 commands.c
659      /tmp/ccrCnEV5.s:2      *ABS*:000000000000003f __SREG__
660      /tmp/ccrCnEV5.s:3      *ABS*:000000000000003e __SP_H__
661      /tmp/ccrCnEV5.s:4      *ABS*:000000000000003d __SP_L__
662      /tmp/ccrCnEV5.s:5      *ABS*:0000000000000034 __CCP__
663      /tmp/ccrCnEV5.s:6      *ABS*:0000000000000000 __tmp_reg__
664      /tmp/ccrCnEV5.s:7      *ABS*:0000000000000001 __zero_reg__
665      /tmp/ccrCnEV5.s:19     .text.reset:0000000000000000 reset
666      /tmp/ccrCnEV5.s:42     .text.set_delay:0000000000000000 set_delay
667      /tmp/ccrCnEV5.s:107    .text.set_timeout:0000000000000000 set_timeout
668      /tmp/ccrCnEV5.s:191    .text.set_averages:0000000000000000 set_averages
669      /tmp/ccrCnEV5.s:256    .text.set_dac:0000000000000000 set_dac
670      /tmp/ccrCnEV5.s:327    .text.read_adc:0000000000000000 read_adc
671      /tmp/ccrCnEV5.s:533    .text.poll_adc:0000000000000000 poll_adc
672
673 UNDEFINED SYMBOLS
674 Initialization
675 atoi
676 setup
677 USART_printf
678 LCD_printf
679 DAC_Set
680 ADC_read
681 sqrt
682 __fixunssfsi
683 LCD_puts
684 LCD_Colon
685 LCD_ShowTime
686 USART_Poll
687 __do_copy_data

UCC git Repository :: git.ucc.asn.au