⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sine.asm

📁 里面是一个初级的正弦值计算程序
💻 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 + -