www.pudn.com > g729Decoder.rar > Test.asm


        .mmregs 
        .include  ../include/struct.h 
        .include  ../include/const.h 
        .include  ../include/ld8amem.h 
 
PortIn   .set    4080h 
PortOut1 .set    4090h 
PortOut2 .set    4091h 
PortOut3 .set    4092h 
 
        .def    ReadInput 
        .def    WriteOutput 
 
        .def    WriteOutput2 
 
        .text 
 
ReadInput: 
        MVDM    ptr_new_speech, AR3 
        RPT     #L_FRAME - 1 
        PORTR   PortIn, *AR3+ 
 
        RET 
WriteOutput: 
	STM #CodeWord,AR3 
	RPT #11-1 
		PORTW *AR3+,PortOut1 
	RET 
 
WriteOutput0: 
        STM     #Addr_lpc_coefQ12, AR3 
        RPT     #10 - 1 
                PORTW   *AR3+, PortOut1 
 
        STM     #Addr_RCoef, AR3 
        STM     #2, AR0 
        RPT     #10 - 1 
                PORTW   *AR3+0, PortOut2 
 
 
        RET 
 
WriteOutput2 
        STM     #Addr_CorrCoef1, AR3 
        STM     #M, BRC 
        STM     #AL, AR2 
        RPTB    EndSaveLagWin-1 
 
                PORTW   *AR3+, PortOut3 
                LDU     *AR3+, A 
                LD      A, -1, A 
                PORTW   *AR2, PortOut3 
EndSaveLagWin: 
 
        RET