;************************************************************************** ; ; Filename: dsp.asm ; ; Author: Ronald Bazillion ; ; Module Description: ; ; This module takes the input data from the codec ; and passes it back to the codec for D/A conversion ; ;************************************************************************** include 'init.asm' org p: MAIN ;Entry point from initialization routine loop wait_frame ;Macro call to wait for RX frame. get_left_channel ;get left channel data. Data is in x0 get_right_channel ;get right channel data. data is in y0 move x0,a ;place input data into output data buffer. move y0,b ;For other applications, your code should; ;go here. transmit_left_channel ;Transmit left channel data. Data to be ;transmitted is in accumulator a1. transmit_right_channel ;Transmit right channel data. Data to be ;transmitted is in accumulator b1. jmp loop