📄 bits.asm
字号:
;***************************************************************
;* TMS320C54x C/C++ Codegen PC Version 3.83 *
;* Date/Time created: Mon Aug 22 19:45:26 2005 *
;***************************************************************
.mmregs
FP .set AR7
.c_mode
.file "BITS.C"
; d:\program files\ti\c5400\cgtools\bin\opt500.exe -i15 -q -O3 C:\DOCUME~1\ltd\LOCALS~1\Temp\TI1560_2 C:\DOCUME~1\ltd\LOCALS~1\Temp\TI1560_5 -w e:/ata_work_dir/g729a_v1.7_src/G729a_v1_7/Debug
.sect ".text"
.sym _int2bin,_int2bin, 32, 3, 0
.func 67
;***************************************************************
;* FUNCTION DEF: _int2bin *
;***************************************************************
;***************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key op *
;* *
;***************************************************************
_int2bin:
.line 6
;* A assigned to _value
.sym _value,0, 3, 17, 16
.sym _no_of_bits,2, 3, 9, 16
.sym _bitstream,3, 19, 9, 16
;* BRC assigned to L$1
;* A assigned to L$1
;* A assigned to _value
.sym _value,0, 3, 4, 16
;* AR1 assigned to _no_of_bits
.sym _no_of_bits,10, 3, 4, 16
;* B assigned to _bitstream
.sym _bitstream,6, 19, 4, 16
;* AR2 assigned to _pt_bitstream
.sym _pt_bitstream,11, 19, 4, 16
PSHM AR1
NOP
MVDK *SP(2),*(AR1)
LD *SP(3),B
.line 10
ADD *(AR1),B
STLM B,AR2
.line 12
SSBX SXM
LDM AR1,B
LD *(BL),B ; |78|
BC L4,BLEQ ; |78|
; branch occurs ; |78|
LDM AR1,B
SUB #1,B,B
STLM B,BRC
NOP
RPTB L4-1
; loop starts
L1:
.line 15
BITF *(AL),#1 ; |81|
BC L2,TC ; |81|
; branch occurs ; |81|
.line 16
ST #127,*+AR2(-1) ; |82|
B L3 ; |82|
; branch occurs ; |82|
L2:
.line 18
ST #129,*+AR2(-1) ; |84|
L3:
.line 19
LD *(AL),A ; |85|
SFTA A,#-1,A ; |85|
.line 20
; loop ends ; |86|
L4:
.line 21
POPM AR1
RET
; return occurs
.endfunc 87,000000400h,1
.sect ".text"
.global _prm2bits_ld8k
.sym _prm2bits_ld8k,_prm2bits_ld8k, 32, 2, 0
.func 44
;***************************************************************
;* FUNCTION DEF: _prm2bits_ld8k *
;***************************************************************
;***************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key op *
;* *
;***************************************************************
_prm2bits_ld8k:
.line 6
;* A assigned to _prm
.sym _prm,0, 19, 17, 16
.sym _bits,4, 19, 9, 16
;* AR3 assigned to U$8
;* AR5 assigned to U$10
;* AR4 assigned to L$1
;* AR1 assigned to _bits
.sym _bits,10, 19, 4, 16
;* A assigned to _prm
.sym _prm,0, 19, 4, 16
PSHM AR1
FRAME #-2
NOP
MVDK *SP(4),*(AR1)
.line 8
ST #27425,*AR1+ ; |51|
.line 9
STM #_bitsno,AR3
STM #11,AR4
STLM A,AR5
ST #80,*AR1+ ; |52|
L5:
.line 13
LD *AR3,A
STL A,*SP(0)
MVKD *(AR1),*SP(1)
LD *AR5+,A
CALL #_int2bin ; |56|
; call occurs [#_int2bin] ; |56|
.line 14
LDM AR1,A
ADD *AR3+,A ; |57|
STLM A,AR1
.line 15
BANZ L5,*+AR4(-1) ; |58|
; branch occurs ; |58|
.line 18
FRAME #2
POPM AR1
RET
; return occurs
.endfunc 61,000000400h,3
.sect ".text"
.sym _bin2int,_bin2int, 35, 3, 0
.func 111
;***************************************************************
;* FUNCTION DEF: _bin2int *
;***************************************************************
;***************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key op *
;* *
;***************************************************************
_bin2int:
.line 5
;* A assigned to _no_of_bits
.sym _no_of_bits,0, 3, 17, 16
.sym _bitstream,2, 19, 9, 16
;* BRC assigned to L$1
;* A assigned to L$1
;* B assigned to _no_of_bits
.sym _no_of_bits,6, 3, 4, 16
;* AR1 assigned to _bitstream
.sym _bitstream,10, 19, 4, 16
;* A assigned to _value
.sym _value,0, 3, 4, 16
;* AR2 assigned to _bit
.sym _bit,11, 3, 4, 16
PSHM AR1
NOP
MVDK *SP(2),*(AR1)
LD A,B
.line 9
LD #0,A
.line 10
SSBX SXM
LD *(BL),B ; |120|
BC L8,BLEQ ; |120|
; branch occurs ; |120|
SUB #1,B,B
STLM B,BRC
NOP
RPTB L8-1
; loop starts
L6:
.line 12
SFTL A,#1,A ; |122|
.line 13
MVDK *AR1+,*(AR2)
BANZ L7,*AR2(-129) ; |123|
; branch occurs ; |123|
.line 14
ADD #1,A
L7:
NOP
.line 15
; loop ends ; |125|
L8:
.line 16
.line 17
POPM AR1 ; |126|
RET ; |126|
; return occurs ; |126|
.endfunc 127,000000400h,1
.sect ".text"
.global _bits2prm_ld8k
.sym _bits2prm_ld8k,_bits2prm_ld8k, 32, 2, 0
.func 93
;***************************************************************
;* FUNCTION DEF: _bits2prm_ld8k *
;***************************************************************
;***************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key op *
;* *
;***************************************************************
_bits2prm_ld8k:
.line 5
;* A assigned to _bits
.sym _bits,0, 19, 17, 16
.sym _prm,4, 19, 9, 16
;* AR1 assigned to U$6
;* AR3 assigned to U$8
;* AR4 assigned to L$1
;* AR3 assigned to _prm
.sym _prm,12, 19, 4, 16
;* AR5 assigned to _bits
.sym _bits,14, 19, 4, 16
PSHM AR1
FRAME #-2
STLM A,AR5
NOP
STM #11,AR4
STM #_bitsno,AR1
MVDK *SP(4),*(AR3)
L9:
.line 9
MVKD *(AR5),*SP(0)
LD *AR1,A
CALL #_bin2int ; |101|
; call occurs [#_bin2int] ; |101|
STL A,*AR3+
.line 10
LDM AR5,A
ADD *AR1+,A ; |102|
STLM A,AR5
.line 11
BANZ L9,*+AR4(-1) ; |103|
; branch occurs ; |103|
.line 13
FRAME #2
POPM AR1
RET
; return occurs
.endfunc 105,000000400h,3
;***************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;***************************************************************
.global _bitsno
;***************************************************************
;* TYPE INFORMATION *
;***************************************************************
.sym _Word16, 0, 3, 13, 16
.sym _Word16, 0, 3, 13, 16
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -