Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

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

UNDEFINED SYMBOLS
__do_copy_data
__do_clear_bss
FCFlags
EE_Parameter
MotorenEin
Parameter_J16Timing
Parameter_J17Timing