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

📄 lesson_c.asm

📁 DSP培训 作业【源码】
💻 ASM
字号:
;******************************************************************************
;* TMS320C6x C/C++ Codegen                                    PC Version 4.32 *
;* Date/Time created: Mon Nov 06 15:25:18 2006                                *
;******************************************************************************

;******************************************************************************
;* GLOBAL FILE PARAMETERS                                                     *
;*                                                                            *
;*   Architecture      : TMS320C64xx                                          *
;*   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	"lesson_c.c"
;	c:\ti\c6000\cgtools\bin\opt6x.exe -v6400 -q -O3 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TI1772_2 C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TI1772_5 -w ./Debug 

	.sect	".text"
	.global	_lesson_c
	.sym	_lesson_c,_lesson_c, 32, 2, 0
	.func	22

;******************************************************************************
;* FUNCTION NAME: _lesson_c                                                   *
;*                                                                            *
;*   Regs Modified     : A3,A4,A5,A6,B0,B4,B5,B6,B7                           *
;*   Regs Used         : A3,A4,A5,A6,A8,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!    *
;*                                                                            *
;******************************************************************************
_lesson_c:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_xptr,4, 19, 17, 32
	.sym	_yptr,20, 19, 17, 32
	.sym	_zptr,6, 19, 17, 32
	.sym	_w_sum,22, 19, 17, 32
	.sym	_N,8, 4, 17, 32
	.sym	_w2,21, 3, 4, 16
	.sym	_w1,6, 3, 4, 16
	.sym	_xptr,4, 19, 4, 32
	.sym	_yptr,20, 19, 4, 32
	.sym	_zptr,3, 19, 4, 32
	.sym	_w_sum,22, 19, 4, 32
	.sym	_N,23, 4, 4, 32

           MV      .D2X    A8,B7             ; |23| 
||         MV      .D1     A6,A3             ; |23| 

	.line	6
           LDH     .D1T1   *A3,A6            ; |27| 
	.line	7
           LDH     .D1T2   *+A3(2),B5        ; |28| 
	.line	8
           CMPGT   .L2     B7,0,B0           ; |29| 
   [!B0]   BNOP    .S1     L4,5              ; |29| 
           ; BRANCH OCCURS                   ; |29| 
;** --------------------------------------------------------------------------*
	.line	10

           SUB     .D2     B7,1,B0
||         MVC     .S2     CSR,B7

           MV      .D1     A4,A5
||         MV      .S1X    B6,A4
||         AND     .D2     -2,B7,B6

           MVC     .S2     B6,CSR            ; interrupts off
;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*
;*      Loop source line                 : 29
;*      Loop opening brace source line   : 30
;*      Loop closing brace source line   : 34
;*      Known Minimum Trip Count         : 1
;*      Known Max Trip Count Factor      : 1
;*      Loop Carried Dependency Bound(^) : 11
;*      Unpartitioned Resource Bound     : 2
;*      Partitioned Resource Bound(*)    : 2
;*      Resource Partition:
;*                                A-side   B-side
;*      .L units                     0        0     
;*      .S units                     1        1     
;*      .D units                     2*       1     
;*      .M units                     1        1     
;*      .X cross paths               1        0     
;*      .T address paths             2*       1     
;*      Long read paths              0        0     
;*      Long write paths             0        0     
;*      Logical  ops (.LS)           0        0     (.L or .S unit)
;*      Addition ops (.LSD)          1        0     (.L or .S or .D unit)
;*      Bound(.L .S .LS)             1        1     
;*      Bound(.L .S .D .LS .LSD)     2*       1     
;*
;*      Searching for software pipeline schedule at ...
;*         ii = 11 Schedule found with 1 iterations in parallel
;*      Done
;*
;*      Collapsed epilog stages     : 0
;*      Collapsed prolog stages     : 0
;*
;*      Minimum safe trip count     : 1
;*----------------------------------------------------------------------------*
L1:    ; PIPED LOOP PROLOG
;** --------------------------------------------------------------------------*
L2:    ; PIPED LOOP KERNEL

           LDH     .D1T1   *A5++,A3          ; |33| <0,0> 
||         LDH     .D2T2   *B4++,B6          ; |33| <0,0>  ^ 

           NOP             4

           MPY     .M1     A3,A6,A3          ; |33| <0,5> 
|| [ B0]   BDEC    .S2     L2,B0             ; |34| <0,5> 
||         MPY     .M2     B6,B5,B6          ; |33| <0,5>  ^ 

           NOP             2
           ADD     .D1X    B6,A3,A3          ; |33| <0,8>  ^ 
           SHR     .S1     A3,15,A3          ; |33| <0,9>  ^ 
           STH     .D1T1   A3,*A4++          ; |33| <0,10>  ^ 
;** --------------------------------------------------------------------------*
L3:    ; PIPED LOOP EPILOG
;** --------------------------------------------------------------------------*
           MVC     .S2     B7,CSR            ; interrupts on
;** --------------------------------------------------------------------------*
L4:    
	.line	15
           RETNOP  .S2     B3,5              ; |36| 
           ; BRANCH OCCURS                   ; |36| 
	.endfunc	36,000000000h,0



;******************************************************************************
;* TYPE INFORMATION                                                           *
;******************************************************************************

⌨️ 快捷键说明

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