4ab52ee3167158cd657c183880b3fe2e8c794b6a
[matches/honours.git] / main.lst
1    1                            .file   "main.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.Delay,"ax",@progbits
10   17                    .global Delay
11   19                    Delay:
12   20                    .LFB4:
13   21                    .LSM0:
14   22                    .LVL0:
15   23                    /* prologue: function */
16   24                    /* frame size = 0 */
17   25 0000 00C0                  rjmp .L2
18   26                    .LVL1:
19   27                    .L4:
20   28                    .LSM1:
21   29 0002 20E0                  ldi r18,lo8(0)
22   30                    .L3:
23   31                    .LSM2:
24   32                    /* #APP */
25   33                     ;  135 "main.c" 1
26   34 0004 0000                  nop
27   35                     ;  0 "" 2
28   36                    .LSM3:
29   37                    /* #NOAPP */
30   38 0006 2F5F                  subi r18,lo8(-(1))
31   39 0008 2D37                  cpi r18,lo8(125)
32   40 000a 01F4                  brne .L3
33   41 000c 0197                  sbiw r24,1
34   42                    .LVL2:
35   43                    .L2:
36   44                    .LSM4:
37   45 000e 0097                  sbiw r24,0
38   46 0010 01F4                  brne .L4
39   47                    /* epilogue start */
40   48                    .LSM5:
41   49 0012 0895                  ret
42   50                    .LFE4:
43   52                            .section        .text.OSCCAL_calibration,"ax",@progbits
44   53                    .global OSCCAL_calibration
45   55                    OSCCAL_calibration:
46   56                    .LFB5:
47   57                    .LSM6:
48   58                    /* prologue: function */
49   59                    /* frame size = 0 */
50   60                    .LSM7:
51   61 0000 80E8                  ldi r24,lo8(-128)
52   62 0002 8093 6100             sts 97,r24
53   63                    .LSM8:
54   64 0006 83E0                  ldi r24,lo8(3)
55   65 0008 8093 6100             sts 97,r24
56   66                    .LSM9:
57   67 000c 1092 7000             sts 112,__zero_reg__
58   68                    .LSM10:
59   69 0010 88E0                  ldi r24,lo8(8)
60   70 0012 8093 B600             sts 182,r24
61   71                    .LSM11:
62   72 0016 88EC                  ldi r24,lo8(-56)
63   73 0018 8093 B300             sts 179,r24
64   74                    .LSM12:
65   75 001c 1092 6E00             sts 110,__zero_reg__
66   76                    .LSM13:
67   77 0020 81E0                  ldi r24,lo8(1)
68   78 0022 8093 8100             sts 129,r24
69   79                    .LSM14:
70   80 0026 8093 B000             sts 176,r24
71   81                    .L8:
72   82                    .LSM15:
73   83 002a 2091 B600             lds r18,182
74   84 002e 8091 B600             lds r24,182
75   85 0032 90E0                  ldi r25,lo8(0)
76   86 0034 8470                  andi r24,lo8(4)
77   87 0036 9070                  andi r25,hi8(4)
78   88 0038 30E0                  ldi r19,lo8(0)
79   89 003a 2170                  andi r18,lo8(1)
80   90 003c 3070                  andi r19,hi8(1)
81   91 003e 822B                  or r24,r18
82   92 0040 932B                  or r25,r19
83   93 0042 892B                  or r24,r25
84   94 0044 01F4                  brne .L8
85   95                    .LSM16:
86   96 0046 88EE                  ldi r24,lo8(1000)
87   97 0048 93E0                  ldi r25,hi8(1000)
88   98 004a 0E94 0000             call Delay
89   99                    .LSM17:
90  100 004e 3FEF                  ldi r19,lo8(-1)
91  101                    .LSM18:
92  102 0050 41E0                  ldi r20,lo8(1)
93  103                    .LVL3:
94  104                    .L13:
95  105                    .LSM19:
96  106                    /* #APP */
97  107                     ;  183 "main.c" 1
98  108 0052 F894                  cli
99  109                     ;  0 "" 2
100  110                    .LSM20:
101  111                    /* #NOAPP */
102  112 0054 36BB                  out 54-32,r19
103  113                    .LSM21:
104  114 0056 37BB                  out 55-32,r19
105  115                    .LSM22:
106  116 0058 1092 8500             sts 133,__zero_reg__
107  117                    .LSM23:
108  118 005c 1092 8400             sts 132,__zero_reg__
109  119                    .LSM24:
110  120 0060 1092 B200             sts 178,__zero_reg__
111  121                    .L9:
112  122                    .LSM25:
113  123 0064 B99B                  sbis 55-32,1
114  124 0066 00C0                  rjmp .L9
115  125                    .LSM26:
116  126 0068 1092 8100             sts 129,__zero_reg__
117  127                    .LSM27:
118  128                    /* #APP */
119  129                     ;  197 "main.c" 1
120  130 006c 7894                  sei
121  131                     ;  0 "" 2
122  132                    .LSM28:
123  133                    /* #NOAPP */
124  134 006e B099                  sbic 54-32,0
125  135 0070 00C0                  rjmp .L10
126  136                    .LSM29:
127  137 0072 2091 8400             lds r18,132
128  138                    .LVL4:
129  139                    .LSM30:
130  140 0076 8091 8500             lds r24,133
131  141 007a 90E0                  ldi r25,lo8(0)
132  142                    .LSM31:
133  143 007c 982F                  mov r25,r24
134  144 007e 8827                  clr r24
135  145                    .LVL5:
136  146                    .LSM32:
137  147 0080 820F                  add r24,r18
138  148 0082 911D                  adc r25,__zero_reg__
139  149                    .LSM33:
140  150 0084 28E1                  ldi r18,hi8(6251)
141  151 0086 8B36                  cpi r24,lo8(6251)
142  152 0088 9207                  cpc r25,r18
143  153                    .LVL6:
144  154 008a 04F0                  brlt .L11
145  155                    .LSM34:
146  156 008c 8091 6600             lds r24,102
147  157                    .LVL7:
148  158 0090 8150                  subi r24,lo8(-(-1))
149  159 0092 00C0                  rjmp .L18
150  160                    .LVL8:
151  161                    .L11:
152  162                    .LSM35:
153  163 0094 885E                  subi r24,lo8(6120)
154  164 0096 9741                  sbci r25,hi8(6120)
155  165 0098 04F0                  brlt .L10
156  166 009a 81E0                  ldi r24,lo8(1)
157  167                    .LVL9:
158  168 009c 00C0                  rjmp .L12
159  169                    .LVL10:
160  170                    .L10:
161  171                    .LSM36:
162  172 009e 8091 6600             lds r24,102
163  173                    .LVL11:
164  174 00a2 8F5F                  subi r24,lo8(-(1))
165  175                    .L18:
166  176 00a4 8093 6600             sts 102,r24
167  177 00a8 80E0                  ldi r24,lo8(0)
168  178                    .LVL12:
169  179                    .L12:
170  180                    .LSM37:
171  181 00aa 4093 8100             sts 129,r20
172  182                    .LSM38:
173  183 00ae 8823                  tst r24
174  184 00b0 01F0                  breq .L13
175  185                    /* epilogue start */
176  186                    .LSM39:
177  187 00b2 0895                  ret
178  188                    .LFE5:
179  190                            .section        .text.Initialization,"ax",@progbits
180  191                    .global Initialization
181  193                    Initialization:
182  194                    .LFB3:
183  195                    .LSM40:
184  196                    /* prologue: function */
185  197                    /* frame size = 0 */
186  198                    .LSM41:
187  199 0000 0E94 0000             call OSCCAL_calibration
188  200                    .LSM42:
189  201 0004 E1E6                  ldi r30,lo8(97)
190  202 0006 F0E0                  ldi r31,hi8(97)
191  203 0008 80E8                  ldi r24,lo8(-128)
192  204 000a 8083                  st Z,r24
193  205                    .LSM43:
194  206 000c 83E0                  ldi r24,lo8(3)
195  207 000e 8083                  st Z,r24
196  208                    .LSM44:
197  209 0010 0E94 0000             call Timer0_Init
198  210                    .LSM45:
199  211 0014 8CE0                  ldi r24,lo8(12)
200  212 0016 90E0                  ldi r25,hi8(12)
201  213 0018 0E94 0000             call USART_Init
202  214                    .LSM46:
203  215 001c 0E94 0000             call LCD_Init
204  216                    .LSM47:
205  217 0020 85B7                  in r24,85-32
206  218 0022 8068                  ori r24,lo8(-128)
207  219 0024 85BF                  out 85-32,r24
208  220                    .LSM48:
209  221 0026 85B7                  in r24,85-32
210  222 0028 8068                  ori r24,lo8(-128)
211  223 002a 85BF                  out 85-32,r24
212  224                    .LSM49:
213  225 002c 81E0                  ldi r24,lo8(1)
214  226 002e 90E0                  ldi r25,hi8(1)
215  227 0030 9093 0000             sts (setup+2)+1,r25
216  228 0034 8093 0000             sts setup+2,r24
217  229                    .LSM50:
218  230 0038 9093 0000             sts (setup)+1,r25
219  231 003c 8093 0000             sts setup,r24
220  232                    .LSM51:
221  233 0040 8FEF                  ldi r24,lo8(-1)
222  234 0042 9FEF                  ldi r25,hi8(-1)
223  235 0044 AFEF                  ldi r26,hlo8(-1)
224  236 0046 BFEF                  ldi r27,hhi8(-1)
225  237 0048 8093 0000             sts setup+4,r24
226  238 004c 9093 0000             sts (setup+4)+1,r25
227  239 0050 A093 0000             sts (setup+4)+2,r26
228  240 0054 B093 0000             sts (setup+4)+3,r27
229  241                    .LSM52:
230  242 0058 1092 0000             sts setup+8,__zero_reg__
231  243 005c 1092 0000             sts (setup+8)+1,__zero_reg__
232  244 0060 1092 0000             sts (setup+8)+2,__zero_reg__
233  245 0064 1092 0000             sts (setup+8)+3,__zero_reg__
234  246                    .LSM53:
235  247 0068 1092 0000             sts (setup+12)+1,__zero_reg__
236  248 006c 1092 0000             sts setup+12,__zero_reg__
237  249                    /* epilogue start */
238  250                    .LSM54:
239  251 0070 0895                  ret
240  252                    .LFE3:
241  254                            .data
242  255                    .LC0:
243  256 0000 6865 6C6C             .string "hello"
244  256      6F00 
245  257                    .LC1:
246  258 0006 0D0A 2320             .string "\r\n# hello\r\n"
247  258      6865 6C6C 
248  258      6F0D 0A00 
249  259                            .section        .text.main,"ax",@progbits
250  260                    .global main
251  262                    main:
252  263                    .LFB2:
253  264                    .LSM55:
254  265                    /* prologue: function */
255  266                    /* frame size = 0 */
256  267                    .LSM56:
257  268 0000 0E94 0000             call Initialization
258  269                    .LSM57:
259  270                    /* #APP */
260  271                     ;  56 "main.c" 1
261  272 0004 7894                  sei
262  273                     ;  0 "" 2
263  274                    .LSM58:
264  275                    /* #NOAPP */
265  276 0006 80E0                  ldi r24,lo8(.LC0)
266  277 0008 90E0                  ldi r25,hi8(.LC0)
267  278 000a 0E94 0000             call LCD_puts
268  279                    .LSM59:
269  280 000e 00D0                  rcall .
270  281 0010 80E0                  ldi r24,lo8(.LC1)
271  282 0012 90E0                  ldi r25,hi8(.LC1)
272  283 0014 EDB7                  in r30,__SP_L__
273  284 0016 FEB7                  in r31,__SP_H__
274  285 0018 9283                  std Z+2,r25
275  286 001a 8183                  std Z+1,r24
276  287 001c 0E94 0000             call USART_printf
277  288                    .LSM60:
278  289 0020 0F90                  pop __tmp_reg__
279  290 0022 0F90                  pop __tmp_reg__
280  291 0024 88EE                  ldi r24,lo8(1000)
281  292 0026 93E0                  ldi r25,hi8(1000)
282  293 0028 0E94 0000             call Delay
283  294                    .L22:
284  295                    .LSM61:
285  296 002c 0E94 0000             call ParseCommand
286  297 0030 00C0                  rjmp .L22
287  298                    .LFE2:
288  300                            .comm setup,78,1
289  349                    .Letext0:
290 DEFINED SYMBOLS
291                             *ABS*:0000000000000000 main.c
292      /tmp/cca9ga9Y.s:2      *ABS*:000000000000003f __SREG__
293      /tmp/cca9ga9Y.s:3      *ABS*:000000000000003e __SP_H__
294      /tmp/cca9ga9Y.s:4      *ABS*:000000000000003d __SP_L__
295      /tmp/cca9ga9Y.s:5      *ABS*:0000000000000034 __CCP__
296      /tmp/cca9ga9Y.s:6      *ABS*:0000000000000000 __tmp_reg__
297      /tmp/cca9ga9Y.s:7      *ABS*:0000000000000001 __zero_reg__
298      /tmp/cca9ga9Y.s:19     .text.Delay:0000000000000000 Delay
299      /tmp/cca9ga9Y.s:55     .text.OSCCAL_calibration:0000000000000000 OSCCAL_calibration
300      /tmp/cca9ga9Y.s:193    .text.Initialization:0000000000000000 Initialization
301                             *COM*:000000000000004e setup
302      /tmp/cca9ga9Y.s:262    .text.main:0000000000000000 main
303
304 UNDEFINED SYMBOLS
305 Timer0_Init
306 USART_Init
307 LCD_Init
308 LCD_puts
309 USART_printf
310 ParseCommand
311 __do_copy_data
312 __do_clear_bss

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