Subversion Repositories FlightCtrl

Rev

Rev 1755 | Details | Compare with Previous | Last modification | View Log | RSS feed

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