Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
1189 kmpec 1
   1               		.file	"led.c"
2
   2               	__SREG__ = 0x3f
3
   3               	__SP_H__ = 0x3e
4
   4               	__SP_L__ = 0x3d
5
   5               	__tmp_reg__ = 0
6
   6               	__zero_reg__ = 1
7
   7               		.global __do_copy_data
8
   8               		.global __do_clear_bss
9
   9               		.text
10
  10               	.global	LED_Init
11
  12               	LED_Init:
12
  13               	/* prologue: frame size=0 */
13
  14               	/* prologue end (size=0) */
14
  15 0000 87B1      		in r24,39-0x20
15
  16 0002 8C60      		ori r24,lo8(12)
16
  17 0004 87B9      		out 39-0x20,r24
17
  18 0006 4298      		cbi 40-0x20,2
18
  19 0008 4398      		cbi 40-0x20,3
19
  20 000a 1092 0000 		sts J16Blinkcount,__zero_reg__
20
  21 000e 80E8      		ldi r24,lo8(-128)
21
  22 0010 8093 0000 		sts J16Mask,r24
22
  23 0014 1092 0000 		sts J17Blinkcount,__zero_reg__
23
  24 0018 8093 0000 		sts J17Mask,r24
24
  25               	/* epilogue: frame size=0 */
25
  26 001c 0895      		ret
26
  27               	/* epilogue end (size=1) */
27
  28               	/* function LED_Init size 15 (14) */
28
  30               	.global	LED_Update
29
  32               	LED_Update:
30
  33               	/* prologue: frame size=0 */
31
  34               	/* prologue end (size=0) */
32
  35 001e 8091 0000 		lds r24,delay.2372
33
  36 0022 8150      		subi r24,lo8(-(-1))
34
  37 0024 8093 0000 		sts delay.2372,r24
35
  38 0028 8F3F      		cpi r24,lo8(-1)
1193 kmpec 36
  39 002a 01F0      		breq .L54
37
  40               	.L48:
1189 kmpec 38
  41 002c 0895      		ret
1193 kmpec 39
  42               	.L54:
1189 kmpec 40
  43 002e 84E0      		ldi r24,lo8(4)
41
  44 0030 8093 0000 		sts delay.2372,r24
42
  45 0034 8091 0000 		lds r24,HoehenReglerAktiv
43
  46 0038 8823      		tst r24
1193 kmpec 44
  47 003a 01F4      		brne .+2
45
  48 003c 00C0      		rjmp .L49
46
  49 003e 8091 0000 		lds r24,Parameter_NaviGpsModeControl
47
  50 0042 8B35      		cpi r24,lo8(91)
48
  51 0044 00F4      		brsh .+2
49
  52 0046 00C0      		rjmp .L6
50
  53 0048 883C      		cpi r24,lo8(-56)
51
  54 004a 00F0      		brlo .+2
52
  55 004c 00C0      		rjmp .L6
53
  56 004e 8091 0000 		lds r24,J16Blinkcount
54
  57 0052 8150      		subi r24,lo8(-(-1))
55
  58 0054 8093 0000 		sts J16Blinkcount,r24
56
  59 0058 8F3F      		cpi r24,lo8(-1)
57
  60 005a 01F0      		breq .+2
58
  61 005c 00C0      		rjmp .L10
59
  62 005e 8091 0000 		lds r24,Parameter_J16Timing
60
  63 0062 8150      		subi r24,lo8(-(-1))
61
  64 0064 8093 0000 		sts J16Blinkcount,r24
62
  65 0068 8091 0000 		lds r24,J16Mask
63
  66 006c 8130      		cpi r24,lo8(1)
64
  67 006e 01F4      		brne .+2
65
  68 0070 00C0      		rjmp .L55
66
  69 0072 8695      		lsr r24
67
  70 0074 8093 0000 		sts J16Mask,r24
68
  71               	.L14:
69
  72 0078 8091 0000 		lds r24,J16Mask
70
  73 007c 9091 0000 		lds r25,EE_Parameter+30
71
  74 0080 8923      		and r24,r25
72
  75 0082 01F4      		brne .+2
73
  76 0084 00C0      		rjmp .L31
74
  77               	.L25:
75
  78 0086 429A      		sbi 40-0x20,2
76
  79               	.L62:
77
  80 0088 8091 0000 		lds r24,EE_Parameter+57
78
  81 008c 8B3F      		cpi r24,lo8(-5)
79
  82 008e 00F4      		brsh .L56
80
  83               	.L33:
81
  84 0090 8091 0000 		lds r24,J17Blinkcount
82
  85 0094 8150      		subi r24,lo8(-(-1))
83
  86 0096 8093 0000 		sts J17Blinkcount,r24
84
  87 009a 8F3F      		cpi r24,lo8(-1)
85
  88 009c 01F4      		brne .L48
86
  89 009e 8091 0000 		lds r24,Parameter_J17Timing
87
  90 00a2 8150      		subi r24,lo8(-(-1))
88
  91 00a4 8093 0000 		sts J17Blinkcount,r24
89
  92 00a8 8091 0000 		lds r24,J17Mask
90
  93 00ac 8130      		cpi r24,lo8(1)
91
  94 00ae 01F4      		brne .+2
92
  95 00b0 00C0      		rjmp .L57
93
  96 00b2 8695      		lsr r24
94
  97 00b4 8093 0000 		sts J17Mask,r24
95
  98               	.L45:
96
  99 00b8 8091 0000 		lds r24,J17Mask
97
 100 00bc 9091 0000 		lds r25,EE_Parameter+56
98
 101 00c0 8923      		and r24,r25
99
 102 00c2 01F0      		breq .+2
100
 103 00c4 00C0      		rjmp .L50
101
 104 00c6 4398      		cbi 40-0x20,3
102
 105 00c8 0895      		ret
103
 106               	.L49:
104
 107 00ca 8091 0000 		lds r24,Parameter_NaviGpsModeControl
105
 108               	.L6:
106
 109 00ce 8436      		cpi r24,lo8(100)
107
 110 00d0 00F0      		brlo .L58
108
 111 00d2 8739      		cpi r24,lo8(-105)
109
 112 00d4 00F0      		brlo .L25
110
 113 00d6 8091 0000 		lds r24,J16Blinkcount
111
 114 00da 8150      		subi r24,lo8(-(-1))
112
 115 00dc 8093 0000 		sts J16Blinkcount,r24
113
 116 00e0 8F3F      		cpi r24,lo8(-1)
114
 117 00e2 01F0      		breq .L59
115
 118               	.L10:
116
 119 00e4 8091 0000 		lds r24,EE_Parameter+57
117
 120 00e8 8B3F      		cpi r24,lo8(-5)
118
 121 00ea 00F0      		brlo .L33
119
 122               	.L56:
120
 123 00ec 8091 0000 		lds r24,Parameter_J17Timing
121
 124 00f0 873E      		cpi r24,lo8(-25)
122
 125 00f2 00F0      		brlo .L35
123
 126 00f4 8091 0000 		lds r24,EE_Parameter+56
124
 127 00f8 8823      		tst r24
125
 128 00fa 04F0      		brlt .L50
126
 129               	.L51:
127
 130 00fc 4398      		cbi 40-0x20,3
128
 131 00fe 0895      		ret
129
 132               	.L58:
130
 133 0100 8091 0000 		lds r24,J16Blinkcount
131
 134 0104 8150      		subi r24,lo8(-(-1))
132
 135 0106 8093 0000 		sts J16Blinkcount,r24
133
 136 010a 8F3F      		cpi r24,lo8(-1)
134
 137 010c 01F4      		brne .L10
135
 138 010e 8091 0000 		lds r24,Parameter_J16Timing
136
 139 0112 8150      		subi r24,lo8(-(-1))
137
 140 0114 8093 0000 		sts J16Blinkcount,r24
138
 141 0118 8091 0000 		lds r24,J16Mask
139
 142 011c 8130      		cpi r24,lo8(1)
140
 143 011e 01F0      		breq .L60
141
 144 0120 8695      		lsr r24
142
 145 0122 8093 0000 		sts J16Mask,r24
143
 146               	.L22:
144
 147 0126 8091 0000 		lds r24,J16Mask
145
 148 012a 9091 0000 		lds r25,EE_Parameter+31
146
 149 012e 8923      		and r24,r25
147
 150 0130 01F0      		breq .+2
148
 151 0132 00C0      		rjmp .L25
149
 152               	.L31:
150
 153 0134 4298      		cbi 40-0x20,2
151
 154 0136 00C0      		rjmp .L10
152
 155               	.L35:
153
 156 0138 8A30      		cpi r24,lo8(10)
154
 157 013a 00F0      		brlo .+2
155
 158 013c 00C0      		rjmp .L33
156
 159 013e 8091 0000 		lds r24,EE_Parameter+56
157
 160 0142 87FD      		sbrc r24,7
158
 161 0144 00C0      		rjmp .L51
159
 162               	.L50:
160
 163 0146 439A      		sbi 40-0x20,3
161
 164 0148 0895      		ret
162
 165               	.L60:
163
 166 014a 80E8      		ldi r24,lo8(-128)
164
 167 014c 8093 0000 		sts J16Mask,r24
165
 168 0150 00C0      		rjmp .L22
166
 169               	.L57:
167
 170 0152 80E8      		ldi r24,lo8(-128)
168
 171 0154 8093 0000 		sts J17Mask,r24
169
 172 0158 00C0      		rjmp .L45
170
 173               	.L59:
171
 174 015a 8091 0000 		lds r24,Parameter_J16Timing
172
 175 015e 8150      		subi r24,lo8(-(-1))
173
 176 0160 8093 0000 		sts J16Blinkcount,r24
174
 177 0164 8091 0000 		lds r24,J16Mask
175
 178 0168 8130      		cpi r24,lo8(1)
176
 179 016a 01F0      		breq .L61
177
 180 016c 8695      		lsr r24
178
 181 016e 8093 0000 		sts J16Mask,r24
179
 182               	.L30:
180
 183 0172 8091 0000 		lds r24,J16Mask
181
 184 0176 9091 0000 		lds r25,EE_Parameter+32
182
 185 017a 8923      		and r24,r25
183
 186 017c 01F0      		breq .L31
184
 187 017e 429A      		sbi 40-0x20,2
185
 188 0180 00C0      		rjmp .L62
186
 189               	.L61:
187
 190 0182 80E8      		ldi r24,lo8(-128)
188
 191 0184 8093 0000 		sts J16Mask,r24
189
 192 0188 00C0      		rjmp .L30
190
 193               	.L55:
191
 194 018a 80E8      		ldi r24,lo8(-128)
192
 195 018c 8093 0000 		sts J16Mask,r24
193
 196 0190 00C0      		rjmp .L14
194
 197               	/* epilogue: frame size=0 */
195
 198               	/* epilogue: noreturn */
196
 199               	/* epilogue end (size=0) */
197
 200               	/* function LED_Update size 191 (191) */
198
 202               	.global	LED1_Timing
199
 203               	.global	LED1_Timing
200
 204               		.section .bss
201
 207               	LED1_Timing:
202
 208 0000 0000      		.skip 2,0
203
 209               	.global	LED2_Timing
204
 210               	.global	LED2_Timing
205
 213               	LED2_Timing:
206
 214 0002 0000      		.skip 2,0
207
 215               	.global	J16Blinkcount
208
 216               	.global	J16Blinkcount
209
 219               	J16Blinkcount:
210
 220 0004 00        		.skip 1,0
211
 221               	.global	J16Mask
1189 kmpec 212
 222               		.data
1193 kmpec 213
 225               	J16Mask:
214
 226 0000 01        		.byte	1
215
 227               	.global	J17Blinkcount
216
 228               	.global	J17Blinkcount
217
 229               		.section .bss
218
 232               	J17Blinkcount:
219
 233 0005 00        		.skip 1,0
220
 234               	.global	J17Mask
221
 235               		.data
222
 238               	J17Mask:
223
 239 0001 01        		.byte	1
224
 240               		.lcomm delay.2372,1
225
 241               	/* File "led.c": code  206 = 0x00ce ( 205), prologues   0, epilogues   1 */
1189 kmpec 226
DEFINED SYMBOLS
227
                            *ABS*:00000000 led.c
1197 kmpec 228
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:2      *ABS*:0000003f __SREG__
229
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:3      *ABS*:0000003e __SP_H__
230
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:4      *ABS*:0000003d __SP_L__
231
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:5      *ABS*:00000000 __tmp_reg__
232
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:6      *ABS*:00000001 __zero_reg__
233
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:12     .text:00000000 LED_Init
234
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:219    .bss:00000004 J16Blinkcount
235
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:225    .data:00000000 J16Mask
236
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:232    .bss:00000005 J17Blinkcount
237
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:238    .data:00000001 J17Mask
238
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:32     .text:0000001e LED_Update
1189 kmpec 239
                             .bss:00000006 delay.2372
1197 kmpec 240
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:207    .bss:00000000 LED1_Timing
241
C:\DOKUME~1\David\LOKALE~1\Temp/cc2yWjnH.s:213    .bss:00000002 LED2_Timing
1189 kmpec 242
 
243
UNDEFINED SYMBOLS
244
__do_copy_data
245
__do_clear_bss
246
HoehenReglerAktiv
1193 kmpec 247
Parameter_NaviGpsModeControl
248
Parameter_J16Timing
1189 kmpec 249
EE_Parameter
250
Parameter_J17Timing