📄 sine.asm
字号:
;sine caculator
;Sep 30,08
;designed by lzp
;the routine is for sine wave caculation,
;with x values stored inside the DATA segment
;the following equation
;sinx=x-1/3!x^3+1/5!x^5-1/7!x^7+1/9!x^9+...
;was employed to compute the sine value correspond precisely to x
;
;however,the equation is not efficient enough
;so we use another formula to improve the performance
;here
;sinx=x(1+x^2(-1/3!+x^2(1/5!+x^2(-1/7!+x^2(...)))))
;
;the number of items inside the brackets deponds on the accuracy required
;and the range of the datas
.title "sine.asm"
.mmregs
.global _c_int00
.include "sine.inc"
; .include "x.dat" ;DEBUG
STACK .usect "stack",stacksize ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -