lab4d.asm

来自「一些在CCS上可以运行的初级DSP汇编程序」· 汇编 代码 · 共 32 行

ASM
32
字号
;lab4d.asm
	    .title	"lab4d.asm"
	    .def	start
table:	.word	4000h	;x3
	    .word	0f000h	;x2
	    .word	0f000h	;x1
	    .word	0f000h	;x0
	    .word	4000h	;y3
	    .word	3000h	;y2
	    .word	2000h	;y1
	    .word	1000h	;y0
	    .bss 	x,4
	    .bss	y,4
	    .bss	z,4
	    .text
start:	STM	 #x,AR1
	    RPT	 #7	
	    MVPD table,*AR1+
;*****************************
    	LD	 #x,DP
	    DLD	 @x+2,A
	    DADD @y+2,A
	    DLD	 @x,B
	    ADDC @y+1,B
	    ADD	 @y,16,B
;*****************************
    	STL	 A,@z+3
    	STH	 A,@z+2
	    STL	 B,@z+1
	    STH	 B,@z
here:	B	 here
	    .end

⌨️ 快捷键说明

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