1 .file "led.c" 2 __SREG__ = 0x3f 3 __SP_H__ = 0x3e 4 __SP_L__ = 0x3d 5 __CCP__ = 0x34 6 __tmp_reg__ = 0 7 __zero_reg__ = 1 8 .text 9 .global LED_Init 11 LED_Init: 12 /* prologue: function */ 13 /* frame size = 0 */ 14 0000 87B1 in r24,39-32 15 0002 8C60 ori r24,lo8(12) 16 0004 87B9 out 39-32,r24 17 0006 4298 cbi 40-32,2 18 0008 4398 cbi 40-32,3 19 000a 1092 0000 sts J16Blinkcount,__zero_reg__ 20 000e 80E8 ldi r24,lo8(-128) 21 0010 8093 0000 sts J16Mask,r24 22 0014 1092 0000 sts J17Blinkcount,__zero_reg__ 23 0018 8093 0000 sts J17Mask,r24 24 /* epilogue start */ 25 001c 0895 ret 27 .global LED_Update 29 LED_Update: 30 /* prologue: function */ 31 /* frame size = 0 */ 32 001e 8091 0000 lds r24,delay.2231 33 0022 8150 subi r24,lo8(-(-1)) 34 0024 8093 0000 sts delay.2231,r24 35 0028 8F5F subi r24,lo8(-(1)) 36 002a 01F0 breq .+2 37 002c 00C0 rjmp .L37 38 002e 94E0 ldi r25,lo8(4) 39 0030 9093 0000 sts delay.2231,r25 40 0034 8091 0000 lds r24,FCFlags 41 0038 807B andi r24,lo8(-80) 42 003a 01F0 breq .L5 43 003c 8091 0000 lds r24,EE_Parameter+76 44 0040 8823 tst r24 45 0042 01F0 breq .L6 46 0044 8091 0000 lds r24,J16Warn.2234 47 0048 8823 tst r24 48 004a 01F4 brne .L7 49 004c 9093 0000 sts J16Blinkcount,r25 50 .L7: 51 0050 81E0 ldi r24,lo8(1) 52 0052 8093 0000 sts J16Warn.2234,r24 53 .L6: 54 0056 8091 0000 lds r24,EE_Parameter+77 55 005a 8823 tst r24 56 005c 01F0 breq .L8 57 005e 8091 0000 lds r24,J17Warn.2235 58 0062 8823 tst r24 59 0064 01F4 brne .L9 60 0066 84E0 ldi r24,lo8(4) 61 0068 8093 0000 sts J17Blinkcount,r24 62 .L9: 63 006c 81E0 ldi r24,lo8(1) 64 006e 8093 0000 sts J17Warn.2235,r24 65 0072 00C0 rjmp .L8 66 .L5: 67 0074 1092 0000 sts J16Warn.2234,__zero_reg__ 68 0078 1092 0000 sts J17Warn.2235,__zero_reg__ 69 007c 8091 0000 lds r24,EE_Parameter+72 70 0080 8093 0000 sts J16Bitmask.2232,r24 71 0084 8091 0000 lds r24,EE_Parameter+74 72 0088 8093 0000 sts J17Bitmask.2233,r24 73 .L8: 74 008c 8091 0000 lds r24,J16Warn.2234 75 0090 8823 tst r24 76 0092 01F4 brne .L10 77 0094 8091 0000 lds r24,EE_Parameter+97 78 0098 982F mov r25,r24 79 009a 84FF sbrs r24,4 80 009c 00C0 rjmp .L11 81 009e 8091 0000 lds r24,MotorenEin 82 00a2 8823 tst r24 83 00a4 01F4 brne .L11 84 00a6 95FF sbrs r25,5 85 00a8 00C0 rjmp .L23 86 00aa 00C0 rjmp .L41 87 .L11: 88 00ac 8091 0000 lds r24,EE_Parameter+73 89 00b0 883F cpi r24,lo8(-8) 90 00b2 00F0 brlo .L14 91 00b4 8091 0000 lds r24,Parameter_J16Timing 92 00b8 8D3D cpi r24,lo8(-35) 93 00ba 00F0 brlo .L15 94 00bc 8091 0000 lds r24,J16Bitmask.2232 95 00c0 87FF sbrs r24,7 96 00c2 00C0 rjmp .L23 97 00c4 00C0 rjmp .L41 98 .L15: 99 00c6 8A30 cpi r24,lo8(10) 100 00c8 00F4 brsh .L14 101 00ca 8091 0000 lds r24,J16Bitmask.2232 102 00ce 87FF sbrs r24,7 103 00d0 00C0 rjmp .L41 104 00d2 00C0 rjmp .L23 105 .L14: 106 00d4 8091 0000 lds r24,J16Blinkcount 107 00d8 8150 subi r24,lo8(-(-1)) 108 00da 8093 0000 sts J16Blinkcount,r24 109 00de 8F5F subi r24,lo8(-(1)) 110 00e0 01F4 brne .L13 111 00e2 8091 0000 lds r24,Parameter_J16Timing 112 00e6 8150 subi r24,lo8(-(-1)) 113 00e8 8093 0000 sts J16Blinkcount,r24 114 00ec 8091 0000 lds r24,J16Mask 115 00f0 8130 cpi r24,lo8(1) 116 00f2 01F4 brne .L18 117 00f4 80E8 ldi r24,lo8(-128) 118 00f6 00C0 rjmp .L38 119 .L18: 120 00f8 8695 lsr r24 121 .L38: 122 00fa 8093 0000 sts J16Mask,r24 123 00fe 8091 0000 lds r24,J16Bitmask.2232 124 0102 00C0 rjmp .L46 125 .L10: 126 0104 8091 0000 lds r24,J16Blinkcount 127 0108 8150 subi r24,lo8(-(-1)) 128 010a 8093 0000 sts J16Blinkcount,r24 129 010e 8F5F subi r24,lo8(-(1)) 130 0110 01F4 brne .L13 131 0112 89E0 ldi r24,lo8(9) 132 0114 8093 0000 sts J16Blinkcount,r24 133 0118 8091 0000 lds r24,J16Mask 134 011c 8130 cpi r24,lo8(1) 135 011e 01F4 brne .L21 136 0120 80E8 ldi r24,lo8(-128) 137 0122 00C0 rjmp .L39 138 .L21: 139 0124 8695 lsr r24 140 .L39: 141 0126 8093 0000 sts J16Mask,r24 142 012a 8091 0000 lds r24,EE_Parameter+76 143 .L46: 144 012e 9091 0000 lds r25,J16Mask 145 0132 8923 and r24,r25 146 0134 01F0 breq .L23 147 .L41: 148 0136 429A sbi 40-32,2 149 0138 00C0 rjmp .L13 150 .L23: 151 013a 4298 cbi 40-32,2 152 .L13: 153 013c 8091 0000 lds r24,J17Warn.2235 154 0140 8823 tst r24 155 0142 01F0 breq .+2 156 0144 00C0 rjmp .L24 157 0146 8091 0000 lds r24,EE_Parameter+97 158 014a 982F mov r25,r24 159 014c 84FF sbrs r24,4 160 014e 00C0 rjmp .L25 161 0150 8091 0000 lds r24,MotorenEin 162 0154 8823 tst r24 163 0156 01F4 brne .L25 164 0158 96FF sbrs r25,6 165 015a 00C0 rjmp .L33 166 015c 00C0 rjmp .L44 167 .L25: 168 015e 8091 0000 lds r24,EE_Parameter+75 169 0162 883F cpi r24,lo8(-8) 170 0164 00F0 brlo .L27 171 0166 8091 0000 lds r24,Parameter_J17Timing 172 016a 8D3D cpi r24,lo8(-35) 173 016c 00F0 brlo .L28 174 016e 8091 0000 lds r24,J17Bitmask.2233 175 0172 87FF sbrs r24,7 176 0174 00C0 rjmp .L33 177 0176 00C0 rjmp .L44 178 .L28: 179 0178 8A30 cpi r24,lo8(10) 180 017a 00F4 brsh .L27 181 017c 8091 0000 lds r24,J17Bitmask.2233 182 0180 87FF sbrs r24,7 183 0182 00C0 rjmp .L44 184 0184 00C0 rjmp .L33 185 .L27: 186 0186 8091 0000 lds r24,J17Blinkcount 187 018a 8150 subi r24,lo8(-(-1)) 188 018c 8093 0000 sts J17Blinkcount,r24 189 0190 8F5F subi r24,lo8(-(1)) 190 0192 01F4 brne .L37 191 0194 8091 0000 lds r24,Parameter_J17Timing 192 0198 8150 subi r24,lo8(-(-1)) 193 019a 8093 0000 sts J17Blinkcount,r24 194 019e 8091 0000 lds r24,J17Mask 195 01a2 8130 cpi r24,lo8(1) 196 01a4 01F4 brne .L31 197 01a6 80E8 ldi r24,lo8(-128) 198 01a8 00C0 rjmp .L42 199 .L31: 200 01aa 8695 lsr r24 201 .L42: 202 01ac 8093 0000 sts J17Mask,r24 203 01b0 8091 0000 lds r24,J17Bitmask.2233 204 01b4 9091 0000 lds r25,J17Mask 205 01b8 8923 and r24,r25 206 01ba 01F4 brne .L44 207 .L33: 208 01bc 4398 cbi 40-32,3 209 01be 0895 ret 210 .L24: 211 01c0 8091 0000 lds r24,J17Blinkcount 212 01c4 8150 subi r24,lo8(-(-1)) 213 01c6 8093 0000 sts J17Blinkcount,r24 214 01ca 8F5F subi r24,lo8(-(1)) 215 01cc 01F4 brne .L37 216 01ce 89E0 ldi r24,lo8(9) 217 01d0 8093 0000 sts J17Blinkcount,r24 218 01d4 8091 0000 lds r24,J17Mask 219 01d8 8130 cpi r24,lo8(1) 220 01da 01F4 brne .L34 221 01dc 80E8 ldi r24,lo8(-128) 222 01de 00C0 rjmp .L43 223 .L34: 224 01e0 8695 lsr r24 225 .L43: 226 01e2 8093 0000 sts J17Mask,r24 227 01e6 8091 0000 lds r24,EE_Parameter+77 228 01ea 9091 0000 lds r25,J17Mask 229 01ee 8923 and r24,r25 230 01f0 01F0 breq .L36 231 .L44: 232 01f2 439A sbi 40-32,3 233 01f4 0895 ret 234 .L36: 235 01f6 4398 cbi 40-32,3 236 .L37: 237 01f8 0895 ret 239 .global LED1_Timing 240 .global LED1_Timing 241 .section .bss 244 LED1_Timing: 245 0000 0000 .skip 2,0 246 .global LED2_Timing 247 .global LED2_Timing 250 LED2_Timing: 251 0002 0000 .skip 2,0 252 .global J16Blinkcount 253 .global J16Blinkcount 256 J16Blinkcount: 257 0004 00 .skip 1,0 258 .global J16Mask 259 .data 262 J16Mask: 263 0000 01 .byte 1 264 .global J17Blinkcount 265 .global J17Blinkcount 266 .section .bss 269 J17Blinkcount: 270 0005 00 .skip 1,0 271 .global J17Mask 272 .data 275 J17Mask: 276 0001 01 .byte 1 277 .lcomm J17Warn.2235,1 278 .lcomm J16Warn.2234,1 279 .lcomm J17Bitmask.2233,1 280 .lcomm J16Bitmask.2232,1 281 .lcomm delay.2231,1 282 .global __do_copy_data 283 .global __do_clear_bss DEFINED SYMBOLS *ABS*:00000000 led.c C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:2 *ABS*:0000003f __SREG__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:3 *ABS*:0000003e __SP_H__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:4 *ABS*:0000003d __SP_L__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:5 *ABS*:00000034 __CCP__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:6 *ABS*:00000000 __tmp_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:7 *ABS*:00000001 __zero_reg__ C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:11 .text:00000000 LED_Init C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:256 .bss:00000004 J16Blinkcount C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:262 .data:00000000 J16Mask C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:269 .bss:00000005 J17Blinkcount C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:275 .data:00000001 J17Mask C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:29 .text:0000001e LED_Update C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:280 .bss:0000000a delay.2231 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:277 .bss:00000007 J16Warn.2234 .bss:00000006 J17Warn.2235 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:279 .bss:00000009 J16Bitmask.2232 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:278 .bss:00000008 J17Bitmask.2233 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:244 .bss:00000000 LED1_Timing C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc8KmXBy.s:250 .bss:00000002 LED2_Timing UNDEFINED SYMBOLS FCFlags EE_Parameter MotorenEin Parameter_J16Timing Parameter_J17Timing __do_copy_data __do_clear_bss