Subversion Repositories FlightCtrl

Rev

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

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

UNDEFINED SYMBOLS
__divmodhi4