process_data.asm
来自「基于visual dsp++开发环境」· 汇编 代码 · 共 35 行
ASM
35 行
#include "Talkthrough.h"
/*****************************************************************************
Function: Process_Data
Description: This function is called from inside the SPORT0 ISR every
time a complete audio frame has been received. The new
input samples can be found in the variables Channel0LeftIn,
Channel0RightIn, Channel1LeftIn and Channel1RightIn
respectively. The processed data should be stored in
Channel0LeftOut, Channel0RightOut, Channel1LeftOut,
Channel1RightOut, Channel2LeftOut and Channel2RightOut
respectively.
******************************************************************************/
.section L1_code;
Process_Data:
P0.H = hi(Channel0LeftIn);
P0.L = lo(Channel0LeftIn);
R0 = [ P0 ];
P1.H = hi(Channel0LeftOut);
P1.L = lo(Channel0LeftOut);
[ P1 ] = R0;
P0.H = hi(Channel0RightIn);
P0.L = lo(Channel0RightIn);
R0 = [ P0 ];
P1.H = hi(Channel0RightOut);
P1.L = lo(Channel0RightOut);
[ P1 ] = R0;
Process_Data.END:
RTS;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?