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

📄 main.asm

📁 在TI的C6000系列高速DSP下实现对FLAH芯片的读写
💻 ASM
📖 第 1 页 / 共 4 页
字号:
;******************************************************************************
;* TMS320C6x ANSI C Codegen                                      Version 4.10 *
;* Date/Time created: Fri Aug 29 16:39:54 2003                                *
;******************************************************************************

;******************************************************************************
;* GLOBAL FILE PARAMETERS                                                     *
;*                                                                            *
;*   Architecture      : TMS320C620x                                          *
;*   Optimization      : Disabled                                             *
;*   Optimizing for    : Compile time, Ease of Development                    *
;*                       Based on options: no -o, no -ms                      *
;*   Endian            : Little                                               *
;*   Interrupt Thrshld : Disabled                                             *
;*   Memory Model      : Small                                                *
;*   Calls to RTS      : Near                                                 *
;*   Pipelining        : Disabled                                             *
;*   Memory Aliases    : Presume are aliases (pessimistic)                    *
;*   Debug Info        : Debug                                                *
;*                                                                            *
;******************************************************************************

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

	.file	"main.c"
	.global	_MB_Base
	.bss	_MB_Base,44,4
	.sym	_MB_Base,_MB_Base, 8, 2, 352, $$fake0
	.global	_Pict
	.bss	_Pict,32,2
	.sym	_Pict,_Pict, 8, 2, 256, $$fake1
	.global	_nDecodeNum
	.bss	_nDecodeNum,4,4
	.sym	_nDecodeNum,_nDecodeNum, 14, 2, 32
	.global	_DMA_Status
	.bss	_DMA_Status,1,1
	.sym	_DMA_Status,_DMA_Status, 12, 2, 8
	.global	_Decode_Status
	.bss	_Decode_Status,1,1
	.sym	_Decode_Status,_Decode_Status, 12, 2, 8
	.global	_DMA3_trans_cnt
	.bss	_DMA3_trans_cnt,4,4
	.sym	_DMA3_trans_cnt,_DMA3_trans_cnt, 14, 2, 32
	.global	_pDecode_Curr_Y
	.bss	_pDecode_Curr_Y,4,4
	.sym	_pDecode_Curr_Y,_pDecode_Curr_Y, 28, 2, 32
	.global	_pDecode_Curr_UV
	.bss	_pDecode_Curr_UV,4,4
	.sym	_pDecode_Curr_UV,_pDecode_Curr_UV, 28, 2, 32
	.global	_pDecode_Prev_Y
	.bss	_pDecode_Prev_Y,4,4
	.sym	_pDecode_Prev_Y,_pDecode_Prev_Y, 28, 2, 32
	.global	_pDecode_Prev_UV
	.bss	_pDecode_Prev_UV,4,4
	.sym	_pDecode_Prev_UV,_pDecode_Prev_UV, 28, 2, 32
	.global	_pDisplay
	.bss	_pDisplay,4,4
	.sym	_pDisplay,_pDisplay, 28, 2, 32
;	c:\ti2\c6000\cgtools\bin\acp6x.exe --version=6200 -Ic:/ti2/c6000/bios/include -Ic:/ti2/c6000/rtdx/include -Ic:/ti2/c6000/cgtools/include --keep_unneeded_types -m --i_output_file D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TI608_2 --template_info_file D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TI608_3 --object_file P:/ywz1/c6x/flash1/main.obj --opt_shell 10 main.c -g -k -as -frP:/ywz1/c6x/flash1 -mu -mv6200 -ic:/ti2/c6000/bios/include -ic:/ti2/c6000/rtdx/include -ic:/ti2/c6000/cgtools/include main.c 
	.sect	".text"
	.global	_Delay
	.sym	_Delay,_Delay, 32, 2, 0
	.func	6

;******************************************************************************
;* FUNCTION NAME: _Delay                                                      *
;*                                                                            *
;*   Regs Modified     : B0,B4,B5,B6,SP                                       *
;*   Regs Used         : A4,B0,B3,B4,B5,B6,SP                                 *
;*   Local Frame Size  : 0 Args + 12 Auto + 0 Save = 12 byte                  *
;******************************************************************************
_Delay:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_time,4, 14, 17, 32
	.sym	_time,4, 14, 1, 32
	.sym	_i,8, 14, 1, 32
	.sym	_j,12, 14, 1, 32
           SUB     .D2     SP,16,SP          ; |7| 
           STW     .D2T1   A4,*+SP(4)        ; |7| 
           NOP             2
	.line	4
           ZERO    .D2     B4                ; |9| 
           STW     .D2T2   B4,*+SP(8)        ; |9| 
           LDW     .D2T2   *+SP(8),B5        ; |9| 
           NOP             4
           CMPLTU  .L2X    B5,A4,B0
   [!B0]   B       .S1     L2                ; |9| 
           NOP             5
           ; BRANCH OCCURS                   ; |9| 
;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*      Disqualified loop: software pipelining disabled
;*----------------------------------------------------------------------------*
L1:    
	.line	5
           LDW     .D2T2   *+SP(8),B5        ; |10| 
           LDW     .D2T2   *+SP(4),B6        ; |10| 
           NOP             3

           ADD     .D2     1,B5,B5           ; |10| 
||         MV      .S2     B5,B4             ; |10| 

           CMPLTU  .L2     B5,B6,B0          ; |10| 
   [ B0]   B       .S1     L1                ; |10| 
           STW     .D2T2   B5,*+SP(8)        ; |10| 
           STW     .D2T2   B4,*+SP(12)       ; |10| 
           NOP             3
           ; BRANCH OCCURS                   ; |10| 
;** --------------------------------------------------------------------------*
L2:    
	.line	6
           B       .S2     B3                ; |11| 
           ADDK    .S2     16,SP             ; |11| 
           NOP             4
           ; BRANCH OCCURS                   ; |11| 
	.endfunc	11,000000000h,16


	.sect	".text"
	.global	_Flash_Program
	.sym	_Flash_Program,_Flash_Program, 32, 2, 0
	.func	14

;******************************************************************************
;* FUNCTION NAME: _Flash_Program                                              *
;*                                                                            *
;*   Regs Modified     : A0,A4,B0,B3,B4,B5,B6,B7,SP                           *
;*   Regs Used         : A0,A4,B0,B3,B4,B5,B6,B7,SP                           *
;*   Local Frame Size  : 0 Args + 28 Auto + 4 Save = 32 byte                  *
;******************************************************************************
_Flash_Program:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_Program_Addr,4, 28, 17, 32
	.sym	_Src,20, 28, 17, 32
	.sym	_Program_Addr,4, 28, 1, 32
	.sym	_Src,8, 28, 1, 32
	.sym	_Flash_Addr,12, 28, 1, 32
	.sym	_SDRAM_Addr,16, 28, 1, 32
	.sym	_i,20, 14, 1, 32
	.sym	_end,24, 14, 1, 32
	.sym	_Data,28, 12, 1, 8
	.sym	_Sdram,29, 12, 1, 8
           STW     .D2T2   B3,*SP--(32)      ; |15| 
           NOP             2
           STW     .D2T2   B4,*+SP(8)        ; |15| 
           STW     .D2T1   A4,*+SP(4)        ; |15| 
           NOP             2
	.line	7
           ZERO    .D1     A0                ; |20| 
           STW     .D2T1   A0,*+SP(24)       ; |20| 
           NOP             2
	.line	8
           STW     .D2T2   B4,*+SP(16)       ; |21| 
           NOP             2
	.line	10
           MVKL    .S1     0x1415554,A0      ; |23| 
           MVKH    .S1     0x1415554,A0      ; |23| 
           STW     .D2T1   A0,*+SP(12)       ; |23| 
           NOP             2
	.line	11

           MVK     .S1     170,A0            ; |24| 
||         MV      .S2X    A0,B4

           STB     .D2T1   A0,*B4            ; |24| 
           NOP             2
	.line	13
           MVKL    .S2     0x140aaa8,B4      ; |26| 
           MVKH    .S2     0x140aaa8,B4      ; |26| 
           STW     .D2T2   B4,*+SP(12)       ; |26| 
           NOP             2
	.line	14

           MVK     .S2     85,B4             ; |27| 
||         MV      .D2     B4,B5

           STB     .D2T2   B4,*B5            ; |27| 
           NOP             2
	.line	16
           MVKL    .S1     0x1415554,A0      ; |29| 
           MVKH    .S1     0x1415554,A0      ; |29| 
           STW     .D2T1   A0,*+SP(12)       ; |29| 
           NOP             2
	.line	17

           MVK     .S1     160,A0            ; |30| 
||         MV      .S2X    A0,B4

           STB     .D2T1   A0,*B4            ; |30| 
           NOP             2
	.line	19
           LDW     .D2T2   *+SP(4),B4        ; |32| 
           NOP             4
           STW     .D2T2   B4,*+SP(12)       ; |32| 
           NOP             2
	.line	20
           ZERO    .D2     B4

           MVK     .S2     128,B4            ; |33| 
||         STW     .D2T2   B4,*+SP(20)       ; |33| 
||         ZERO    .L2     B5

           CMPLTU  .L2     B5,B4,B0          ; |33| 
   [!B0]   B       .S1     L4                ; |33| 
           MVK     .S2     128,B7            ; |39| 
           NOP             4
           ; BRANCH OCCURS                   ; |33| 
;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*      Disqualified loop: software pipelining disabled
;*----------------------------------------------------------------------------*
L3:    
	.line	22
           LDW     .D2T2   *+SP(16),B4       ; |35| 
           NOP             4
           LDBU    .D2T2   *B4++,B5          ; |35| 
           STW     .D2T2   B4,*+SP(16)       ; |35| 
           NOP             3
           STB     .D2T2   B5,*+SP(29)       ; |35| 
           NOP             2
	.line	23
           B       .S1     _Delay            ; |36| 
           MVKL    .S2     RL0,B3            ; |36| 
           MVKH    .S2     RL0,B3            ; |36| 
           MVK     .S1     0x14,A4           ; |36| 
           NOP             2
RL0:       ; CALL OCCURS                     ; |36| 
	.line	24
           LDW     .D2T2   *+SP(12),B4       ; |37| 
           LDBU    .D2T2   *+SP(29),B5       ; |37| 
           NOP             4
           STB     .D2T2   B5,*B4            ; |37| 
           NOP             2
	.line	25
           LDW     .D2T2   *+SP(12),B4       ; |38| 
           NOP             4
           ADD     .D2     4,B4,B4           ; |38| 
           STW     .D2T2   B4,*+SP(12)       ; |38| 
           NOP             2
	.line	26
           LDW     .D2T2   *+SP(20),B4       ; |39| 
           NOP             4
           ADD     .D2     1,B4,B4           ; |39| 
           CMPLTU  .L2     B4,B7,B0          ; |39| 
   [ B0]   B       .S1     L3                ; |39| 
           STW     .D2T2   B4,*+SP(20)       ; |39| 
           NOP             4
           ; BRANCH OCCURS                   ; |39| 
;** --------------------------------------------------------------------------*
L4:    
	.line	27
           LDW     .D2T2   *+SP(12),B4       ; |40| 
           NOP             4
           SUB     .D2     B4,4,B4           ; |40| 
           STW     .D2T2   B4,*+SP(12)       ; |40| 
           NOP             2
	.line	28
           B       .S1     _Delay            ; |41| 
           MVKL    .S1     0x30d40,A4        ; |41| 
           MVKL    .S2     RL2,B3            ; |41| 
           MVKH    .S1     0x30d40,A4        ; |41| 
           MVKH    .S2     RL2,B3            ; |41| 
           NOP             1
RL2:       ; CALL OCCURS                     ; |41| 
	.line	29
           LDW     .D2T2   *+SP(24),B0       ; |42| 
           NOP             4
   [!B0]   B       .S1     L7                ; |42| 
           NOP             5
           ; BRANCH OCCURS                   ; |42| 
;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*      Disqualified loop: software pipelining disabled
;*----------------------------------------------------------------------------*
L5:    
	.line	31
           ZERO    .D2     B4                ; |44| 
           STB     .D2T2   B4,*+SP(28)       ; |44| 
           NOP             2
	.line	32
           LDW     .D2T2   *+SP(12),B4       ; |45| 
           NOP             4
           LDBU    .D2T2   *B4,B4            ; |45| 
           NOP             4
           STB     .D2T2   B4,*+SP(28)       ; |45| 
           NOP             2
	.line	33
           LDBU    .D2T2   *+SP(29),B5       ; |46| 

⌨️ 快捷键说明

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