www.pudn.com > g729a.rar > TAMING.asm, change:2005-08-22,size:15872b


;*************************************************************** 
;* TMS320C54x C/C++ Codegen                   PC Version 3.83  * 
;* Date/Time created: Mon Aug 22 19:45:37 2005                 * 
;*************************************************************** 
	.mmregs 
FP	.set	AR7 
	.c_mode 
	.file	"TAMING.C" 
	.bss	_L_exc_err,8,0,2 
	.sym	_L_exc_err,_L_exc_err, 53, 3, 128,, 4 
;	d:\program files\ti\c5400\cgtools\bin\opt500.exe -i15 -q -O3 C:\DOCUME~1\ltd\LOCALS~1\Temp\TI280_2 C:\DOCUME~1\ltd\LOCALS~1\Temp\TI280_5 -w e:/ata_work_dir/g729a_v1.7_src/G729a_v1_7/Debug  
 
	.sect	".text" 
	.global	_update_exc_err 
	.sym	_update_exc_err,_update_exc_err, 32, 2, 0 
	.func	79 
 
;*************************************************************** 
;* FUNCTION DEF: _update_exc_err                               * 
;*************************************************************** 
 
;*************************************************************** 
;*                                                             * 
;* Using -g (debug) with optimization (-o3) may disable key op * 
;*                                                             * 
;*************************************************************** 
_update_exc_err: 
	.line	5 
;* A     assigned to _gain_pit 
	.sym	_gain_pit,0, 3, 17, 16 
	.sym	_T0,12, 3, 9, 16 
;* BRC   assigned to L$2 
;* A     assigned to L$2 
	.sym	_L_temp,6, 5, 1, 32 
	.sym	_L_temp,6, 5, 1, 32 
	.sym	_L_temp,6, 5, 1, 32 
;* A     assigned to _L_acc 
	.sym	_L_acc,0, 5, 4, 32 
;* A     assigned to _L_acc 
	.sym	_L_acc,0, 5, 4, 32 
;* A     assigned to _L_acc 
	.sym	_L_acc,0, 5, 4, 32 
;* AR1   assigned to U$28 
;* AR1   assigned to U$28 
;* AR7   assigned to _gain_pit 
	.sym	_gain_pit,16, 3, 4, 16 
;* AR1   assigned to _T0 
	.sym	_T0,10, 3, 4, 16 
	.sym	_L_worst,4, 5, 1, 32 
	.sym	_hi,2, 3, 1, 16 
	.sym	_lo,3, 3, 1, 16 
;* AR6   assigned to L$1 
;* A     assigned to A$4 
;* B     assigned to C$3 
;* B     assigned to C$2 
;* AR2   assigned to C$1 
        PSHM      AR1 
        PSHM      AR6 
        PSHM      AR7 
        FRAME     #-8 
        NOP 
        MVDK      *SP(12),*(AR1) 
        STLM      A,AR7 
	.line	11 
        RSBX      OVM 
        SSBX      SXM 
        NOP 
        LD        #-1,16,A              ; |89|  
        OR        #65535,A,A            ; |89|  
        DST       A,*SP(4)              ; |89|  
	.line	14 
        LD        *(AR1),A              ; |92|  
        SUB       #40,A,A               ; |92|  
        BC        L3,ALT                ; |92|  
        ; branch occurs ; |92|  
	.line	40 
        LD        *(AR1),16,A           ; |118|  
        SSBX      OVM 
        LD        #_tab_zone,B 
        SUB       #1,16,A,A             ; |118|  
        RSBX      OVM 
        SFTA      A,-16,A               ; |118|  
        ADD       B,A                   ; |118|  
        STLM      A,AR2 
        LD        *(AR1),16,A           ; |118|  
        SSBX      OVM 
        NOP 
        SUB       #40,16,A,A            ; |118|  
        RSBX      OVM 
        SFTA      A,-16,A               ; |118|  
        ADD       B,A                   ; |118|  
        STLM      A,AR1 
        NOP 
        MVDK      *AR2,*(AR2) 
        LD        *AR1,B 
        LD        *(BL),A               ; |118|  
        SUB       *(AR2),A              ; |118|  
        BC        L5,AGT                ; |118|  
        ; branch occurs ; |118|  
        SFTL      B,#1,A 
        ADD       #_L_exc_err,A,A 
        STLM      A,AR1 
        LDM       AR2,A 
        SUB       B,A 
        ADD       #1,A,A 
        STLM      A,AR6 
L1:     
	.line	41 
        LDM       SP,A 
        ADD       #2,A 
        STL       A,*SP(0) 
        RSBX      FRCT 
        LDM       SP,A 
        ADD       #3,A 
        STL       A,*SP(1) 
        DLD       *AR1+,A               ; |119|  
        CALL      #_L_Extract           ; |119|  
        ; call occurs [#_L_Extract] ; |119|  
	.line	42 
        LD        *SP(3),A 
        RSBX      FRCT 
        RSBX      OVM 
        STL       A,*SP(0) 
        MVKD      *(AR7),*SP(1) 
        LD        *SP(2),A 
        CALL      #_Mpy_32_16           ; |120|  
        ; call occurs [#_Mpy_32_16] ; |120|  
	.line	43 
        RSBX      FRCT 
        RSBX      OVM 
        ST        #1,*SP(0)             ; |121|  
        CALL      #_L_shl               ; |121|  
        ; call occurs [#_L_shl] ; |121|  
	.line	44 
        RSBX      SXM 
        SSBX      OVM 
        LD        #16384,B 
        ADD       A,B                   ; |122|  
        DST       B,*SP(6)              ; |122|  
	.line	45 
        RSBX      OVM 
        NOP 
        DLD       *SP(4),A 
        RSBX      FRCT 
        DST       A,*SP(0)              ; |123|  
        CALLD     #_L_sub               ; |123|  
        NOP 
        LD        B,A                   ; |123|  
        ; call occurs [#_L_sub] ; |123|  
        RSBX      OVM 
        SSBX      SXM 
        SFTA      A,8                   ; |123|  
        SFTA      A,-8                  ; |123|  
        BC        L2,ALEQ               ; |123|  
        ; branch occurs ; |123|  
	.line	46 
        DLD       *SP(6),A 
        DST       A,*SP(4)              ; |124|  
L2:     
	.line	47 
        BANZ      L1,*+AR6(-1)          ; |125|  
        ; branch occurs ; |125|  
        B         L5                    ; |125|  
        ; branch occurs ; |125|  
L3:     
	.line	15 
        LDM       SP,A 
        ADD       #2,A 
        STL       A,*SP(0) 
        RSBX      FRCT 
        LDM       SP,A 
        ADD       #3,A 
        STL       A,*SP(1) 
        DLD       *(_L_exc_err),A       ; |93|  
        CALL      #_L_Extract           ; |93|  
        ; call occurs [#_L_Extract] ; |93|  
	.line	16 
        LD        *SP(3),A 
        RSBX      FRCT 
        RSBX      OVM 
        STL       A,*SP(0) 
        MVKD      *(AR7),*SP(1) 
        LD        *SP(2),A 
        CALL      #_Mpy_32_16           ; |94|  
        ; call occurs [#_Mpy_32_16] ; |94|  
	.line	17 
        RSBX      FRCT 
        RSBX      OVM 
        ST        #1,*SP(0)             ; |95|  
        CALL      #_L_shl               ; |95|  
        ; call occurs [#_L_shl] ; |95|  
	.line	18 
        SSBX      OVM 
        RSBX      SXM 
        LD        #16384,B 
        ADD       A,B                   ; |96|  
        DST       B,*SP(6)              ; |96|  
	.line	19 
        SSBX      SXM 
        NOP 
        LD        #-1,A 
        RSBX      FRCT 
        RSBX      OVM 
        DST       A,*SP(0)              ; |97|  
        CALLD     #_L_sub               ; |97|  
        NOP 
        LD        B,A                   ; |97|  
        ; call occurs [#_L_sub] ; |97|  
        RSBX      OVM 
        SSBX      SXM 
        SFTA      A,8                   ; |97|  
        SFTA      A,-8                  ; |97|  
        BC        L4,ALEQ               ; |97|  
        ; branch occurs ; |97|  
	.line	21 
        DLD       *SP(6),A 
        DST       A,*SP(4)              ; |99|  
L4:     
	.line	23 
        LDM       SP,A 
        ADD       #2,A 
        STL       A,*SP(0) 
        RSBX      FRCT 
        LDM       SP,A 
        ADD       #3,A 
        STL       A,*SP(1) 
        DLD       *SP(6),A              ; |101|  
        CALL      #_L_Extract           ; |101|  
        ; call occurs [#_L_Extract] ; |101|  
	.line	24 
        LD        *SP(3),A 
        RSBX      FRCT 
        RSBX      OVM 
        STL       A,*SP(0) 
        MVKD      *(AR7),*SP(1) 
        LD        *SP(2),A 
        CALL      #_Mpy_32_16           ; |102|  
        ; call occurs [#_Mpy_32_16] ; |102|  
	.line	25 
        RSBX      FRCT 
        RSBX      OVM 
        ST        #1,*SP(0)             ; |103|  
        CALL      #_L_shl               ; |103|  
        ; call occurs [#_L_shl] ; |103|  
	.line	26 
        RSBX      SXM 
        SSBX      OVM 
        LD        #16384,B 
        ADD       A,B                   ; |104|  
        DST       B,*SP(6)              ; |104|  
	.line	27 
        RSBX      OVM 
        NOP 
        DLD       *SP(4),A 
        RSBX      FRCT 
        DST       A,*SP(0)              ; |105|  
        CALLD     #_L_sub               ; |105|  
        NOP 
        LD        B,A                   ; |105|  
        ; call occurs [#_L_sub] ; |105|  
        RSBX      OVM 
        SSBX      SXM 
        SFTA      A,8                   ; |105|  
        SFTA      A,-8                  ; |105|  
        BC        L5,ALEQ               ; |105|  
        ; branch occurs ; |105|  
	.line	29 
        DLD       *SP(6),A 
        DST       A,*SP(4)              ; |107|  
L5:     
        STM       #_L_exc_err+6,AR1 
        STM       #2,BRC 
        RPTB      L7-1 
        ; loop starts 
L6:     
	.line	51 
        DLD       *AR1(-2),A            ; |129|  
        DST       A,*AR1-               ; |129|  
	.line	52 
        ; loop ends ; |130|  
L7:     
	.line	53 
        DLD       *SP(4),A 
        DST       A,*(_L_exc_err)       ; |131|  
	.line	55 
	.line	56 
        ANDM      #-833,*(ST1) 
        ANDM      #-4,*(PMST) 
        FRAME     #8 
        POPM      AR7 
        POPM      AR6 
        POPM      AR1 
        RET 
        ; return occurs 
	.endfunc	134,000018400h,11 
 
 
 
	.sect	".text" 
	.global	_test_err 
	.sym	_test_err,_test_err, 35, 2, 0 
	.func	33 
 
;*************************************************************** 
;* FUNCTION DEF: _test_err                                     * 
;*************************************************************** 
 
;*************************************************************** 
;*                                                             * 
;* Using -g (debug) with optimization (-o3) may disable key op * 
;*                                                             * 
;*************************************************************** 
_test_err: 
	.line	5 
;* A     assigned to _T0 
	.sym	_T0,0, 3, 17, 16 
	.sym	_T0_frac,8, 3, 9, 16 
;* A     assigned to _L_acc 
	.sym	_L_acc,0, 5, 4, 32 
;* A     assigned to _L_acc 
	.sym	_L_acc,0, 5, 4, 32 
	.sym	_L_maxloc,2, 5, 1, 32 
;* A     assigned to _flag 
	.sym	_flag,0, 3, 4, 16 
;* AR1   assigned to _t1 
	.sym	_t1,10, 3, 4, 16 
;* B     assigned to _T0_frac 
	.sym	_T0_frac,6, 3, 4, 16 
;* A     assigned to _T0 
	.sym	_T0,0, 3, 4, 16 
;* AR6   assigned to L$1 
;* AR1   assigned to U$30 
;* AR2   assigned to W$1 
;* B     assigned to C$3 
;* AR2   assigned to C$2 
;* A     assigned to C$1 
        PSHM      AR1 
        PSHM      AR6 
        FRAME     #-5 
        SSBX      SXM 
        NOP 
        LD        *SP(8),B 
	.line	9 
        BC        L8,BLEQ               ; |41|  
        ; branch occurs ; |41|  
        RSBX      OVM 
        LD        *(AL),16,A            ; |41|  
        SSBX      OVM 
        NOP 
        ADD       #1,16,A,A             ; |41|  
        BD        L9                    ; |41|  
        SFTA      A,-16,A               ; |41|  
        STLM      A,AR1 
        ; branch occurs ; |41|  
L8:     
        STLM      A,AR1 
L9:     
	.line	11 
        LD        #_tab_zone,B 
	.line	16 
        RSBX      OVM 
        LD        *(AR1),16,A           ; |48|  
        SSBX      OVM 
        NOP 
        SUB       #50,16,A,A            ; |48|  
        RSBX      OVM 
        SFTA      A,-16,A               ; |48|  
        ADD       B,A                   ; |48|  
        STLM      A,AR2 
	.line	17 
        LDM       AR1,A 
        LD        *(AL),A               ; |49|  
        SUB       #50,A,A               ; |49|  
        BC        L10,AGEQ              ; |49|  
        ; branch occurs ; |49|  
	.line	18 
        STLM      B,AR2 
        NOP 
L10:     
	.line	25 
        LD        #-1,16,A              ; |57|  
        OR        #65535,A,A            ; |57|  
        DST       A,*SP(2)              ; |57|  
	.line	27 
        LD        *(AR1),16,A           ; |59|  
        SSBX      OVM 
        NOP 
        ADD       #8,16,A,A             ; |59|  
        STH       A,*(AR1) 
        MVDK      *AR2,*(AR2) 
        RSBX      OVM 
        LD        *AR1(_tab_zone),A 
        LD        *(AL),B               ; |59|  
        MVMM      AR2,AR1 
        SUB       *(AR1),B              ; |59|  
        BC        L13,BLT               ; |59|  
        ; branch occurs ; |59|  
        SFTL      A,#1,B 
        ADD       #_L_exc_err+2,B,B 
        STLM      B,AR1 
        LDM       AR2,B 
        SUB       B,A 
        ADD       #1,A,A 
        STLM      A,AR6 
L11:     
	.line	28 
        DLD       *SP(2),A 
        RSBX      FRCT 
        DST       A,*SP(0)              ; |60|  
        DLD       *+AR1(-2),A           ; |60|  
        CALL      #_L_sub               ; |60|  
        ; call occurs [#_L_sub] ; |60|  
        RSBX      OVM 
        SSBX      SXM 
        SFTA      A,8                   ; |60|  
        SFTA      A,-8                  ; |60|  
        BC        L12,ALEQ              ; |60|  
        ; branch occurs ; |60|  
	.line	30 
        DLD       *AR1,A                ; |62|  
        DST       A,*SP(2)              ; |62|  
L12:     
	.line	32 
        BANZ      L11,*+AR6(-1)         ; |64|  
        ; branch occurs ; |64|  
L13:     
	.line	33 
        LD        #15000,16,A           ; |65|  
        RSBX      FRCT 
        DST       A,*SP(0)              ; |65|  
        DLD       *SP(2),A              ; |65|  
        CALL      #_L_sub               ; |65|  
        ; call occurs [#_L_sub] ; |65|  
        RSBX      OVM 
        SSBX      SXM 
        SFTA      A,8                   ; |65|  
        SFTA      A,-8                  ; |65|  
        BCD       L14,ALEQ              ; |65|  
        STM       #0,AR1 
        ; branch occurs ; |65|  
        STM       #1,AR1 
L14:     
        LDM       AR1,A 
	.line	35 
	.line	39 
        ANDM      #-833,*(ST1)          ; |67|  
        ANDM      #-4,*(PMST)           ; |67|  
        FRAME     #5                    ; |67|  
        POPM      AR6                   ; |67|  
        POPM      AR1                   ; |67|  
        RET       ; |67|  
        ; return occurs ; |67|  
	.endfunc	71,000008400h,7 
 
 
 
	.sect	".text" 
	.global	_Init_exc_err 
	.sym	_Init_exc_err,_Init_exc_err, 32, 2, 0 
	.func	22 
 
;*************************************************************** 
;* FUNCTION DEF: _Init_exc_err                                 * 
;*************************************************************** 
 
;*************************************************************** 
;*                                                             * 
;* Using -g (debug) with optimization (-o3) may disable key op * 
;*                                                             * 
;*************************************************************** 
_Init_exc_err: 
	.line	2 
;* BRC   assigned to L$1 
;* A     assigned to L$1 
;* AR1   assigned to U$7 
        PSHM      AR1 
        STM       #3,BRC 
        STM       #_L_exc_err,AR1 
        RPTB      L16-1 
        ; loop starts 
L15:     
	.line	4 
        LD        #16384,A 
        DST       A,*AR1+               ; |25|  
        ; loop ends ; |25|  
L16:     
	.line	5 
        POPM      AR1 
        RET 
        ; return occurs 
	.endfunc	26,000000400h,1 
 
 
;*************************************************************** 
;* UNDEFINED EXTERNAL REFERENCES                               * 
;*************************************************************** 
	.global	_L_sub 
	.global	_L_shl 
	.global	_L_Extract 
	.global	_Mpy_32_16 
	.global	_tab_zone 
 
;*************************************************************** 
;* TYPE INFORMATION                                            * 
;*************************************************************** 
	.sym	_Word16, 0, 3, 13, 16 
	.sym	_Word16, 0, 3, 13, 16 
	.sym	_Word32, 0, 5, 13, 32