Subversion Repositories FlightCtrl

Rev

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

Rev Author Line No. Line
1755 - 1
   1               		.file	"mymath.c"
1789 - 2
   2               	__SREG__ = 0x3f
3
   3               	__SP_H__ = 0x3e
4
   4               	__SP_L__ = 0x3d
5
   5               	__CCP__  = 0x34
1755 - 6
   6               	__tmp_reg__ = 0
7
   7               	__zero_reg__ = 1
1789 - 8
   8               		.text
9
   9               	.global	c_sin_8192
10
  11               	c_sin_8192:
11
  12               	/* prologue: function */
12
  13               	/* frame size = 0 */
13
  14 0000 97FD      		sbrc r25,7
14
  15 0002 00C0      		rjmp .L2
15
  16 0004 41E0      		ldi r20,lo8(1)
16
  17 0006 00C0      		rjmp .L3
17
  18               	.L2:
18
  19 0008 9095      		com r25
19
  20 000a 8195      		neg r24
20
  21 000c 9F4F      		sbci r25,lo8(-1)
21
  22 000e 4FEF      		ldi r20,lo8(-1)
22
  23               	.L3:
23
  24 0010 68E6      		ldi r22,lo8(360)
24
  25 0012 71E0      		ldi r23,hi8(360)
25
  26 0014 0E94 0000 		call __divmodhi4
26
  27 0018 9C01      		movw r18,r24
27
  28 001a 8B35      		cpi r24,91
28
  29 001c 9105      		cpc r25,__zero_reg__
29
  30 001e 04F0      		brlt .L9
30
  31               	.L4:
31
  32 0020 8B55      		subi r24,lo8(-(-91))
32
  33 0022 9040      		sbci r25,hi8(-(-91))
33
  34 0024 8A35      		cpi r24,90
34
  35 0026 9105      		cpc r25,__zero_reg__
35
  36 0028 00F4      		brsh .L6
36
  37 002a 84EB      		ldi r24,lo8(180)
37
  38 002c 90E0      		ldi r25,hi8(180)
38
  39 002e BC01      		movw r22,r24
39
  40 0030 621B      		sub r22,r18
40
  41 0032 730B      		sbc r23,r19
41
  42 0034 9B01      		movw r18,r22
42
  43               	.L9:
43
  44 0036 81E0      		ldi r24,lo8(1)
44
  45 0038 00C0      		rjmp .L5
45
  46               	.L6:
46
  47 003a C901      		movw r24,r18
47
  48 003c 855B      		subi r24,lo8(-(-181))
48
  49 003e 9040      		sbci r25,hi8(-(-181))
49
  50 0040 8A35      		cpi r24,90
50
  51 0042 9105      		cpc r25,__zero_reg__
51
  52 0044 00F4      		brsh .L7
52
  53 0046 245B      		subi r18,lo8(-(-180))
53
  54 0048 3040      		sbci r19,hi8(-(-180))
54
  55 004a 00C0      		rjmp .L10
55
  56               	.L7:
56
  57 004c 88E6      		ldi r24,lo8(360)
57
  58 004e 91E0      		ldi r25,hi8(360)
58
  59 0050 BC01      		movw r22,r24
59
  60 0052 621B      		sub r22,r18
60
  61 0054 730B      		sbc r23,r19
61
  62 0056 9B01      		movw r18,r22
62
  63               	.L10:
63
  64 0058 8FEF      		ldi r24,lo8(-1)
64
  65               	.L5:
65
  66 005a F901      		movw r30,r18
66
  67 005c EE0F      		lsl r30
67
  68 005e FF1F      		rol r31
68
  69 0060 E050      		subi r30,lo8(-(pgm_sinlookup))
69
  70 0062 F040      		sbci r31,hi8(-(pgm_sinlookup))
70
  71               	/* #APP */
71
  72               	 ;  32 "mymath.c" 1
72
  73 0064 2591      		lpm r18, Z+
73
  74 0066 3491      		lpm r19, Z
74
  75
75
  76               	 ;  0 "" 2
76
  77               	/* #NOAPP */
77
  78 0068 9927      		clr r25
78
  79 006a 87FD      		sbrc r24,7
79
  80 006c 9095      		com r25
80
  81 006e B901      		movw r22,r18
81
  82 0070 689F      		mul r22,r24
82
  83 0072 9001      		movw r18,r0
83
  84 0074 699F      		mul r22,r25
84
  85 0076 300D      		add r19,r0
85
  86 0078 789F      		mul r23,r24
86
  87 007a 300D      		add r19,r0
87
  88 007c 1124      		clr r1
88
  89 007e 842F      		mov r24,r20
89
  90 0080 9927      		clr r25
90
  91 0082 87FD      		sbrc r24,7
91
  92 0084 9095      		com r25
92
  93 0086 A901      		movw r20,r18
93
  94 0088 489F      		mul r20,r24
94
  95 008a 9001      		movw r18,r0
95
  96 008c 499F      		mul r20,r25
96
  97 008e 300D      		add r19,r0
97
  98 0090 589F      		mul r21,r24
98
  99 0092 300D      		add r19,r0
99
 100 0094 1124      		clr r1
100
 101 0096 C901      		movw r24,r18
101
 102               	/* epilogue start */
102
 103 0098 0895      		ret
103
 105               	.global	c_cos_8192
104
 107               	c_cos_8192:
105
 108               	/* prologue: function */
106
 109               	/* frame size = 0 */
107
 110 009a 2AE5      		ldi r18,lo8(90)
108
 111 009c 30E0      		ldi r19,hi8(90)
109
 112 009e A901      		movw r20,r18
110
 113 00a0 481B      		sub r20,r24
111
 114 00a2 590B      		sbc r21,r25
112
 115 00a4 CA01      		movw r24,r20
113
 116 00a6 0E94 0000 		call c_sin_8192
114
 117               	/* epilogue start */
115
 118 00aa 0895      		ret
116
 120               	.global	pgm_sinlookup
117
 121               		.section	.progmem.data,"a",@progbits
118
 124               	pgm_sinlookup:
119
 125 0000 0000      		.word	0
120
 126 0002 8F00      		.word	143
121
 127 0004 1E01      		.word	286
122
 128 0006 AD01      		.word	429
123
 129 0008 3B02      		.word	571
124
 130 000a CA02      		.word	714
125
 131 000c 5803      		.word	856
126
 132 000e E603      		.word	998
127
 133 0010 7404      		.word	1140
128
 134 0012 0205      		.word	1282
129
 135 0014 8F05      		.word	1423
130
 136 0016 1B06      		.word	1563
131
 137 0018 A706      		.word	1703
132
 138 001a 3307      		.word	1843
133
 139 001c BE07      		.word	1982
134
 140 001e 4808      		.word	2120
135
 141 0020 D208      		.word	2258
136
 142 0022 5B09      		.word	2395
137
 143 0024 E309      		.word	2531
138
 144 0026 6B0A      		.word	2667
139
 145 0028 F20A      		.word	2802
140
 146 002a 780B      		.word	2936
141
 147 002c FD0B      		.word	3069
142
 148 002e 810C      		.word	3201
143
 149 0030 040D      		.word	3332
144
 150 0032 860D      		.word	3462
145
 151 0034 070E      		.word	3591
146
 152 0036 870E      		.word	3719
147
 153 0038 060F      		.word	3846
148
 154 003a 840F      		.word	3972
149
 155 003c 0010      		.word	4096
150
 156 003e 7B10      		.word	4219
151
 157 0040 F510      		.word	4341
152
 158 0042 6E11      		.word	4462
153
 159 0044 E511      		.word	4581
154
 160 0046 5B12      		.word	4699
155
 161 0048 CF12      		.word	4815
156
 162 004a 4213      		.word	4930
157
 163 004c B313      		.word	5043
158
 164 004e 2314      		.word	5155
159
 165 0050 9214      		.word	5266
160
 166 0052 FE14      		.word	5374
161
 167 0054 6A15      		.word	5482
162
 168 0056 D315      		.word	5587
163
 169 0058 3B16      		.word	5691
164
 170 005a A116      		.word	5793
165
 171 005c 0517      		.word	5893
166
 172 005e 6717      		.word	5991
167
 173 0060 C817      		.word	6088
168
 174 0062 2718      		.word	6183
169
 175 0064 8318      		.word	6275
170
 176 0066 DE18      		.word	6366
171
 177 0068 3719      		.word	6455
172
 178 006a 8E19      		.word	6542
173
 179 006c E319      		.word	6627
174
 180 006e 361A      		.word	6710
175
 181 0070 871A      		.word	6791
176
 182 0072 D61A      		.word	6870
177
 183 0074 231B      		.word	6947
178
 184 0076 6E1B      		.word	7022
179
 185 0078 B61B      		.word	7094
180
 186 007a FD1B      		.word	7165
181
 187 007c 411C      		.word	7233
182
 188 007e 831C      		.word	7299
183
 189 0080 C31C      		.word	7363
184
 190 0082 001D      		.word	7424
185
 191 0084 3C1D      		.word	7484
186
 192 0086 751D      		.word	7541
187
 193 0088 AB1D      		.word	7595
188
 194 008a E01D      		.word	7648
189
 195 008c 121E      		.word	7698
190
 196 008e 421E      		.word	7746
191
 197 0090 6F1E      		.word	7791
192
 198 0092 9A1E      		.word	7834
193
 199 0094 C31E      		.word	7875
194
 200 0096 E91E      		.word	7913
195
 201 0098 0D1F      		.word	7949
196
 202 009a 2E1F      		.word	7982
197
 203 009c 4D1F      		.word	8013
198
 204 009e 691F      		.word	8041
199
 205 00a0 841F      		.word	8068
200
 206 00a2 9B1F      		.word	8091
201
 207 00a4 B01F      		.word	8112
202
 208 00a6 C31F      		.word	8131
203
 209 00a8 D31F      		.word	8147
204
 210 00aa E11F      		.word	8161
205
 211 00ac EC1F      		.word	8172
206
 212 00ae F51F      		.word	8181
207
 213 00b0 FB1F      		.word	8187
208
 214 00b2 FF1F      		.word	8191
209
 215 00b4 0020      		.word	8192
1755 - 210
DEFINED SYMBOLS
211
                            *ABS*:00000000 mymath.c
1789 - 212
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:2      *ABS*:0000003f __SREG__
213
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:3      *ABS*:0000003e __SP_H__
214
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:4      *ABS*:0000003d __SP_L__
215
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:5      *ABS*:00000034 __CCP__
216
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:6      *ABS*:00000000 __tmp_reg__
217
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:7      *ABS*:00000001 __zero_reg__
218
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:11     .text:00000000 c_sin_8192
219
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:124    .progmem.data:00000000 pgm_sinlookup
220
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccAR78Pj.s:107    .text:0000009a c_cos_8192
1755 - 221
 
222
UNDEFINED SYMBOLS
223
__divmodhi4