timer.asm

来自「基于CCS2.0的dsp5402的MCBSP的测试小程序(汇编)」· 汇编 代码 · 共 48 行

ASM
48
字号
        .title "iostrb"
        .mmregs
        .def loop_pro
        .def _c_int00
		.ref reset_pro
D_PMST  .usect 	"pmst",1
K_IPTR  .set 	000100000b<<7
K_TEMP  .set 	111111b
K_SUM   .set 	0
drom	.set 	3
spcr1 	.set 	0
spcr2 	.set 	1
pcr 	.set 	0eh
spsa0 	.set 	38h
spsd0 	.set 	39h
spsa1 	.set 	48h
spsd1 	.set 	49h

        .sect "prog"

_c_int00:
		LDM		PMST,A
		AND 	#K_TEMP,A
		OR 		#K_IPTR,A
		STL		A,AR6
		MVDM	AR6,PMST
;

loop_pro:	
		stm spcr1,	spsa0
		stm #0000h,	spsd0
		stm spcr2,	spsa0
		stm #0000h,	spsd0
		stm spcr1,	spsa1
		stm #0000h,	spsd1
		stm spcr2,	spsa1
		stm #0000h,	spsd1
		stm pcr,	spsa0
		stm #3F00h,	spsd0
		stm pcr,	spsa1
		stm #3f00h,	spsd1
BSPAGAIN:
		stm #3FFFH, spsd0
		stm #3FFFH,	spsd1
		stm #3F00h,	spsd0
		stm #3F00h,	spsd1
		b BSPAGAIN
		.end

⌨️ 快捷键说明

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