Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1755 | - | 1 | 1 .file "led.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 J17Mask |
||
11 | 11 .data |
||
12 | 14 J17Mask: |
||
13 | 15 0000 01 .byte 1 |
||
14 | 16 .global J17Blinkcount |
||
15 | 17 .global J17Blinkcount |
||
16 | 18 .section .bss |
||
17 | 21 J17Blinkcount: |
||
18 | 22 0000 00 .skip 1,0 |
||
19 | 23 .global J16Mask |
||
20 | 24 .data |
||
21 | 27 J16Mask: |
||
22 | 28 0001 01 .byte 1 |
||
23 | 29 .global J16Blinkcount |
||
24 | 30 .global J16Blinkcount |
||
25 | 31 .section .bss |
||
26 | 34 J16Blinkcount: |
||
27 | 35 0001 00 .skip 1,0 |
||
28 | 36 .global LED2_Timing |
||
29 | 37 .global LED2_Timing |
||
30 | 40 LED2_Timing: |
||
31 | 41 0002 0000 .skip 2,0 |
||
32 | 42 .global LED1_Timing |
||
33 | 43 .global LED1_Timing |
||
34 | 46 LED1_Timing: |
||
35 | 47 0004 0000 .skip 2,0 |
||
36 | 48 .text |
||
37 | 49 .global LED_Init |
||
38 | 51 LED_Init: |
||
39 | 52 /* prologue: frame size=0 */ |
||
40 | 53 /* prologue end (size=0) */ |
||
41 | 54 0000 87B1 in r24,39-0x20 |
||
42 | 55 0002 8C60 ori r24,lo8(12) |
||
43 | 56 0004 87B9 out 39-0x20,r24 |
||
44 | 57 0006 4298 cbi 40-0x20,2 |
||
45 | 58 0008 4398 cbi 40-0x20,3 |
||
46 | 59 000a 1092 0000 sts J16Blinkcount,__zero_reg__ |
||
47 | 60 000e 80E8 ldi r24,lo8(-128) |
||
48 | 61 0010 8093 0000 sts J16Mask,r24 |
||
49 | 62 0014 1092 0000 sts J17Blinkcount,__zero_reg__ |
||
50 | 63 0018 8093 0000 sts J17Mask,r24 |
||
51 | 64 /* epilogue: frame size=0 */ |
||
52 | 65 001c 0895 ret |
||
53 | 66 /* epilogue end (size=1) */ |
||
54 | 67 /* function LED_Init size 15 (14) */ |
||
55 | 69 .lcomm delay.0,1 |
||
56 | 70 .lcomm J16Bitmask.1,1 |
||
57 | 71 .lcomm J17Bitmask.2,1 |
||
58 | 72 .lcomm J16Warn.3,1 |
||
59 | 73 .lcomm J17Warn.4,1 |
||
60 | 74 .global LED_Update |
||
61 | 76 LED_Update: |
||
62 | 77 /* prologue: frame size=0 */ |
||
63 | 78 /* prologue end (size=0) */ |
||
64 | 79 001e 8091 0000 lds r24,delay.0 |
||
65 | 80 0022 8150 subi r24,lo8(-(-1)) |
||
66 | 81 0024 8093 0000 sts delay.0,r24 |
||
67 | 82 0028 8F3F cpi r24,lo8(-1) |
||
68 | 83 002a 09F0 breq .+2 |
||
69 | 84 002c F4C0 rjmp .L2 |
||
70 | 85 002e 94E0 ldi r25,lo8(4) |
||
71 | 86 0030 9093 0000 sts delay.0,r25 |
||
72 | 87 0034 8091 0000 lds r24,FCFlags |
||
73 | 88 0038 807B andi r24,lo8(-80) |
||
74 | 89 003a E1F0 breq .L4 |
||
75 | 90 003c 8091 0000 lds r24,EE_Parameter+76 |
||
76 | 91 0040 8823 tst r24 |
||
77 | 92 0042 49F0 breq .L5 |
||
78 | 93 0044 8091 0000 lds r24,J16Warn.3 |
||
79 | 94 0048 8823 tst r24 |
||
80 | 95 004a 11F4 brne .L6 |
||
81 | 96 004c 9093 0000 sts J16Blinkcount,r25 |
||
82 | 97 .L6: |
||
83 | 98 0050 81E0 ldi r24,lo8(1) |
||
84 | 99 0052 8093 0000 sts J16Warn.3,r24 |
||
85 | 100 .L5: |
||
86 | 101 0056 8091 0000 lds r24,EE_Parameter+77 |
||
87 | 102 005a 8823 tst r24 |
||
88 | 103 005c B9F0 breq .L9 |
||
89 | 104 005e 8091 0000 lds r24,J17Warn.4 |
||
90 | 105 0062 8823 tst r24 |
||
91 | 106 0064 19F4 brne .L8 |
||
92 | 107 0066 84E0 ldi r24,lo8(4) |
||
93 | 108 0068 8093 0000 sts J17Blinkcount,r24 |
||
94 | 109 .L8: |
||
95 | 110 006c 81E0 ldi r24,lo8(1) |
||
96 | 111 006e 8093 0000 sts J17Warn.4,r24 |
||
97 | 112 0072 0CC0 rjmp .L9 |
||
98 | 113 .L4: |
||
99 | 114 0074 8093 0000 sts J16Warn.3,r24 |
||
100 | 115 0078 8093 0000 sts J17Warn.4,r24 |
||
101 | 116 007c 8091 0000 lds r24,EE_Parameter+72 |
||
102 | 117 0080 8093 0000 sts J16Bitmask.1,r24 |
||
103 | 118 0084 8091 0000 lds r24,EE_Parameter+74 |
||
104 | 119 0088 8093 0000 sts J17Bitmask.2,r24 |
||
105 | 120 .L9: |
||
106 | 121 008c 8091 0000 lds r24,J16Warn.3 |
||
107 | 122 0090 8823 tst r24 |
||
108 | 123 0092 09F0 breq .+2 |
||
109 | 124 0094 40C0 rjmp .L10 |
||
110 | 125 0096 8091 0000 lds r24,EE_Parameter+97 |
||
111 | 126 009a 282F mov r18,r24 |
||
112 | 127 009c 3327 clr r19 |
||
113 | 128 009e 24FF sbrs r18,4 |
||
114 | 129 00a0 07C0 rjmp .L11 |
||
115 | 130 00a2 8091 0000 lds r24,MotorenEin |
||
116 | 131 00a6 8823 tst r24 |
||
117 | 132 00a8 19F4 brne .L11 |
||
118 | 133 00aa 25FD sbrc r18,5 |
||
119 | 134 00ac 4DC0 rjmp .L60 |
||
120 | 135 00ae 4EC0 rjmp .L32 |
||
121 | 136 .L11: |
||
122 | 137 00b0 9091 0000 lds r25,EE_Parameter+73 |
||
123 | 138 00b4 983F cpi r25,lo8(-8) |
||
124 | 139 00b6 50F0 brlo .L15 |
||
125 | 140 00b8 8091 0000 lds r24,Parameter_J16Timing |
||
126 | 141 00bc 8D3D cpi r24,lo8(-35) |
||
127 | 142 00be 30F0 brlo .L15 |
||
128 | 143 00c0 8091 0000 lds r24,J16Bitmask.1 |
||
129 | 144 00c4 8823 tst r24 |
||
130 | 145 00c6 0CF4 brge .+2 |
||
131 | 146 00c8 3FC0 rjmp .L60 |
||
132 | 147 00ca 40C0 rjmp .L32 |
||
133 | 148 .L15: |
||
134 | 149 00cc 983F cpi r25,lo8(-8) |
||
135 | 150 00ce 48F0 brlo .L19 |
||
136 | 151 00d0 8091 0000 lds r24,Parameter_J16Timing |
||
137 | 152 00d4 8A30 cpi r24,lo8(10) |
||
138 | 153 00d6 28F4 brsh .L19 |
||
139 | 154 00d8 8091 0000 lds r24,J16Bitmask.1 |
||
140 | 155 00dc 8823 tst r24 |
||
141 | 156 00de B4F1 brlt .L32 |
||
142 | 157 00e0 33C0 rjmp .L60 |
||
143 | 158 .L19: |
||
144 | 159 00e2 8091 0000 lds r24,J16Blinkcount |
||
145 | 160 00e6 8150 subi r24,lo8(-(-1)) |
||
146 | 161 00e8 8093 0000 sts J16Blinkcount,r24 |
||
147 | 162 00ec 8F3F cpi r24,lo8(-1) |
||
148 | 163 00ee 79F5 brne .L28 |
||
149 | 164 00f0 8091 0000 lds r24,Parameter_J16Timing |
||
150 | 165 00f4 8150 subi r24,lo8(-(-1)) |
||
151 | 166 00f6 8093 0000 sts J16Blinkcount,r24 |
||
152 | 167 00fa 8091 0000 lds r24,J16Mask |
||
153 | 168 00fe 8130 cpi r24,lo8(1) |
||
154 | 169 0100 11F4 brne .L24 |
||
155 | 170 0102 80E8 ldi r24,lo8(-128) |
||
156 | 171 0104 01C0 rjmp .L58 |
||
157 | 172 .L24: |
||
158 | 173 0106 8695 lsr r24 |
||
159 | 174 .L58: |
||
160 | 175 0108 8093 0000 sts J16Mask,r24 |
||
161 | 176 010c 8091 0000 lds r24,J16Mask |
||
162 | 177 0110 9091 0000 lds r25,J16Bitmask.1 |
||
163 | 178 0114 17C0 rjmp .L67 |
||
164 | 179 .L10: |
||
165 | 180 0116 8091 0000 lds r24,J16Blinkcount |
||
166 | 181 011a 8150 subi r24,lo8(-(-1)) |
||
167 | 182 011c 8093 0000 sts J16Blinkcount,r24 |
||
168 | 183 0120 8F3F cpi r24,lo8(-1) |
||
169 | 184 0122 A9F4 brne .L28 |
||
170 | 185 0124 89E0 ldi r24,lo8(9) |
||
171 | 186 0126 8093 0000 sts J16Blinkcount,r24 |
||
172 | 187 012a 8091 0000 lds r24,J16Mask |
||
173 | 188 012e 8130 cpi r24,lo8(1) |
||
174 | 189 0130 11F4 brne .L30 |
||
175 | 190 0132 80E8 ldi r24,lo8(-128) |
||
176 | 191 0134 01C0 rjmp .L59 |
||
177 | 192 .L30: |
||
178 | 193 0136 8695 lsr r24 |
||
179 | 194 .L59: |
||
180 | 195 0138 8093 0000 sts J16Mask,r24 |
||
181 | 196 013c 8091 0000 lds r24,J16Mask |
||
182 | 197 0140 9091 0000 lds r25,EE_Parameter+76 |
||
183 | 198 .L67: |
||
184 | 199 0144 8923 and r24,r25 |
||
185 | 200 0146 11F0 breq .L32 |
||
186 | 201 .L60: |
||
187 | 202 0148 429A sbi 40-0x20,2 |
||
188 | 203 014a 01C0 rjmp .L28 |
||
189 | 204 .L32: |
||
190 | 205 014c 4298 cbi 40-0x20,2 |
||
191 | 206 .L28: |
||
192 | 207 014e 8091 0000 lds r24,J17Warn.4 |
||
193 | 208 0152 8823 tst r24 |
||
194 | 209 0154 09F0 breq .+2 |
||
195 | 210 0156 43C0 rjmp .L34 |
||
196 | 211 0158 8091 0000 lds r24,EE_Parameter+97 |
||
197 | 212 015c 282F mov r18,r24 |
||
198 | 213 015e 3327 clr r19 |
||
199 | 214 0160 24FF sbrs r18,4 |
||
200 | 215 0162 07C0 rjmp .L35 |
||
201 | 216 0164 8091 0000 lds r24,MotorenEin |
||
202 | 217 0168 8823 tst r24 |
||
203 | 218 016a 19F4 brne .L35 |
||
204 | 219 016c 26FD sbrc r18,6 |
||
205 | 220 016e 50C0 rjmp .L66 |
||
206 | 221 0170 34C0 rjmp .L50 |
||
207 | 222 .L35: |
||
208 | 223 0172 9091 0000 lds r25,EE_Parameter+75 |
||
209 | 224 0176 983F cpi r25,lo8(-8) |
||
210 | 225 0178 50F0 brlo .L39 |
||
211 | 226 017a 8091 0000 lds r24,Parameter_J17Timing |
||
212 | 227 017e 8D3D cpi r24,lo8(-35) |
||
213 | 228 0180 30F0 brlo .L39 |
||
214 | 229 0182 8091 0000 lds r24,J17Bitmask.2 |
||
215 | 230 0186 8823 tst r24 |
||
216 | 231 0188 0CF4 brge .+2 |
||
217 | 232 018a 42C0 rjmp .L66 |
||
218 | 233 018c 26C0 rjmp .L50 |
||
219 | 234 .L39: |
||
220 | 235 018e 983F cpi r25,lo8(-8) |
||
221 | 236 0190 48F0 brlo .L43 |
||
222 | 237 0192 8091 0000 lds r24,Parameter_J17Timing |
||
223 | 238 0196 8A30 cpi r24,lo8(10) |
||
224 | 239 0198 28F4 brsh .L43 |
||
225 | 240 019a 8091 0000 lds r24,J17Bitmask.2 |
||
226 | 241 019e 8823 tst r24 |
||
227 | 242 01a0 E4F0 brlt .L50 |
||
228 | 243 01a2 36C0 rjmp .L66 |
||
229 | 244 .L43: |
||
230 | 245 01a4 8091 0000 lds r24,J17Blinkcount |
||
231 | 246 01a8 8150 subi r24,lo8(-(-1)) |
||
232 | 247 01aa 8093 0000 sts J17Blinkcount,r24 |
||
233 | 248 01ae 8F3F cpi r24,lo8(-1) |
||
234 | 249 01b0 91F5 brne .L2 |
||
235 | 250 01b2 8091 0000 lds r24,Parameter_J17Timing |
||
236 | 251 01b6 8150 subi r24,lo8(-(-1)) |
||
237 | 252 01b8 8093 0000 sts J17Blinkcount,r24 |
||
238 | 253 01bc 8091 0000 lds r24,J17Mask |
||
239 | 254 01c0 8130 cpi r24,lo8(1) |
||
240 | 255 01c2 11F4 brne .L48 |
||
241 | 256 01c4 80E8 ldi r24,lo8(-128) |
||
242 | 257 01c6 01C0 rjmp .L61 |
||
243 | 258 .L48: |
||
244 | 259 01c8 8695 lsr r24 |
||
245 | 260 .L61: |
||
246 | 261 01ca 8093 0000 sts J17Mask,r24 |
||
247 | 262 01ce 8091 0000 lds r24,J17Mask |
||
248 | 263 01d2 9091 0000 lds r25,J17Bitmask.2 |
||
249 | 264 01d6 8923 and r24,r25 |
||
250 | 265 01d8 D9F4 brne .L66 |
||
251 | 266 .L50: |
||
252 | 267 01da 4398 cbi 40-0x20,3 |
||
253 | 268 01dc 0895 ret |
||
254 | 269 .L34: |
||
255 | 270 01de 8091 0000 lds r24,J17Blinkcount |
||
256 | 271 01e2 8150 subi r24,lo8(-(-1)) |
||
257 | 272 01e4 8093 0000 sts J17Blinkcount,r24 |
||
258 | 273 01e8 8F3F cpi r24,lo8(-1) |
||
259 | 274 01ea A9F4 brne .L2 |
||
260 | 275 01ec 89E0 ldi r24,lo8(9) |
||
261 | 276 01ee 8093 0000 sts J17Blinkcount,r24 |
||
262 | 277 01f2 8091 0000 lds r24,J17Mask |
||
263 | 278 01f6 8130 cpi r24,lo8(1) |
||
264 | 279 01f8 11F4 brne .L54 |
||
265 | 280 01fa 80E8 ldi r24,lo8(-128) |
||
266 | 281 01fc 01C0 rjmp .L62 |
||
267 | 282 .L54: |
||
268 | 283 01fe 8695 lsr r24 |
||
269 | 284 .L62: |
||
270 | 285 0200 8093 0000 sts J17Mask,r24 |
||
271 | 286 0204 8091 0000 lds r24,J17Mask |
||
272 | 287 0208 9091 0000 lds r25,EE_Parameter+77 |
||
273 | 288 020c 8923 and r24,r25 |
||
274 | 289 020e 11F0 breq .L56 |
||
275 | 290 .L66: |
||
276 | 291 0210 439A sbi 40-0x20,3 |
||
277 | 292 0212 0895 ret |
||
278 | 293 .L56: |
||
279 | 294 0214 4398 cbi 40-0x20,3 |
||
280 | 295 .L2: |
||
281 | 296 0216 0895 ret |
||
282 | 297 /* epilogue: frame size=0 */ |
||
283 | 298 /* epilogue: noreturn */ |
||
284 | 299 /* epilogue end (size=0) */ |
||
285 | 300 /* function LED_Update size 261 (261) */ |
||
286 | 302 /* File "led.c": code 276 = 0x0114 ( 275), prologues 0, epilogues 1 */ |
||
287 | DEFINED SYMBOLS |
||
288 | *ABS*:00000000 led.c |
||
289 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:3 *ABS*:0000003f __SREG__ |
||
290 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:4 *ABS*:0000003e __SP_H__ |
||
291 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:5 *ABS*:0000003d __SP_L__ |
||
292 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:6 *ABS*:00000000 __tmp_reg__ |
||
293 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:7 *ABS*:00000001 __zero_reg__ |
||
294 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:14 .data:00000000 J17Mask |
||
295 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:21 .bss:00000000 J17Blinkcount |
||
296 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:27 .data:00000001 J16Mask |
||
297 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:34 .bss:00000001 J16Blinkcount |
||
298 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:40 .bss:00000002 LED2_Timing |
||
299 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:46 .bss:00000004 LED1_Timing |
||
300 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:51 .text:00000000 LED_Init |
||
301 | .bss:00000006 delay.0 |
||
302 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:69 .bss:00000007 J16Bitmask.1 |
||
303 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:70 .bss:00000008 J17Bitmask.2 |
||
304 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:71 .bss:00000009 J16Warn.3 |
||
305 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:72 .bss:0000000a J17Warn.4 |
||
306 | C:\Users\Arthur-P\AppData\Local\Temp/ccK0baaa.s:76 .text:0000001e LED_Update |
||
307 | |||
308 | UNDEFINED SYMBOLS |
||
309 | __do_copy_data |
||
310 | __do_clear_bss |
||
311 | FCFlags |
||
312 | EE_Parameter |
||
313 | MotorenEin |
||
314 | Parameter_J16Timing |
||
315 | Parameter_J17Timing |