f7fe3d3399ed8ee3b7524be016e53d4be964a3f3
[matches/honours.git] / parser.lst
1    1                            .file   "parser.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                            .data
10   17                    .LC0:
11   18 0000 0D0A 00               .string "\r\n"
12   19                    .LC1:
13   20 0003 3F00                  .string "?"
14   21                    .LC2:
15   22 0005 3F0D 0A00             .string "?\r\n"
16   23                            .section        .text.ParseCommand,"ax",@progbits
17   24                    .global ParseCommand
18   26                    ParseCommand:
19   27                    .LFB2:
20   28                    .LSM0:
21   29 0000 AF92                  push r10
22   30 0002 BF92                  push r11
23   31 0004 CF92                  push r12
24   32 0006 DF92                  push r13
25   33 0008 EF92                  push r14
26   34 000a FF92                  push r15
27   35 000c 0F93                  push r16
28   36 000e 1F93                  push r17
29   37 0010 DF93                  push r29
30   38 0012 CF93                  push r28
31   39 0014 CDB7                  in r28,__SP_L__
32   40 0016 DEB7                  in r29,__SP_H__
33   41 0018 2A97                  sbiw r28,10
34   42 001a 0FB6                  in __tmp_reg__,__SREG__
35   43 001c F894                  cli
36   44 001e DEBF                  out __SP_H__,r29
37   45 0020 0FBE                  out __SREG__,__tmp_reg__
38   46 0022 CDBF                  out __SP_L__,r28
39   47                    /* prologue: function */
40   48                    /* frame size = 10 */
41   49                    .LSM1:
42   50 0024 83E2                  ldi r24,lo8(35)
43   51 0026 0E94 0000             call USART_Tx
44   52                    .LSM2:
45   53 002a 0E94 0000             call USART_Rx
46   54 002e D82E                  mov r13,r24
47   55                    .LVL0:
48   56                    .LSM3:
49   57 0030 0E94 0000             call USART_Tx
50   58 0034 CC24                  clr r12
51   59                    .LVL1:
52   60                    .LSM4:
53   61 0036 5E01                  movw r10,r28
54   62 0038 0894                  sec
55   63 003a A11C                  adc r10,__zero_reg__
56   64 003c B11C                  adc r11,__zero_reg__
57   65                    .L7:
58   66 003e EC2C                  mov r14,r12
59   67 0040 FF24                  clr r15
60   68 0042 0E94 0000             call USART_Rx
61   69 0046 8501                  movw r16,r10
62   70 0048 0E0D                  add r16,r14
63   71 004a 1F1D                  adc r17,r15
64   72 004c D801                  movw r26,r16
65   73 004e 8C93                  st X,r24
66   74                    .LSM5:
67   75 0050 0E94 0000             call USART_Tx
68   76                    .LSM6:
69   77 0054 F801                  movw r30,r16
70   78 0056 0081                  ld r16,Z
71   79 0058 0D30                  cpi r16,lo8(13)
72   80 005a 01F0                  breq .L3
73   81 005c 0E30                  cpi r16,lo8(14)
74   82 005e 00F4                  brsh .L5
75   83 0060 0A30                  cpi r16,lo8(10)
76   84 0062 01F4                  brne .L2
77   85 0064 00C0                  rjmp .L3
78   86                    .L5:
79   87 0066 0032                  cpi r16,lo8(32)
80   88 0068 01F0                  breq .L4
81   89 006a 0B33                  cpi r16,lo8(59)
82   90 006c 01F4                  brne .L2
83   91                    .L3:
84   92                    .LSM7:
85   93 006e EA0C                  add r14,r10
86   94 0070 FB1C                  adc r15,r11
87   95 0072 D701                  movw r26,r14
88   96 0074 1C92                  st X,__zero_reg__
89   97                    .L2:
90   98                    .LSM8:
91   99 0076 C394                  inc r12
92  100                    .L4:
93  101                    .LSM9:
94  102 0078 EC2C                  mov r14,r12
95  103 007a FF24                  clr r15
96  104 007c 8701                  movw r16,r14
97  105 007e 0150                  subi r16,lo8(-(-1))
98  106 0080 1040                  sbci r17,hi8(-(-1))
99  107 0082 F501                  movw r30,r10
100  108 0084 E00F                  add r30,r16
101  109 0086 F11F                  adc r31,r17
102  110 0088 8081                  ld r24,Z
103  111 008a 8823                  tst r24
104  112 008c 01F0                  breq .L6
105  113 008e B9E0                  ldi r27,lo8(9)
106  114 0090 BC15                  cp r27,r12
107  115 0092 00F4                  brsh .L7
108  116                    .L6:
109  117                    .LSM10:
110  118 0094 00D0                  rcall .
111  119 0096 80E0                  ldi r24,lo8(.LC0)
112  120 0098 90E0                  ldi r25,hi8(.LC0)
113  121 009a EDB7                  in r30,__SP_L__
114  122 009c FEB7                  in r31,__SP_H__
115  123 009e 9283                  std Z+2,r25
116  124 00a0 8183                  std Z+1,r24
117  125 00a2 0E94 0000             call USART_printf
118  126                    .LSM11:
119  127 00a6 FE01                  movw r30,r28
120  128 00a8 3196                  adiw r30,1
121  129 00aa 0E0F                  add r16,r30
122  130 00ac 1F1F                  adc r17,r31
123  131 00ae 0F90                  pop __tmp_reg__
124  132 00b0 0F90                  pop __tmp_reg__
125  133 00b2 D801                  movw r26,r16
126  134 00b4 8C91                  ld r24,X
127  135 00b6 8823                  tst r24
128  136 00b8 01F0                  breq .L8
129  137                    .LSM12:
130  138 00ba 80E0                  ldi r24,lo8(.LC1)
131  139 00bc 90E0                  ldi r25,hi8(.LC1)
132  140 00be 0E94 0000             call LCD_puts
133  141                    .LSM13:
134  142 00c2 00D0                  rcall .
135  143 00c4 80E0                  ldi r24,lo8(.LC2)
136  144 00c6 90E0                  ldi r25,hi8(.LC2)
137  145 00c8 EDB7                  in r30,__SP_L__
138  146 00ca FEB7                  in r31,__SP_H__
139  147 00cc 9283                  std Z+2,r25
140  148 00ce 8183                  std Z+1,r24
141  149 00d0 0E94 0000             call USART_printf
142  150 00d4 8FEF                  ldi r24,lo8(-1)
143  151 00d6 00C0                  rjmp .L24
144  152                    .L8:
145  153                    .LSM14:
146  154 00d8 EE0D                  add r30,r14
147  155 00da FF1D                  adc r31,r15
148  156 00dc 1082                  st Z,__zero_reg__
149  157                    .LSM15:
150  158 00de F4E6                  ldi r31,lo8(100)
151  159 00e0 DF16                  cp r13,r31
152  160 00e2 01F0                  breq .L14
153  161 00e4 FD15                  cp r31,r13
154  162 00e6 00F0                  brlo .L18
155  163 00e8 81E2                  ldi r24,lo8(33)
156  164 00ea D816                  cp r13,r24
157  165 00ec 01F0                  breq .L12
158  166 00ee A1E6                  ldi r26,lo8(97)
159  167 00f0 DA16                  cp r13,r26
160  168 00f2 01F0                  breq .L13
161  169 00f4 BDE0                  ldi r27,lo8(13)
162  170 00f6 DB16                  cp r13,r27
163  171 00f8 01F4                  brne .L10
164  172 00fa 00C0                  rjmp .L11
165  173                    .L18:
166  174 00fc E2E7                  ldi r30,lo8(114)
167  175 00fe DE16                  cp r13,r30
168  176 0100 01F0                  breq .L11
169  177 0102 ED15                  cp r30,r13
170  178 0104 00F0                  brlo .L19
171  179 0106 F0E7                  ldi r31,lo8(112)
172  180 0108 DF16                  cp r13,r31
173  181 010a 01F4                  brne .L10
174  182 010c 00C0                  rjmp .L25
175  183                    .L19:
176  184 010e 84E7                  ldi r24,lo8(116)
177  185 0110 D816                  cp r13,r24
178  186 0112 01F0                  breq .L16
179  187 0114 A7E7                  ldi r26,lo8(119)
180  188 0116 DA16                  cp r13,r26
181  189 0118 01F4                  brne .L10
182  190 011a 00C0                  rjmp .L26
183  191                    .L11:
184  192 011c E0E0                  ldi r30,lo8(gs(read_adc))
185  193 011e F0E0                  ldi r31,hi8(gs(read_adc))
186  194                    .LVL2:
187  195 0120 00C0                  rjmp .L23
188  196                    .LVL3:
189  197                    .L25:
190  198 0122 E0E0                  ldi r30,lo8(gs(poll_adc))
191  199 0124 F0E0                  ldi r31,hi8(gs(poll_adc))
192  200                    .LVL4:
193  201 0126 00C0                  rjmp .L23
194  202                    .LVL5:
195  203                    .L14:
196  204                    .LSM16:
197  205 0128 E0E0                  ldi r30,lo8(gs(set_dac))
198  206 012a F0E0                  ldi r31,hi8(gs(set_dac))
199  207                    .LVL6:
200  208 012c 00C0                  rjmp .L23
201  209                    .LVL7:
202  210                    .L16:
203  211                    .LSM17:
204  212 012e E0E0                  ldi r30,lo8(gs(set_timeout))
205  213 0130 F0E0                  ldi r31,hi8(gs(set_timeout))
206  214                    .LVL8:
207  215 0132 00C0                  rjmp .L23
208  216                    .LVL9:
209  217                    .L26:
210  218                    .LSM18:
211  219 0134 E0E0                  ldi r30,lo8(gs(set_delay))
212  220 0136 F0E0                  ldi r31,hi8(gs(set_delay))
213  221                    .LVL10:
214  222 0138 00C0                  rjmp .L23
215  223                    .LVL11:
216  224                    .L13:
217  225                    .LSM19:
218  226 013a E0E0                  ldi r30,lo8(gs(set_averages))
219  227 013c F0E0                  ldi r31,hi8(gs(set_averages))
220  228                    .LVL12:
221  229 013e 00C0                  rjmp .L23
222  230                    .LVL13:
223  231                    .L12:
224  232                    .LSM20:
225  233 0140 E0E0                  ldi r30,lo8(gs(reset))
226  234 0142 F0E0                  ldi r31,hi8(gs(reset))
227  235                    .LVL14:
228  236                    .L23:
229  237                    .LSM21:
230  238 0144 CE01                  movw r24,r28
231  239 0146 0196                  adiw r24,1
232  240 0148 0995                  icall
233  241                    .LVL15:
234  242 014a 8823                  tst r24
235  243 014c 01F0                  breq .L9
236  244                    .L10:
237  245                    .LSM22:
238  246 014e 80E0                  ldi r24,lo8(.LC1)
239  247 0150 90E0                  ldi r25,hi8(.LC1)
240  248 0152 0E94 0000             call LCD_puts
241  249                    .LSM23:
242  250 0156 00D0                  rcall .
243  251 0158 80E0                  ldi r24,lo8(.LC2)
244  252 015a 90E0                  ldi r25,hi8(.LC2)
245  253 015c EDB7                  in r30,__SP_L__
246  254 015e FEB7                  in r31,__SP_H__
247  255 0160 9283                  std Z+2,r25
248  256 0162 8183                  std Z+1,r24
249  257 0164 0E94 0000             call USART_printf
250  258 0168 8EEF                  ldi r24,lo8(-2)
251  259                    .L24:
252  260 016a 0F90                  pop __tmp_reg__
253  261 016c 0F90                  pop __tmp_reg__
254  262                    .L9:
255  263                    /* epilogue start */
256  264                    .LSM24:
257  265 016e 2A96                  adiw r28,10
258  266 0170 0FB6                  in __tmp_reg__,__SREG__
259  267 0172 F894                  cli
260  268 0174 DEBF                  out __SP_H__,r29
261  269 0176 0FBE                  out __SREG__,__tmp_reg__
262  270 0178 CDBF                  out __SP_L__,r28
263  271 017a CF91                  pop r28
264  272 017c DF91                  pop r29
265  273 017e 1F91                  pop r17
266  274 0180 0F91                  pop r16
267  275 0182 FF90                  pop r15
268  276 0184 EF90                  pop r14
269  277 0186 DF90                  pop r13
270  278                    .LVL16:
271  279 0188 CF90                  pop r12
272  280                    .LVL17:
273  281 018a BF90                  pop r11
274  282 018c AF90                  pop r10
275  283 018e 0895                  ret
276  284                    .LFE2:
277  310                    .Letext0:
278 DEFINED SYMBOLS
279                             *ABS*:0000000000000000 parser.c
280      /tmp/ccTH87Jm.s:2      *ABS*:000000000000003f __SREG__
281      /tmp/ccTH87Jm.s:3      *ABS*:000000000000003e __SP_H__
282      /tmp/ccTH87Jm.s:4      *ABS*:000000000000003d __SP_L__
283      /tmp/ccTH87Jm.s:5      *ABS*:0000000000000034 __CCP__
284      /tmp/ccTH87Jm.s:6      *ABS*:0000000000000000 __tmp_reg__
285      /tmp/ccTH87Jm.s:7      *ABS*:0000000000000001 __zero_reg__
286      /tmp/ccTH87Jm.s:26     .text.ParseCommand:0000000000000000 ParseCommand
287
288 UNDEFINED SYMBOLS
289 USART_Tx
290 USART_Rx
291 USART_printf
292 LCD_puts
293 read_adc
294 poll_adc
295 set_dac
296 set_timeout
297 set_delay
298 set_averages
299 reset
300 __do_copy_data

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