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

📄 factclasmfunc.sa

📁 本文件囊括了数字信号处理常用滤波器的C语言程序。For each project example, a folder is available that contains appropriate fi
💻 SA
字号:
;Factclasmfunc.sa Linear ASM function called from C to find factorial
      
      	    .ref	_factclasmfunc ;Linear ASM func called from C
_factclasmfunc: .cproc	number	   ;start of linear ASM function
		    .reg	a,b            ;asm optimizer directive
		    mv	number,b       ;set-up loop count in b
		    mv  	number,a       ;move number to a
		    sub     b,1,b          ;decrement loop counter

loop:		    mpy	a,b,a     	   ;n(n-1)
		    sub	b,1,b          ;decrement loop counter  
   [b] 	    b		loop       	   ;loop back to loop if count # 0
		    .return	a              ;result to calling function
		    .endproc               ;end of linear asm function
				

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -