Statistics
| Revision:

root / demos / john / projects / libdragonfly / dragonfly_lib.lst @ 1693

History | View | Annotate | Download (7.2 KB)

1
   1               		.file	"dragonfly_lib.c"
2
   2               		.arch atmega128
3
   3               	__SREG__ = 0x3f
4
   4               	__SP_H__ = 0x3e
5
   5               	__SP_L__ = 0x3d
6
   6               	__tmp_reg__ = 0
7
   7               	__zero_reg__ = 1
8
   8               		.global __do_copy_data
9
   9               		.global __do_clear_bss
10
  17               	.Ltext0:
11
  18               	.global	flash_red
12
  20               	flash_red:
13
  21               	.LFB13:
14
  22               	.LM1:
15
  23               	/* prologue: frame size=0 */
16
  24 0000 FF92      		push r15
17
  25 0002 0F93      		push r16
18
  26 0004 1F93      		push r17
19
  27               	/* prologue end (size=3) */
20
  28               	.LM2:
21
  29               	/* #APP */
22
  30 0006 F894      		cli
23
  31               	.LM3:
24
  32               	/* #NOAPP */
25
  33 0008 F4B2      		in r15,52-0x20
26
  34               	.LVL0:
27
  35               	.LM4:
28
  36 000a 05B3      		in r16,53-0x20
29
  37               	.LVL1:
30
  38               	.LM5:
31
  39 000c 87E7      		ldi r24,lo8(119)
32
  40 000e 84BB      		out 52-0x20,r24
33
  41 0010 10E0      		ldi r17,lo8(0)
34
  42               	.LVL2:
35
  43               	.L2:
36
  44               	.LM6:
37
  45 0012 87E7      		ldi r24,lo8(119)
38
  46 0014 85BB      		out 53-0x20,r24
39
  47               	.LM7:
40
  48 0016 8CE2      		ldi r24,lo8(300)
41
  49 0018 91E0      		ldi r25,hi8(300)
42
  50 001a 0E94 0000 		call delay_ms
43
  51               	.LM8:
44
  52 001e 86E6      		ldi r24,lo8(102)
45
  53 0020 85BB      		out 53-0x20,r24
46
  54               	.LM9:
47
  55 0022 8CE2      		ldi r24,lo8(300)
48
  56 0024 91E0      		ldi r25,hi8(300)
49
  57 0026 0E94 0000 		call delay_ms
50
  58               	.LM10:
51
  59 002a 1F5F      		subi r17,lo8(-(1))
52
  60 002c 1330      		cpi r17,lo8(3)
53
  61 002e 01F4      		brne .L2
54
  62               	.LM11:
55
  63 0030 F4BA      		out 52-0x20,r15
56
  64               	.LM12:
57
  65 0032 05BB      		out 53-0x20,r16
58
  66               	.LM13:
59
  67               	/* #APP */
60
  68 0034 7894      		sei
61
  69               	/* #NOAPP */
62
  70               	/* epilogue: frame size=0 */
63
  71 0036 1F91      		pop r17
64
  72 0038 0F91      		pop r16
65
  73 003a FF90      		pop r15
66
  74 003c 0895      		ret
67
  75               	/* epilogue end (size=4) */
68
  76               	/* function flash_red size 33 (26) */
69
  77               	.LFE13:
70
  79               	.global	dragonfly_init
71
  81               	dragonfly_init:
72
  82               	.LFB12:
73
  83               	.LM14:
74
  84               	/* prologue: frame size=0 */
75
  85 003e CF93      		push r28
76
  86 0040 DF93      		push r29
77
  87               	/* prologue end (size=2) */
78
  88               	.LVL3:
79
  89 0042 EC01      		movw r28,r24
80
  90               	.LM15:
81
  91               	/* #APP */
82
  92 0044 7894      		sei
83
  93               	.LM16:
84
  94               	/* #NOAPP */
85
  95 0046 8091 6400 		lds r24,100
86
  96               	.LVL4:
87
  97 004a 8C7F      		andi r24,lo8(-4)
88
  98 004c 8093 6400 		sts 100,r24
89
  99               	.LM17:
90
 100 0050 8091 6500 		lds r24,101
91
 101 0054 8360      		ori r24,lo8(3)
92
 102 0056 8093 6500 		sts 101,r24
93
 103               	.LM18:
94
 104 005a C0FF      		sbrs r28,0
95
 105 005c 00C0      		rjmp .L8
96
 106               	.LM19:
97
 107 005e 81E0      		ldi r24,lo8(1)
98
 108 0060 90E0      		ldi r25,hi8(1)
99
 109 0062 0E94 0000 		call analog_init
100
 110               	.L8:
101
 111               	.LM20:
102
 112 0066 C1FF      		sbrs r28,1
103
 113 0068 00C0      		rjmp .L10
104
 114               	.LM21:
105
 115 006a 0E94 0000 		call usb_init
106
 116               	.LM22:
107
 117 006e 0E94 0000 		call xbee_init
108
 118               	.L10:
109
 119               	.LM23:
110
 120 0072 C6FF      		sbrs r28,6
111
 121 0074 00C0      		rjmp .L12
112
 122               	.LM24:
113
 123               	/* #APP */
114
 124 0076 7894      		sei
115
 125               	.LM25:
116
 126               	/* #NOAPP */
117
 127 0078 0E94 0000 		call buzzer_init
118
 128               	.L12:
119
 129               	.LM26:
120
 130 007c C2FF      		sbrs r28,2
121
 131 007e 00C0      		rjmp .L14
122
 132               	.LM27:
123
 133               	/* #APP */
124
 134 0080 7894      		sei
125
 135               	.LM28:
126
 136               	/* #NOAPP */
127
 137 0082 0E94 0000 		call orb_init
128
 138               	.L14:
129
 139               	.LM29:
130
 140 0086 C3FF      		sbrs r28,3
131
 141 0088 00C0      		rjmp .L16
132
 142               	.LM30:
133
 143 008a 0E94 0000 		call motors_init
134
 144               	.L16:
135
 145               	.LM31:
136
 146 008e C7FF      		sbrs r28,7
137
 147 0090 00C0      		rjmp .L18
138
 148               	.LM32:
139
 149 0092 0E94 0000 		call lcd_init
140
 150               	.L18:
141
 151               	.LM33:
142
 152 0096 D0FF      		sbrs r29,0
143
 153 0098 00C0      		rjmp .L20
144
 154               	.LM34:
145
 155 009a 0E94 0000 		call range_init
146
 156               	.L20:
147
 157               	.LM35:
148
 158 009e D1FF      		sbrs r29,1
149
 159 00a0 00C0      		rjmp .L22
150
 160               	.LBB9:
151
 161               	.LM36:
152
 162 00a2 0E94 0000 		call get_bom_type
153
 163               	.LVL5:
154
 164               	.LM37:
155
 165 00a6 8F3F      		cpi r24,lo8(-1)
156
 166 00a8 01F4      		brne .L24
157
 167               	.LM38:
158
 168 00aa 0E94 0000 		call flash_red
159
 169               	.LVL6:
160
 170 00ae 00C0      		rjmp .L22
161
 171               	.LVL7:
162
 172               	.L24:
163
 173               	.LM39:
164
 174 00b0 0E94 0000 		call bom_init
165
 175               	.LVL8:
166
 176               	.L22:
167
 177               	.LBE9:
168
 178               	.LM40:
169
 179 00b4 D2FF      		sbrs r29,2
170
 180 00b6 00C0      		rjmp .L26
171
 181               	.LM41:
172
 182 00b8 0E94 0000 		call encoders_init
173
 183               	.L26:
174
 184               	.LBB10:
175
 185               	.LBB11:
176
 186               	.LBB12:
177
 187               	.LBB13:
178
 188               	.LM42:
179
 189 00bc 80EA      		ldi r24,lo8(4000)
180
 190 00be 9FE0      		ldi r25,hi8(4000)
181
 191               	.LVL9:
182
 192               	/* #APP */
183
 193 00c0 0197      		1: sbiw r24,1
184
 194 00c2 01F4      		brne 1b
185
 195               	/* #NOAPP */
186
 196               	.LBE13:
187
 197               	.LBE12:
188
 198               	.LBE11:
189
 199               	.LBE10:
190
 200               	/* epilogue: frame size=0 */
191
 201 00c4 DF91      		pop r29
192
 202 00c6 CF91      		pop r28
193
 203 00c8 0895      		ret
194
 204               	/* epilogue end (size=3) */
195
 205               	/* function dragonfly_init size 75 (70) */
196
 206               	.LFE12:
197
 240               	.Letext0:
198
DEFINED SYMBOLS
199
                            *ABS*:00000000 dragonfly_lib.c
200
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:3      *ABS*:0000003f __SREG__
201
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:4      *ABS*:0000003e __SP_H__
202
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:5      *ABS*:0000003d __SP_L__
203
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:6      *ABS*:00000000 __tmp_reg__
204
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:7      *ABS*:00000001 __zero_reg__
205
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:20     .text:00000000 flash_red
206
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccXsoF8M.s:81     .text:0000003e dragonfly_init
207

    
208
UNDEFINED SYMBOLS
209
__do_copy_data
210
__do_clear_bss
211
delay_ms
212
analog_init
213
usb_init
214
xbee_init
215
buzzer_init
216
orb_init
217
motors_init
218
lcd_init
219
range_init
220
get_bom_type
221
bom_init
222
encoders_init