sine.asm
来自「里面是一个初级的正弦值计算程序」· 汇编 代码 · 共 28 行
ASM
28 行
;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 + =
减小字号Ctrl + -
显示快捷键?