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


	.mmregs 
	 
	.include	..\include\const.h 
	.include	..\include\ld8amem.h 
	 
	.text 
	.ref	G729A_encoder 
    .ref 	SelEncChannel 
    .ref 	ResetEncChannel 
 
	.def   	Begin 
  	.def   	End 
    .def    _main 
 
    .data 
 
	.def	mG729ABuf 
mG729ABuf	.usect	"G729ABuf",783,0,0 
stack           .usect  "STACK", 200, 0 
 
	.text 
;*************************************************************** 
;* FUNCTION DEF: _main                                         * 
;*************************************************************** 
_main: 
          STM       #stack+200, SP 
         ANDM      #0xfffe, *(SP) 
         ST	   	#0, *(framenum) 
 
         LD        #mG729ABuf,A 
         CALL      SelEncChannel 
         CALL      ResetEncChannel 
 
Begin: 
 
	CMPM	*(framenum), #3750 
	NOP 
	BC		End, TC	 
    NOP 
    NOP 
    CALL      G729A_encoder 
    NOP 
    NOP 
    LD		*(framenum), A 
    ADD		#1, A 
    BD		Begin 
    STL		A, *(framenum) 
 
End: 
	RET