echo.asm

来自「給 DSK5510 DIP LED AIC23」· 汇编 代码 · 共 48 行

ASM
48
字号
************************************************************
* echo.asm
*-----------------------------------------------------------
* Objective:
*	Set the address of circular Buffer.
*-----------------------------------------------------------
* By Jwusheng Hu, Tzung-Min Su, Wei-Han Liu, Ming-Chien Tsai
*  	 			                       CopyRight  2004/08/03
************************************************************


			.global	_echo
			.mmregs
			.data
X			.word   26214
			.text
			.c54cm_off
_echo           
     
loop:
		    BCLR C54CM
		    BSET FRCT		   
			;MOV	 #0199H,AR6		    		   
		    MOV	 *AR0,AR4 ; *AR0 is the location of signal samples, in_addr
		    MOV	 *AR1,AR2 ; *AR1 is the location of delayed samples, out_addr
		    ;AMAR  *AR2+;
		    ;AMAR  *AR2-;
		    ;AMAR  *AR4+;
		    ;AMAR  *AR4-;
		    MOV  	T0,*AR2+ ; T0 is the location of 128 delayed samples
		    MOV  	#X,CDP
		    MOV		#0,AC1
			MPYM 	*AR4+,*CDP,AC1
			;MOV  *AR4+,AC1
			MOV  	mmap(@AC1H),AC0
			MOV		#0,AC1
			MOV		T0,AC1
			ADD  	AC1,AC0
			SFTS 	AC0,#-1,AC0  
			MOV  mmap(@AC0L),T0 ; AR4 is the location of samples for playing
			
			MOV	 AR4,*AR0 ; Setting next location of samples for playing
		    MOV	 AR2,*AR1 ; Setting next location of 4000 delayed samples
			BCLR FRCT
			RET

			.end   
	

⌨️ 快捷键说明

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