Subversion Repositories BL-Ctrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
116 - 1
   1               		.file	"analog.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
  15               	.Ltext0:
9
  16               	.global	ADC_Init
10
  18               	ADC_Init:
11
  19               	.LFB3:
12
  20               	.LM1:
13
  21               	/* prologue: function */
14
  22               	/* frame size = 0 */
15
  23               	.LM2:
16
  24 0000 86EA      		ldi r24,lo8(-90)
17
  25 0002 86B9      		out 38-32,r24
18
  26               	.LM3:
19
  27 0004 8091 0000 		lds r24,IntRef
20
  28 0008 8760      		ori r24,lo8(7)
21
  29 000a 87B9      		out 39-32,r24
22
  30               	.LM4:
23
  31 000c 369A      		sbi 38-32,6
24
  32               	/* epilogue start */
25
  33               	.LM5:
26
  34 000e 0895      		ret
27
  35               	.LFE3:
28
  37               	.global	AdConvert
29
  39               	AdConvert:
30
  40               	.LFB4:
31
  41               	.LM6:
32
  42               	/* prologue: function */
33
  43               	/* frame size = 0 */
34
  44               	.LM7:
35
  45 0010 27B1      		in r18,39-32
36
  46               	.LVL0:
37
  47               	.LM8:
38
  48 0012 9091 0000 		lds r25,IntRef
39
  49 0016 9660      		ori r25,lo8(6)
40
  50 0018 97B9      		out 39-32,r25
41
  51               	.LM9:
42
  52 001a 10BE      		out 80-32,__zero_reg__
43
  53               	.LM10:
44
  54 001c 83ED      		ldi r24,lo8(-45)
45
  55 001e 86B9      		out 38-32,r24
46
  56               	.LM11:
47
  57 0020 349A      		sbi 38-32,4
48
  58               	.LM12:
49
  59 0022 97B9      		out 39-32,r25
50
  60               	.LM13:
51
  61 0024 369A      		sbi 38-32,6
52
  62               	.L4:
53
  63               	.LM14:
54
  64 0026 349B      		sbis 38-32,4
55
  65 0028 00C0      		rjmp .L4
56
  66               	.LM15:
57
  67 002a 27B9      		out 39-32,r18
58
  68               	.LM16:
59
  69 002c 84B1      		in r24,36-32
60
  70 002e 95B1      		in r25,(36)+1-32
61
  71               	.LM17:
62
  72 0030 2091 0000 		lds r18,Strom
63
  73 0034 3091 0000 		lds r19,(Strom)+1
64
  74               	.LVL1:
65
  75 0038 A901      		movw r20,r18
66
  76               	.LVL2:
67
  77 003a 63E0      		ldi r22,3
68
  78 003c 440F      	1:	lsl r20
69
  79 003e 551F      		rol r21
70
  80 0040 6A95      		dec r22
71
  81 0042 01F4      		brne 1b
72
  82 0044 421B      		sub r20,r18
73
  83 0046 530B      		sbc r21,r19
74
  84 0048 880F      		lsl r24
75
  85 004a 991F      		rol r25
76
  86 004c 880F      		lsl r24
77
  87 004e 991F      		rol r25
78
  88 0050 480F      		add r20,r24
79
  89 0052 591F      		adc r21,r25
80
  90 0054 83E0      		ldi r24,3
81
  91 0056 5695      	1:	lsr r21
82
  92 0058 4795      		ror r20
83
  93 005a 8A95      		dec r24
84
  94 005c 01F4      		brne 1b
85
  95 005e 5093 0000 		sts (Strom)+1,r21
86
  96 0062 4093 0000 		sts Strom,r20
87
  97               	.LM18:
88
  98 0066 8091 0000 		lds r24,Strom_max
89
  99 006a 90E0      		ldi r25,lo8(0)
90
 100 006c 8417      		cp r24,r20
91
 101 006e 9507      		cpc r25,r21
92
 102 0070 00F4      		brsh .L5
93
 103 0072 4093 0000 		sts Strom_max,r20
94
 104               	.L5:
95
 105               	.LM19:
96
 106 0076 16B8      		out 38-32,__zero_reg__
97
 107               	.LM20:
98
 108 0078 88E0      		ldi r24,lo8(8)
99
 109 007a 80BF      		out 80-32,r24
100
 110               	/* epilogue start */
101
 111               	.LM21:
102
 112 007c 0895      		ret
103
 113               	.LFE4:
104
 115               	.global	MessAD
105
 117               	MessAD:
106
 118               	.LFB5:
107
 119               	.LM22:
108
 120               	.LVL3:
109
 121               	/* prologue: function */
110
 122               	/* frame size = 0 */
111
 123               	.LM23:
112
 124 007e 27B1      		in r18,39-32
113
 125               	.LVL4:
114
 126               	.LM24:
115
 127 0080 9091 0000 		lds r25,IntRef
116
 128               	.LVL5:
117
 129 0084 982B      		or r25,r24
118
 130               	.LM25:
119
 131 0086 97B9      		out 39-32,r25
120
 132               	.LM26:
121
 133 0088 10BE      		out 80-32,__zero_reg__
122
 134               	.LM27:
123
 135 008a 83ED      		ldi r24,lo8(-45)
124
 136 008c 86B9      		out 38-32,r24
125
 137               	.LM28:
126
 138 008e 349A      		sbi 38-32,4
127
 139               	.LM29:
128
 140 0090 97B9      		out 39-32,r25
129
 141               	.LM30:
130
 142 0092 369A      		sbi 38-32,6
131
 143               	.L9:
132
 144               	.LM31:
133
 145 0094 349B      		sbis 38-32,4
134
 146 0096 00C0      		rjmp .L9
135
 147               	.LM32:
136
 148 0098 27B9      		out 39-32,r18
137
 149               	.LM33:
138
 150 009a 16B8      		out 38-32,__zero_reg__
139
 151               	.LM34:
140
 152 009c 88E0      		ldi r24,lo8(8)
141
 153 009e 80BF      		out 80-32,r24
142
 154               	.LM35:
143
 155 00a0 24B1      		in r18,36-32
144
 156 00a2 35B1      		in r19,(36)+1-32
145
 157               	.LVL6:
146
 158               	.LM36:
147
 159 00a4 C901      		movw r24,r18
148
 160               	/* epilogue start */
149
 161 00a6 0895      		ret
150
 162               	.LFE5:
151
 164               	.global	FastADConvert
152
 166               	FastADConvert:
153
 167               	.LFB6:
154
 168               	.LM37:
155
 169               	/* prologue: function */
156
 170               	/* frame size = 0 */
157
 171               	.LM38:
158
 172 00a8 86E0      		ldi r24,lo8(6)
159
 173 00aa 00D0      		rcall MessAD
160
 174 00ac 9C01      		movw r18,r24
161
 175               	.LVL7:
162
 176 00ae 220F      		lsl r18
163
 177 00b0 331F      		rol r19
164
 178 00b2 220F      		lsl r18
165
 179 00b4 331F      		rol r19
166
 180 00b6 293C      		cpi r18,201
167
 181 00b8 3105      		cpc r19,__zero_reg__
168
 182 00ba 00F0      		brlo .L13
169
 183 00bc 28EC      		ldi r18,lo8(200)
170
 184 00be 30E0      		ldi r19,hi8(200)
171
 185               	.L13:
172
 186               	.LM39:
173
 187 00c0 3093 0000 		sts (Strom)+1,r19
174
 188 00c4 2093 0000 		sts Strom,r18
175
 189               	.LM40:
176
 190 00c8 8091 0000 		lds r24,Strom_max
177
 191 00cc 90E0      		ldi r25,lo8(0)
178
 192 00ce 8217      		cp r24,r18
179
 193 00d0 9307      		cpc r25,r19
180
 194 00d2 00F4      		brsh .L14
181
 195 00d4 2093 0000 		sts Strom_max,r18
182
 196               	.L14:
183
 197               	.LM41:
184
 198 00d8 16B8      		out 38-32,__zero_reg__
185
 199               	.LM42:
186
 200 00da 88E0      		ldi r24,lo8(8)
187
 201 00dc 80BF      		out 80-32,r24
188
 202               	/* epilogue start */
189
 203               	.LM43:
190
 204 00de 0895      		ret
191
 205               	.LFE6:
192
 255               	.Letext0:
193
DEFINED SYMBOLS
194
                            *ABS*:00000000 analog.c
195
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:2      *ABS*:0000003f __SREG__
196
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:3      *ABS*:0000003e __SP_H__
197
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:4      *ABS*:0000003d __SP_L__
198
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:5      *ABS*:00000034 __CCP__
199
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:6      *ABS*:00000000 __tmp_reg__
200
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:7      *ABS*:00000001 __zero_reg__
201
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:18     .text:00000000 ADC_Init
202
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:39     .text:00000010 AdConvert
203
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:117    .text:0000007e MessAD
204
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccJVp2L8.s:166    .text:000000a8 FastADConvert
205
 
206
UNDEFINED SYMBOLS
207
IntRef
208
Strom
209
Strom_max