📄 echo.asm
字号:
************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -