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