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

📄 flash.asm

📁 在TI的C6000系列高速DSP下实现对FLAH芯片的读写
💻 ASM
📖 第 1 页 / 共 2 页
字号:
;******************************************************************************
;* TMS320C6x ANSI C Codegen                                      Version 4.10 *
;* Date/Time created: Fri Aug 29 16:38:18 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	"flash.c"
;	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\TI444_2 --template_info_file D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TI444_3 --object_file P:/ywz1/c6x/flash1/flash.obj --opt_shell 10 flash.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 flash.c 
	.sect	".text"
	.global	_Flash_Program
	.sym	_Flash_Program,_Flash_Program, 46, 2, 0
	.func	7

;******************************************************************************
;* FUNCTION NAME: _Flash_Program                                              *
;*                                                                            *
;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
;*                           B7,B8,B9,SP                                      *
;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
;*                           B7,B8,B9,SP                                      *
;*   Local Frame Size  : 0 Args + 24 Auto + 4 Save = 28 byte                  *
;******************************************************************************
_Flash_Program:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_Program_Addr,4, 28, 17, 32
	.sym	_Source,20, 28, 17, 32
	.sym	_Program_Addr,4, 28, 1, 32
	.sym	_Source,8, 28, 1, 32
	.sym	_Flash_Addr,12, 28, 1, 32
	.sym	_data,16, 12, 1, 8
	.sym	_return_code,20, 14, 1, 32
	.sym	_Cmd_Addr,24, 14, 1, 32
           STW     .D2T2   B3,*SP--(32)      ; |8| 
           NOP             2
           STW     .D2T2   B4,*+SP(8)        ; |8| 
           STW     .D2T1   A4,*+SP(4)        ; |8| 
           NOP             2
	.line	10
           MVK     .S2     5460,B4           ; |16| 
           STW     .D2T2   B4,*+SP(24)       ; |16| 
           NOP             2
	.line	11

           ZERO    .D2     B4                ; |17| 
||         MV      .S2     B4,B5

           MVKH    .S2     0x1400000,B4      ; |17| 
           ADD     .D2     B4,B5,B4          ; |17| 
           STW     .D2T2   B4,*+SP(12)       ; |17| 
           NOP             2
	.line	12
           MVK     .S1     170,A0            ; |18| 
           STB     .D2T1   A0,*+SP(16)       ; |18| 
           NOP             2
	.line	13
           LDW     .D2T1   *+SP(12),A0       ; |19| 
           LDBU    .D2T2   *+SP(16),B4       ; |19| 
           NOP             4
           STB     .D1T2   B4,*A0            ; |19| 
           NOP             2
	.line	15
           MVK     .S2     2728,B4           ; |21| 
           STW     .D2T2   B4,*+SP(24)       ; |21| 
           NOP             2
	.line	16
           ZERO    .D1     A0                ; |22| 
           MVKH    .S1     0x1400000,A0      ; |22| 
           ADD     .S2X    A0,B4,B4          ; |22| 
           STW     .D2T2   B4,*+SP(12)       ; |22| 
           NOP             2
	.line	17
           MVK     .S1     85,A0             ; |23| 
           STB     .D2T1   A0,*+SP(16)       ; |23| 
           NOP             2
	.line	18
           LDBU    .D2T2   *+SP(16),B4       ; |24| 
           LDW     .D2T1   *+SP(12),A0       ; |24| 
           NOP             4
           STB     .D1T2   B4,*A0            ; |24| 
           NOP             2
	.line	20
           MVK     .S1     5460,A0           ; |26| 
           STW     .D2T1   A0,*+SP(24)       ; |26| 
           NOP             2
	.line	21
           ZERO    .D2     B4                ; |27| 
           MVKH    .S2     0x1400000,B4      ; |27| 
           ADD     .S2X    B4,A0,B4
           STW     .D2T2   B4,*+SP(12)       ; |27| 
           NOP             2
	.line	22
           MVK     .S1     160,A0            ; |28| 
           STB     .D2T1   A0,*+SP(16)       ; |28| 
           NOP             2
	.line	23
           LDBU    .D2T2   *+SP(16),B4       ; |29| 
           LDW     .D2T1   *+SP(12),A0       ; |29| 
           NOP             4
           STB     .D1T2   B4,*A0            ; |29| 
           NOP             2
	.line	25
           LDW     .D2T2   *+SP(4),B4        ; |31| 
           ZERO    .D1     A0                ; |31| 
           MVKH    .S1     0x1400000,A0      ; |31| 
           NOP             2
           ADD     .S2X    A0,B4,B4          ; |31| 
           STW     .D2T2   B4,*+SP(12)       ; |31| 
           NOP             2
	.line	26
           LDW     .D2T2   *+SP(8),B4        ; |32| 
           NOP             4
           LDBU    .D2T2   *B4,B4            ; |32| 
           NOP             4
           STB     .D2T2   B4,*+SP(16)       ; |32| 
           NOP             2
	.line	27
           LDBU    .D2T2   *+SP(16),B4       ; |33| 
           LDW     .D2T1   *+SP(12),A0       ; |33| 
           NOP             4
           STB     .D1T2   B4,*A0            ; |33| 
           NOP             2
	.line	29

           B       .S1     _polling          ; |35| 
||         LDW     .D2T2   *+SP(12),B4       ; |35| 

           LDBU    .D2T1   *+SP(16),A4       ; |35| 
           MVKL    .S2     RL0,B3            ; |35| 
           MVKH    .S2     RL0,B3            ; |35| 
           NOP             2
RL0:       ; CALL OCCURS                     ; |35| 
           STW     .D2T1   A4,*+SP(20)       ; |35| 
           NOP             2
	.line	30
	.line	31
           LDW     .D2T2   *++SP(32),B3      ; |37| 
           NOP             4
           B       .S2     B3                ; |37| 
           NOP             5
           ; BRANCH OCCURS                   ; |37| 
	.endfunc	37,000080000h,32


	.sect	".text"
	.global	_polling
	.sym	_polling,_polling, 46, 2, 0
	.func	47

;******************************************************************************
;* FUNCTION NAME: _polling                                                    *
;*                                                                            *
;*   Regs Modified     : A0,A4,B0,B4,B5,B6,SP                                 *
;*   Regs Used         : A0,A4,B0,B3,B4,B5,B6,SP                              *
;*   Local Frame Size  : 0 Args + 20 Auto + 0 Save = 20 byte                  *
;******************************************************************************
_polling:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_data,4, 12, 17, 8
	.sym	_address,20, 28, 17, 32
	.sym	_data,4, 12, 1, 8
	.sym	_address,8, 28, 1, 32
	.sym	_return_code,12, 14, 1, 32
	.sym	_ptr,16, 28, 1, 32
	.sym	_temp,20, 12, 1, 8
           SUB     .D2     SP,24,SP          ; |48| 
           STW     .D2T2   B4,*+SP(8)        ; |48| 
           STB     .D2T1   A4,*+SP(4)        ; |48| 
           NOP             2
	.line	7
           STW     .D2T2   B4,*+SP(16)       ; |53| 
           NOP             2
	.line	9
;*----------------------------------------------------------------------------*
;*   SOFTWARE PIPELINE INFORMATION
;*      Disqualified loop: software pipelining disabled
;*----------------------------------------------------------------------------*
L1:    
	.line	11
           LDW     .D2T2   *+SP(16),B4       ; |57| 
           NOP             4
           LDBU    .D2T2   *B4,B4            ; |57| 
           NOP             4
           STB     .D2T2   B4,*+SP(20)       ; |57| 
           NOP             2
	.line	12
           LDBU    .D2T2   *+SP(4),B6        ; |58| 
           LDBU    .D2T2   *+SP(20),B4       ; |58| 
           MVK     .S1     128,A0            ; |58| 
           MVK     .S2     128,B5            ; |58| 
           NOP             2

           AND     .L2     B5,B6,B5          ; |58| 
||         AND     .S2X    A0,B4,B4          ; |58| 

           CMPEQ   .L2     B4,B5,B0          ; |58| 
   [!B0]   B       .S1     L2                ; |58| 
           NOP             5
           ; BRANCH OCCURS                   ; |58| 
;** --------------------------------------------------------------------------*
	.line	14
           MVK     .S2     1,B4              ; |60| 
           STW     .D2T2   B4,*+SP(12)       ; |60| 
           NOP             2
	.line	15
           B       .S1     L4                ; |61| 
           NOP             5
           ; BRANCH OCCURS                   ; |61| 
;** --------------------------------------------------------------------------*
;** --------------------------------------------------------------------------*
L2:    
	.line	17

⌨️ 快捷键说明

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