⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpeginit.asm

📁 DSP GEPE 压缩算法
💻 ASM
📖 第 1 页 / 共 3 页
字号:
;******************************************************************************
;* TMS320C6x C/C++ Codegen                                    PC Version 4.36 *
;* Date/Time created: Thu Jan 18 13:28:17 2007                                *
;******************************************************************************

;******************************************************************************
;* GLOBAL FILE PARAMETERS                                                     *
;*                                                                            *
;*   Architecture      : TMS320C620x                                          *
;*   Optimization      : Enabled at level 3                                   *
;*   Optimizing for    : Speed                                                *
;*                       Based on options: -o3, no -ms                        *
;*   Endian            : Little                                               *
;*   Interrupt Thrshld : Disabled                                             *
;*   Memory Model      : Small                                                *
;*   Calls to RTS      : Near                                                 *
;*   Pipelining        : Enabled                                              *
;*   Speculative Load  : Disabled                                             *
;*   Memory Aliases    : Presume are aliases (pessimistic)                    *
;*   Debug Info        : COFF Debug                                           *
;*                                                                            *
;******************************************************************************

	.asg	A15, FP
	.asg	B14, DP
	.asg	B15, SP
	.global	$bss

	.file	"jpeginit.c"

	.sect	".cinit:c"
	.align	8
	.field  	(CIR - $) - 8, 32
	.field  	_DC_MAX_QUANTED+0,32
	.field  	2047,32			; _DC_MAX_QUANTED @ 0

	.sect	".text"
_DC_MAX_QUANTED:	.usect	".bss:c",4,4
	.sym	_DC_MAX_QUANTED,_DC_MAX_QUANTED, 4, 3, 32

	.sect	".cinit:c"
	.align	4
	.field  	-2048,32			; _DC_MIN_QUANTED @ 0

	.sect	".text"
_DC_MIN_QUANTED:	.usect	".bss:c",4,4
	.sym	_DC_MIN_QUANTED,_DC_MIN_QUANTED, 4, 3, 32
;	c:\ti\c6000\cgtools\bin\opt6x.exe -q -O3 C:\DOCUME~1\lindong\LOCALS~1\Temp\TI4072_2 C:\DOCUME~1\lindong\LOCALS~1\Temp\TI4072_5 -w C:/ti/myprojects/jpegdsp/Debug 

	.sect	".text"
	.global	_Initimage
	.sym	_Initimage,_Initimage, 32, 2, 0
	.func	186

;******************************************************************************
;* FUNCTION NAME: _Initimage                                                  *
;*                                                                            *
;*   Regs Modified     : A0,A3,B0,B4,B5,B6,B7                                 *
;*   Regs Used         : A0,A3,A4,B0,B3,B4,B5,B6,B7,DP,SP                     *
;*   Local Frame Size  : 0 Args + 0 Auto + 0 Save = 0 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_Initimage:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_lpInBuff,4, 20, 17, 32
	.sym	_lpInBuff,0, 20, 4, 32

           MV      .D1     A4,A0             ; |187| 
||         MVK     .S2     0xffffffff,B5

	.line	4

           MV      .S1X    B5,A3
||         MV      .L2X    A0,B4
||         MVC     .S2     CSR,B6

           AND     .S2     -2,B6,B7
||         STW     .D1T1   A3,*+A0(12)       ; |191| (P) <0,0>  ^ 
||         STW     .D2T2   B5,*+B4(28)       ; |191| (P) <0,0>  ^ 

           MVC     .S2     B7,CSR            ; interrupts off
||         STW     .D2T2   B5,*+B4(24)       ; |191| (P) <0,1>  ^ 
||         STW     .D1T1   A3,*+A0(8)        ; |191| (P) <0,1>  ^ 

;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*
;*      Loop source line                 : 189
;*      Loop opening brace source line   : 190
;*      Loop closing brace source line   : 191
;*      Known Minimum Trip Count         : 640
;*      Known Maximum Trip Count         : 640
;*      Known Max Trip Count Factor      : 640
;*      Loop Carried Dependency Bound(^) : 1
;*      Unpartitioned Resource Bound     : 4
;*      Partitioned Resource Bound(*)    : 4
;*      Resource Partition:
;*                                A-side   B-side
;*      .L units                     0        0     
;*      .S units                     2        1     
;*      .D units                     4*       4*    
;*      .M units                     0        0     
;*      .X cross paths               0        0     
;*      .T address paths             4*       4*    
;*      Long read paths              4*       4*    
;*      Long write paths             0        0     
;*      Logical  ops (.LS)           0        0     (.L or .S unit)
;*      Addition ops (.LSD)          0        1     (.L or .S or .D unit)
;*      Bound(.L .S .LS)             1        1     
;*      Bound(.L .S .D .LS .LSD)     2        2     
;*
;*      Searching for software pipeline schedule at ...
;*         ii = 4  Schedule found with 2 iterations in parallel
;*      Done
;*
;*      Collapsed epilog stages     : 0
;*      Prolog not removed
;*      Collapsed prolog stages     : 0
;*
;*      Minimum required memory pad : 0 bytes
;*
;*      Minimum safe trip count     : 2
;*----------------------------------------------------------------------------*
L1:    ; PIPED LOOP PROLOG

           MVK     .S2     0x280,B7          ; |189| 
||         STW     .D1T1   A3,*+A0(4)        ; |191| (P) <0,2>  ^ 
||         B       .S1     L2                ; |191| (P) <0,2> 
||         STW     .D2T2   B5,*+B4(20)       ; |191| (P) <0,2>  ^ 

           SUB     .L2     B7,2,B0
||         STW     .D1T1   A3,*A0            ; |191| (P) <0,3>  ^ 
||         STW     .D2T2   B5,*+B4(16)       ; |191| (P) <0,3>  ^ 
||         ADDK    .S2     2560,B4           ; |191| (P) <0,3>  ^ 
||         ADDK    .S1     2560,A0           ; |191| (P) <0,3>  ^ 

;** --------------------------------------------------------------------------*
L2:    ; PIPED LOOP KERNEL

           STW     .D1T1   A3,*+A0(12)       ; |191| <1,0>  ^ 
||         STW     .D2T2   B5,*+B4(28)       ; |191| <1,0>  ^ 

           STW     .D1T1   A3,*+A0(8)        ; |191| <1,1>  ^ 
||         STW     .D2T2   B5,*+B4(24)       ; |191| <1,1>  ^ 
|| [ B0]   SUB     .S2     B0,1,B0           ; |191| <1,1> 

           STW     .D1T1   A3,*+A0(4)        ; |191| <1,2>  ^ 
||         STW     .D2T2   B5,*+B4(20)       ; |191| <1,2>  ^ 
|| [ B0]   B       .S1     L2                ; |191| <1,2> 

           STW     .D1T1   A3,*A0            ; |191| <1,3>  ^ 
||         ADDK    .S1     2560,A0           ; |191| <1,3>  ^ 
||         STW     .D2T2   B5,*+B4(16)       ; |191| <1,3>  ^ 
||         ADDK    .S2     2560,B4           ; |191| <1,3>  ^ 

;** --------------------------------------------------------------------------*
L3:    ; PIPED LOOP EPILOG
           MVC     .S2     B6,CSR            ; interrupts on
	.line	7
           RET     .S2     B3                ; |192| 
           NOP             5
           ; BRANCH OCCURS                   ; |192| 
	.endfunc	192,000000000h,0



	.sect	".text"
	.global	_ComputeVLI
	.sym	_ComputeVLI,_ComputeVLI, 44, 2, 0
	.func	106

;******************************************************************************
;* FUNCTION NAME: _ComputeVLI                                                 *
;*                                                                            *
;*   Regs Modified     : A0,A1,A3,A4,A5,B0,B1,B4,B5                           *
;*   Regs Used         : A0,A1,A3,A4,A5,B0,B1,B3,B4,B5                        *
;*   Local Frame Size  : 0 Args + 0 Auto + 0 Save = 0 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_ComputeVLI:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_val,4, 3, 17, 16
	.sym	_val,4, 3, 4, 16
	.line	6
           ABS     .L1     A4,A3             ; |111| 
           EXT     .S1     A3,16,16,A3       ; |111| 
           CMPEQ   .L1     A3,1,A1           ; |111| 
	.line	9
   [ A1]   B       .S1     L6                ; |114| 
   [ A1]   MVK     .S1     0x1,A0            ; |114| 
           NOP             4
           ; BRANCH OCCURS                   ; |114| 
;** --------------------------------------------------------------------------*
	.line	10
           CMPLT   .L1     A3,2,A4           ; |115| 

           XOR     .S1     1,A4,A4           ; |115| 
||         CMPLT   .L2X    A3,4,B4           ; |115| 

           AND     .S2X    B4,A4,B0          ; |115| 
	.line	13
   [ B0]   B       .S1     L6                ; |118| 
   [ B0]   MVK     .S1     0x2,A0            ; |118| 
           NOP             4
           ; BRANCH OCCURS                   ; |118| 
;** --------------------------------------------------------------------------*
	.line	14
           CMPLT   .L1     A3,4,A4           ; |119| 

           XOR     .S1     1,A4,A4           ; |119| 
||         CMPLT   .L2X    A3,8,B4           ; |119| 

           AND     .S2X    B4,A4,B0          ; |119| 
	.line	17
   [ B0]   B       .S1     L6                ; |122| 
   [ B0]   MVK     .S1     0x3,A0            ; |122| 
           NOP             4
           ; BRANCH OCCURS                   ; |122| 
;** --------------------------------------------------------------------------*
	.line	18

           MVK     .S1     16,A5             ; |123| 
||         CMPLT   .L1     A3,8,A4           ; |123| 

           CMPLT   .L1     A3,A5,A5          ; |123| 
||         XOR     .S1     1,A4,A4           ; |123| 

           AND     .S1     A5,A4,A1          ; |123| 
	.line	21
   [ A1]   B       .S1     L6                ; |126| 
   [ A1]   MVK     .S1     0x4,A0            ; |126| 
           NOP             4
           ; BRANCH OCCURS                   ; |126| 
;** --------------------------------------------------------------------------*
	.line	22
           MVK     .S1     16,A4             ; |127| 

           CMPLT   .L1     A3,A4,A4          ; |127| 
||         MVK     .S2     32,B4             ; |127| 

           XOR     .S1     1,A4,A4           ; |127| 
||         CMPLT   .L2X    A3,B4,B4          ; |127| 

           AND     .S2X    B4,A4,B0          ; |127| 
	.line	25
   [ B0]   B       .S1     L6                ; |130| 
   [ B0]   MVK     .S1     0x5,A0            ; |130| 
           NOP             4
           ; BRANCH OCCURS                   ; |130| 
;** --------------------------------------------------------------------------*
	.line	26
           MVK     .S1     32,A4             ; |131| 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -