Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1564 LPDunwell 1
   1               		.file	"timer0.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	TIMER0_Init
10
  11               	TIMER0_Init:
11
  12               	/* prologue: function */
12
  13               	/* frame size = 0 */
13
  14 0000 9FB7      		in r25,__SREG__
14
  15               	/* #APP */
15
  16               	 ;  93 "timer0.c" 1
16
  17 0002 F894      		cli
17
  18               	 ;  0 "" 2
18
  19               	/* #NOAPP */
19
  20 0004 8091 0000 		lds r24,BoardRelease
20
  21 0008 8A30      		cpi r24,lo8(10)
21
  22 000a 01F0      		breq .L6
22
  23 000c 3F9A      		sbi 39-32,7
23
  24 000e 4798      		cbi 40-32,7
24
  25               	.L3:
25
  26 0010 84B1      		in r24,36-32
26
  27 0012 8861      		ori r24,lo8(24)
27
  28 0014 84B9      		out 36-32,r24
28
  29 0016 85B1      		in r24,37-32
29
  30 0018 877E      		andi r24,lo8(-25)
30
  31 001a 85B9      		out 37-32,r24
31
  32 001c 84B5      		in r24,68-32
32
  33 001e 8F7A      		andi r24,lo8(-81)
33
  34 0020 84BD      		out 68-32,r24
34
  35 0022 84B5      		in r24,68-32
35
  36 0024 836A      		ori r24,lo8(-93)
36
  37 0026 84BD      		out 68-32,r24
37
  38 0028 85B5      		in r24,69-32
38
  39 002a 8773      		andi r24,lo8(55)
39
  40 002c 85BD      		out 69-32,r24
40
  41 002e 85B5      		in r24,69-32
41
  42 0030 887F      		andi r24,lo8(-8)
42
  43 0032 8260      		ori r24,lo8(2)
43
  44 0034 85BD      		out 69-32,r24
44
  45 0036 17BC      		out 71-32,__zero_reg__
45
  46 0038 88E7      		ldi r24,lo8(120)
46
  47 003a 88BD      		out 72-32,r24
47
  48 003c 16BC      		out 70-32,__zero_reg__
48
  49 003e 8091 6E00 		lds r24,110
49
  50 0042 897F      		andi r24,lo8(-7)
50
  51 0044 8093 6E00 		sts 110,r24
51
  52 0048 8091 6E00 		lds r24,110
52
  53 004c 8160      		ori r24,lo8(1)
53
  54 004e 8093 6E00 		sts 110,r24
54
  55 0052 9FBF      		out __SREG__,r25
55
  56               	/* epilogue start */
56
  57 0054 0895      		ret
57
  58               	.L6:
58
  59 0056 529A      		sbi 42-32,2
59
  60 0058 5A98      		cbi 43-32,2
60
  61 005a 00C0      		rjmp .L3
61
  63               	.global	__vector_18
62
  65               	__vector_18:
63
  66 005c 1F92      		push __zero_reg__
64
  67 005e 0F92      		push r0
65
  68 0060 0FB6      		in r0,__SREG__
66
  69 0062 0F92      		push r0
67
  70 0064 1124      		clr __zero_reg__
68
  71 0066 2F93      		push r18
69
  72 0068 3F93      		push r19
70
  73 006a 8F93      		push r24
71
  74 006c 9F93      		push r25
72
  75               	/* prologue: Signal */
73
  76               	/* frame size = 0 */
74
  77 006e 8091 0000 		lds r24,SendSPI
75
  78 0072 8823      		tst r24
76
  79 0074 01F0      		breq .L8
77
  80 0076 8091 0000 		lds r24,SendSPI
78
  81 007a 8150      		subi r24,lo8(-(-1))
79
  82 007c 8093 0000 		sts SendSPI,r24
80
  83               	.L8:
81
  84 0080 8091 0000 		lds r24,cnt.1520
82
  85 0084 8150      		subi r24,lo8(-(-1))
83
  86 0086 8093 0000 		sts cnt.1520,r24
84
  87 008a 8F5F      		subi r24,lo8(-(1))
85
  88 008c 01F4      		brne .L9
86
  89 008e 89E0      		ldi r24,lo8(9)
87
  90 0090 8093 0000 		sts cnt.1520,r24
88
  91 0094 8091 0000 		lds r24,cnt_1ms.1519
89
  92 0098 8F5F      		subi r24,lo8(-(1))
90
  93 009a 8170      		andi r24,lo8(1)
91
  94 009c 8093 0000 		sts cnt_1ms.1519,r24
92
  95 00a0 8823      		tst r24
93
  96 00a2 01F0      		breq .L22
94
  97               	.L10:
95
  98 00a4 8091 0000 		lds r24,CountMilliseconds
96
  99 00a8 9091 0000 		lds r25,(CountMilliseconds)+1
97
 100 00ac 0196      		adiw r24,1
98
 101 00ae 9093 0000 		sts (CountMilliseconds)+1,r25
99
 102 00b2 8093 0000 		sts CountMilliseconds,r24
100
 103               	.L9:
101
 104 00b6 8091 0000 		lds r24,BeepTime
102
 105 00ba 9091 0000 		lds r25,(BeepTime)+1
103
 106 00be 892B      		or r24,r25
104
 107 00c0 01F0      		breq .L11
105
 108 00c2 8091 0000 		lds r24,BeepTime
106
 109 00c6 9091 0000 		lds r25,(BeepTime)+1
107
 110 00ca 0197      		sbiw r24,1
108
 111 00cc 9093 0000 		sts (BeepTime)+1,r25
109
 112 00d0 8093 0000 		sts BeepTime,r24
110
 113 00d4 2091 0000 		lds r18,BeepTime
111
 114 00d8 3091 0000 		lds r19,(BeepTime)+1
112
 115 00dc 8091 0000 		lds r24,BeepModulation
113
 116 00e0 9091 0000 		lds r25,(BeepModulation)+1
114
 117 00e4 8223      		and r24,r18
115
 118 00e6 9323      		and r25,r19
116
 119 00e8 892B      		or r24,r25
117
 120 00ea 01F0      		breq .L13
118
 121 00ec 8091 0000 		lds r24,BoardRelease
119
 122 00f0 8A30      		cpi r24,lo8(10)
120
 123 00f2 01F0      		breq .L23
121
 124 00f4 479A      		sbi 40-32,7
122
 125 00f6 00C0      		rjmp .L19
123
 126               	.L11:
124
 127 00f8 8FEF      		ldi r24,lo8(-1)
125
 128 00fa 9FEF      		ldi r25,hi8(-1)
126
 129 00fc 9093 0000 		sts (BeepModulation)+1,r25
127
 130 0100 8093 0000 		sts BeepModulation,r24
128
 131               	.L13:
129
 132 0104 8091 0000 		lds r24,BoardRelease
130
 133 0108 8A30      		cpi r24,lo8(10)
131
 134 010a 01F0      		breq .L24
132
 135 010c 4798      		cbi 40-32,7
133
 136               	.L19:
134
 137               	/* epilogue start */
135
 138 010e 9F91      		pop r25
136
 139 0110 8F91      		pop r24
137
 140 0112 3F91      		pop r19
138
 141 0114 2F91      		pop r18
139
 142 0116 0F90      		pop r0
140
 143 0118 0FBE      		out __SREG__,r0
141
 144 011a 0F90      		pop r0
142
 145 011c 1F90      		pop __zero_reg__
143
 146 011e 1895      		reti
144
 147               	.L22:
145
 148 0120 81E0      		ldi r24,lo8(1)
146
 149 0122 8093 0000 		sts UpdateMotor,r24
147
 150 0126 00C0      		rjmp .L10
148
 151               	.L23:
149
 152 0128 5A9A      		sbi 43-32,2
150
 153 012a 00C0      		rjmp .L19
151
 154               	.L24:
152
 155 012c 5A98      		cbi 43-32,2
153
 156 012e 00C0      		rjmp .L19
154
 158               	.global	SetDelay
155
 160               	SetDelay:
156
 161               	/* prologue: function */
157
 162               	/* frame size = 0 */
158
 163 0130 2091 0000 		lds r18,CountMilliseconds
159
 164 0134 3091 0000 		lds r19,(CountMilliseconds)+1
160
 165 0138 2150      		subi r18,lo8(-(-1))
161
 166 013a 3040      		sbci r19,hi8(-(-1))
162
 167 013c 280F      		add r18,r24
163
 168 013e 391F      		adc r19,r25
164
 169 0140 C901      		movw r24,r18
165
 170               	/* epilogue start */
166
 171 0142 0895      		ret
167
 173               	.global	CheckDelay
168
 175               	CheckDelay:
169
 176               	/* prologue: function */
170
 177               	/* frame size = 0 */
171
 178 0144 2091 0000 		lds r18,CountMilliseconds
172
 179 0148 3091 0000 		lds r19,(CountMilliseconds)+1
173
 180 014c 821B      		sub r24,r18
174
 181 014e 930B      		sbc r25,r19
175
 182 0150 8070      		andi r24,lo8(-32768)
176
 183 0152 9078      		andi r25,hi8(-32768)
177
 184 0154 892F      		mov r24,r25
178
 185               	/* epilogue start */
179
 186 0156 0895      		ret
180
 188               	.global	Delay_ms
181
 190               	Delay_ms:
182
 191               	/* prologue: function */
183
 192               	/* frame size = 0 */
184
 193 0158 2091 0000 		lds r18,CountMilliseconds
185
 194 015c 3091 0000 		lds r19,(CountMilliseconds)+1
186
 195 0160 2150      		subi r18,lo8(-(-1))
187
 196 0162 3040      		sbci r19,hi8(-(-1))
188
 197 0164 280F      		add r18,r24
189
 198 0166 391F      		adc r19,r25
190
 199               	.L30:
191
 200 0168 8091 0000 		lds r24,CountMilliseconds
192
 201 016c 9091 0000 		lds r25,(CountMilliseconds)+1
193
 202 0170 A901      		movw r20,r18
194
 203 0172 481B      		sub r20,r24
195
 204 0174 590B      		sbc r21,r25
196
 205 0176 CA01      		movw r24,r20
197
 206 0178 8070      		andi r24,lo8(-32768)
198
 207 017a 9078      		andi r25,hi8(-32768)
199
 208 017c 9923      		tst r25
200
 209 017e 01F0      		breq .L30
201
 210               	/* epilogue start */
202
 211 0180 0895      		ret
203
 213               	.global	Delay_ms_Mess
204
 215               	Delay_ms_Mess:
205
 216               	/* prologue: function */
206
 217               	/* frame size = 0 */
207
 218 0182 2091 0000 		lds r18,CountMilliseconds
208
 219 0186 3091 0000 		lds r19,(CountMilliseconds)+1
209
 220 018a 2150      		subi r18,lo8(-(-1))
210
 221 018c 3040      		sbci r19,hi8(-(-1))
211
 222 018e 280F      		add r18,r24
212
 223 0190 391F      		adc r19,r25
213
 224               	.L39:
214
 225 0192 8091 0000 		lds r24,CountMilliseconds
215
 226 0196 9091 0000 		lds r25,(CountMilliseconds)+1
216
 227 019a A901      		movw r20,r18
217
 228 019c 481B      		sub r20,r24
218
 229 019e 590B      		sbc r21,r25
219
 230 01a0 CA01      		movw r24,r20
220
 231 01a2 8070      		andi r24,lo8(-32768)
221
 232 01a4 9078      		andi r25,hi8(-32768)
222
 233 01a6 9923      		tst r25
223
 234 01a8 01F4      		brne .L40
224
 235 01aa 8091 0000 		lds r24,ADReady
225
 236 01ae 8823      		tst r24
226
 237 01b0 01F0      		breq .L39
227
 238 01b2 1092 0000 		sts ADReady,__zero_reg__
228
 239 01b6 8091 7A00 		lds r24,122
229
 240 01ba 886C      		ori r24,lo8(-56)
230
 241 01bc 8093 7A00 		sts 122,r24
231
 242 01c0 00C0      		rjmp .L39
232
 243               	.L40:
233
 244               	/* epilogue start */
234
 245 01c2 0895      		ret
235
 247               	.global	CountMilliseconds
236
 248               	.global	CountMilliseconds
237
 249               		.section .bss
238
 252               	CountMilliseconds:
239
 253 0000 0000      		.skip 2,0
240
 254               	.global	UpdateMotor
241
 255               	.global	UpdateMotor
242
 258               	UpdateMotor:
243
 259 0002 00        		.skip 1,0
244
 260               	.global	cntKompass
245
 261               	.global	cntKompass
246
 264               	cntKompass:
247
 265 0003 0000      		.skip 2,0
248
 266               	.global	BeepTime
249
 267               	.global	BeepTime
250
 270               	BeepTime:
251
 271 0005 0000      		.skip 2,0
252
 272               	.global	BeepModulation
253
 273               		.data
254
 276               	BeepModulation:
255
 277 0000 FFFF      		.word	-1
256
 278               	.global	SendSPI
257
 279               	.global	SendSPI
258
 280               		.section .bss
259
 283               	SendSPI:
260
 284 0007 00        		.skip 1,0
261
 285               		.lcomm cnt.1520,1
262
 286               		.data
263
 289               	cnt_1ms.1519:
264
 290 0002 01        		.byte	1
265
 291               	.global __do_copy_data
266
 292               	.global __do_clear_bss
267
DEFINED SYMBOLS
268
                            *ABS*:00000000 timer0.c
269
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:2      *ABS*:0000003f __SREG__
270
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:3      *ABS*:0000003e __SP_H__
271
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:4      *ABS*:0000003d __SP_L__
272
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:5      *ABS*:00000034 __CCP__
273
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:6      *ABS*:00000000 __tmp_reg__
274
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:7      *ABS*:00000001 __zero_reg__
275
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:11     .text:00000000 TIMER0_Init
276
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:65     .text:0000005c __vector_18
277
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:283    .bss:00000007 SendSPI
278
                             .bss:00000008 cnt.1520
279
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:289    .data:00000002 cnt_1ms.1519
280
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:252    .bss:00000000 CountMilliseconds
281
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:270    .bss:00000005 BeepTime
282
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:276    .data:00000000 BeepModulation
283
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:258    .bss:00000002 UpdateMotor
284
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:160    .text:00000130 SetDelay
285
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:175    .text:00000144 CheckDelay
286
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:190    .text:00000158 Delay_ms
287
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:215    .text:00000182 Delay_ms_Mess
288
C:\DOKUME~1\LUKEPA~1\LOKALE~1\Temp/cckXHSe6.s:264    .bss:00000003 cntKompass
289
 
290
UNDEFINED SYMBOLS
291
BoardRelease
292
ADReady
293
__do_copy_data
294
__do_clear_bss