#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;
	
