Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1564 LPDunwell 1
   1               		.file	"led.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
   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.1447
30
  33 0022 8150      		subi r24,lo8(-(-1))
31
  34 0024 8093 0000 		sts delay.1447,r24
32
  35 0028 8F5F      		subi r24,lo8(-(1))
33
  36 002a 01F0      		breq .+2
34
  37 002c 00C0      		rjmp .L27
35
  38 002e 84E0      		ldi r24,lo8(4)
36
  39 0030 8093 0000 		sts delay.1447,r24
37
  40 0034 8091 0000 		lds r24,MKFlags
38
  41 0038 85FD      		sbrc r24,5
39
  42 003a 00C0      		rjmp .L33
40
  43 003c 8091 0000 		lds r24,ParamSet+63
41
  44 0040 8093 0000 		sts J16Bitmask.1448,r24
42
  45 0044 8091 0000 		lds r24,ParamSet+65
43
  46 0048 8093 0000 		sts J17Bitmask.1449,r24
44
  47               	.L6:
45
  48 004c 8091 0000 		lds r24,ParamSet+86
46
  49 0050 282F      		mov r18,r24
47
  50 0052 30E0      		ldi r19,lo8(0)
48
  51 0054 A901      		movw r20,r18
49
  52 0056 4071      		andi r20,lo8(16)
50
  53 0058 5070      		andi r21,hi8(16)
51
  54 005a 84FF      		sbrs r24,4
52
  55 005c 00C0      		rjmp .L7
53
  56 005e 8091 0000 		lds r24,MKFlags
54
  57 0062 80FF      		sbrs r24,0
55
  58 0064 00C0      		rjmp .L34
56
  59               	.L7:
57
  60 0066 8091 0000 		lds r24,ParamSet+64
58
  61 006a 8B3F      		cpi r24,lo8(-5)
59
  62 006c 00F4      		brsh .+2
60
  63 006e 00C0      		rjmp .L10
61
  64 0070 8091 0000 		lds r24,FCParam+29
62
  65 0074 8D3D      		cpi r24,lo8(-35)
63
  66 0076 00F0      		brlo .+2
64
  67 0078 00C0      		rjmp .L35
65
  68 007a 8A30      		cpi r24,lo8(10)
66
  69 007c 00F0      		brlo .+2
67
  70 007e 00C0      		rjmp .L10
68
  71 0080 8091 0000 		lds r24,J16Bitmask.1448
69
  72 0084 87FD      		sbrc r24,7
70
  73 0086 00C0      		rjmp .L17
71
  74               	.L28:
72
  75 0088 429A      		sbi 40-32,2
73
  76               	.L13:
74
  77 008a 452B      		or r20,r21
75
  78 008c 01F0      		breq .+2
76
  79 008e 00C0      		rjmp .L9
77
  80               	.L18:
78
  81 0090 8091 0000 		lds r24,ParamSet+66
79
  82 0094 8B3F      		cpi r24,lo8(-5)
80
  83 0096 00F0      		brlo .L20
81
  84 0098 8091 0000 		lds r24,FCParam+30
82
  85 009c 8D3D      		cpi r24,lo8(-35)
83
  86 009e 00F0      		brlo .+2
84
  87 00a0 00C0      		rjmp .L36
85
  88 00a2 8A30      		cpi r24,lo8(10)
86
  89 00a4 00F4      		brsh .L20
87
  90 00a6 8091 0000 		lds r24,J17Bitmask.1449
88
  91 00aa 87FD      		sbrc r24,7
89
  92 00ac 00C0      		rjmp .L30
90
  93               	.L29:
91
  94 00ae 439A      		sbi 40-32,3
92
  95 00b0 0895      		ret
93
  96               	.L20:
94
  97 00b2 8091 0000 		lds r24,J17Blinkcount
95
  98 00b6 8150      		subi r24,lo8(-(-1))
96
  99 00b8 8093 0000 		sts J17Blinkcount,r24
97
 100 00bc 8F5F      		subi r24,lo8(-(1))
98
 101 00be 01F4      		brne .L27
99
 102 00c0 8091 0000 		lds r24,FCParam+30
100
 103 00c4 8150      		subi r24,lo8(-(-1))
101
 104 00c6 8093 0000 		sts J17Blinkcount,r24
102
 105 00ca 8091 0000 		lds r24,J17Mask
103
 106 00ce 8130      		cpi r24,lo8(1)
104
 107 00d0 01F4      		brne .+2
105
 108 00d2 00C0      		rjmp .L37
106
 109 00d4 8695      		lsr r24
107
 110 00d6 8093 0000 		sts J17Mask,r24
108
 111               	.L25:
109
 112 00da 8091 0000 		lds r24,J17Bitmask.1449
110
 113 00de 9091 0000 		lds r25,J17Mask
111
 114 00e2 8923      		and r24,r25
112
 115 00e4 01F4      		brne .L29
113
 116 00e6 4398      		cbi 40-32,3
114
 117               	.L27:
115
 118 00e8 0895      		ret
116
 119               	.L33:
117
 120 00ea 8091 0000 		lds r24,ParamSet+67
118
 121 00ee 8093 0000 		sts J16Bitmask.1448,r24
119
 122 00f2 8091 0000 		lds r24,ParamSet+68
120
 123 00f6 8093 0000 		sts J17Bitmask.1449,r24
121
 124 00fa 00C0      		rjmp .L6
122
 125               	.L10:
123
 126 00fc 8091 0000 		lds r24,J16Blinkcount
124
 127 0100 8150      		subi r24,lo8(-(-1))
125
 128 0102 8093 0000 		sts J16Blinkcount,r24
126
 129 0106 8F5F      		subi r24,lo8(-(1))
127
 130 0108 01F0      		breq .+2
128
 131 010a 00C0      		rjmp .L13
129
 132 010c 8091 0000 		lds r24,FCParam+29
130
 133 0110 8150      		subi r24,lo8(-(-1))
131
 134 0112 8093 0000 		sts J16Blinkcount,r24
132
 135 0116 8091 0000 		lds r24,J16Mask
133
 136 011a 8130      		cpi r24,lo8(1)
134
 137 011c 01F0      		breq .L38
135
 138 011e 8695      		lsr r24
136
 139 0120 8093 0000 		sts J16Mask,r24
137
 140               	.L16:
138
 141 0124 8091 0000 		lds r24,J16Bitmask.1448
139
 142 0128 9091 0000 		lds r25,J16Mask
140
 143 012c 8923      		and r24,r25
141
 144 012e 01F0      		breq .+2
142
 145 0130 00C0      		rjmp .L28
143
 146               	.L17:
144
 147 0132 4298      		cbi 40-32,2
145
 148               	.L39:
146
 149 0134 452B      		or r20,r21
147
 150 0136 01F4      		brne .+2
148
 151 0138 00C0      		rjmp .L18
149
 152               	.L9:
150
 153 013a 8091 0000 		lds r24,MKFlags
151
 154 013e 80FD      		sbrc r24,0
152
 155 0140 00C0      		rjmp .L18
153
 156 0142 26FD      		sbrc r18,6
154
 157 0144 00C0      		rjmp .L29
155
 158               	.L30:
156
 159 0146 4398      		cbi 40-32,3
157
 160 0148 0895      		ret
158
 161               	.L34:
159
 162 014a 25FF      		sbrs r18,5
160
 163 014c 00C0      		rjmp .L8
161
 164 014e 429A      		sbi 40-32,2
162
 165 0150 00C0      		rjmp .L9
163
 166               	.L35:
164
 167 0152 8091 0000 		lds r24,J16Bitmask.1448
165
 168 0156 87FD      		sbrc r24,7
166
 169 0158 00C0      		rjmp .L28
167
 170 015a 4298      		cbi 40-32,2
168
 171 015c 00C0      		rjmp .L39
169
 172               	.L36:
170
 173 015e 8091 0000 		lds r24,J17Bitmask.1449
171
 174 0162 87FF      		sbrs r24,7
172
 175 0164 00C0      		rjmp .L30
173
 176 0166 00C0      		rjmp .L29
174
 177               	.L8:
175
 178 0168 4298      		cbi 40-32,2
176
 179 016a 00C0      		rjmp .L9
177
 180               	.L37:
178
 181 016c 80E8      		ldi r24,lo8(-128)
179
 182 016e 8093 0000 		sts J17Mask,r24
180
 183 0172 00C0      		rjmp .L25
181
 184               	.L38:
182
 185 0174 80E8      		ldi r24,lo8(-128)
183
 186 0176 8093 0000 		sts J16Mask,r24
184
 187 017a 00C0      		rjmp .L16
185
 189               	.global	J16Blinkcount
186
 190               	.global	J16Blinkcount
187
 191               		.section .bss
188
 194               	J16Blinkcount:
189
 195 0000 00        		.skip 1,0
190
 196               	.global	J16Mask
191
 197               		.data
192
 200               	J16Mask:
193
 201 0000 01        		.byte	1
194
 202               	.global	J17Blinkcount
195
 203               	.global	J17Blinkcount
196
 204               		.section .bss
197
 207               	J17Blinkcount:
198
 208 0001 00        		.skip 1,0
199
 209               	.global	J17Mask
200
 210               		.data
201
 213               	J17Mask:
202
 214 0001 01        		.byte	1
203
 215               		.lcomm J17Bitmask.1449,1
204
 216               		.lcomm J16Bitmask.1448,1
205
 217               		.lcomm delay.1447,1
206
 218               	.global __do_copy_data
207
 219               	.global __do_clear_bss
208
DEFINED SYMBOLS
209
                            *ABS*:00000000 led.c
210
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:2      *ABS*:0000003f __SREG__
211
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:3      *ABS*:0000003e __SP_H__
212
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:4      *ABS*:0000003d __SP_L__
213
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:5      *ABS*:00000034 __CCP__
214
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:6      *ABS*:00000000 __tmp_reg__
215
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:7      *ABS*:00000001 __zero_reg__
216
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:11     .text:00000000 LED_Init
217
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:194    .bss:00000000 J16Blinkcount
218
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:200    .data:00000000 J16Mask
219
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:207    .bss:00000001 J17Blinkcount
220
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:213    .data:00000001 J17Mask
221
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:29     .text:0000001e LED_Update
222
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:216    .bss:00000004 delay.1447
223
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckFBQ31.s:215    .bss:00000003 J16Bitmask.1448
224
                             .bss:00000002 J17Bitmask.1449
225
 
226
UNDEFINED SYMBOLS
227
MKFlags
228
ParamSet
229
FCParam
230
__do_copy_data
231
__do_clear_bss