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

📄 test.asm

📁 这是对于Dsp函数库
💻 ASM
字号:
;***************************************************************
;* TMS320C54x ANSI C Codegen         Version 1.10              *
;* Date/Time created: Sat Jun 12 16:52:48 1999                 *
;***************************************************************
	.mmregs
FP	.set	AR7
;	D:\DSP\EXEC\ASM\ac500.exe test C:\WINDOWS\TEMP\test.if 
	.file	"test.c"
	.file	"..\include\TMS320.H"
	.sym	_uint,0,14,13,16
	.sym	_ushort,0,13,13,16
	.sym	_DATA,0,3,13,16
	.sym	_LDATA,0,5,13,32
	.file	"..\include\c54corr.h"
	.global	_acorr_raw
	.global	_acorr_bias
	.global	_acorr_unbias
	.global	_corr_raw
	.global	_corr_bias
	.global	_corr_unbias
	.file	"test.dat"

	.sect	".cinit"
	.align	1
	.field	IR1,16
	.field	_x+0,16
	.field	16384,16		; _x[0] @ 0
	.field	8192,16		; _x[1] @ 16
	.field	4096,16		; _x[2] @ 32
	.field	2048,16		; _x[3] @ 48
	.field	1024,16		; _x[4] @ 64
	.field	512,16		; _x[5] @ 80
	.field	256,16		; _x[6] @ 96
	.field	128,16		; _x[7] @ 112
	.field	64,16		; _x[8] @ 128
	.field	32,16		; _x[9] @ 144
	.field	16,16		; _x[10] @ 160
	.field	8,16		; _x[11] @ 176
	.field	4,16		; _x[12] @ 192
	.field	2,16		; _x[13] @ 208
	.field	1,16		; _x[14] @ 224
	.field	0,16		; _x[15] @ 240
	.field	-1,16		; _x[16] @ 256
	.field	-2,16		; _x[17] @ 272
	.field	-4,16		; _x[18] @ 288
	.field	-8,16		; _x[19] @ 304
	.field	-16,16		; _x[20] @ 320
	.field	-32,16		; _x[21] @ 336
	.field	-64,16		; _x[22] @ 352
	.field	-128,16		; _x[23] @ 368
	.field	-256,16		; _x[24] @ 384
	.field	-512,16		; _x[25] @ 400
	.field	-1024,16		; _x[26] @ 416
	.field	-2048,16		; _x[27] @ 432
	.field	-4096,16		; _x[28] @ 448
	.field	-8192,16		; _x[29] @ 464
	.field	-16384,16		; _x[30] @ 480
	.field	-32768,16		; _x[31] @ 496
IR1:	.set	32

	.sect	".text"
	.global	_x
	.bss	_x,32,0,0
	.sym	_x,_x,51,2,512,,32

	.sect	".cinit"
	.align	1
	.field	IR2,16
	.field	_x1+0,16
	.field	4096,16		; _x1[0] @ 0
	.field	4096,16		; _x1[1] @ 16
	.field	4096,16		; _x1[2] @ 32
	.field	4096,16		; _x1[3] @ 48
	.field	4096,16		; _x1[4] @ 64
	.field	4096,16		; _x1[5] @ 80
	.field	4096,16		; _x1[6] @ 96
	.field	4096,16		; _x1[7] @ 112
	.field	4096,16		; _x1[8] @ 128
	.field	4096,16		; _x1[9] @ 144
	.field	4096,16		; _x1[10] @ 160
	.field	4096,16		; _x1[11] @ 176
	.field	4096,16		; _x1[12] @ 192
	.field	4096,16		; _x1[13] @ 208
	.field	4096,16		; _x1[14] @ 224
	.field	4096,16		; _x1[15] @ 240
	.field	4096,16		; _x1[16] @ 256
	.field	4096,16		; _x1[17] @ 272
	.field	4096,16		; _x1[18] @ 288
	.field	4096,16		; _x1[19] @ 304
	.field	4096,16		; _x1[20] @ 320
	.field	4096,16		; _x1[21] @ 336
	.field	4096,16		; _x1[22] @ 352
	.field	4096,16		; _x1[23] @ 368
	.field	4096,16		; _x1[24] @ 384
	.field	4096,16		; _x1[25] @ 400
	.field	4096,16		; _x1[26] @ 416
	.field	4096,16		; _x1[27] @ 432
	.field	4096,16		; _x1[28] @ 448
	.field	4096,16		; _x1[29] @ 464
	.field	4096,16		; _x1[30] @ 480
	.field	4096,16		; _x1[31] @ 496
IR2:	.set	32

	.sect	".text"
	.global	_x1
	.bss	_x1,32,0,0
	.sym	_x1,_x1,51,2,512,,32

	.sect	".cinit"
	.align	1
	.field	IR3,16
	.field	_y+0,16
	.field	4096,16		; _y[0] @ 0
	.field	4096,16		; _y[1] @ 16
	.field	4096,16		; _y[2] @ 32
	.field	4096,16		; _y[3] @ 48
	.field	4096,16		; _y[4] @ 64
	.field	4096,16		; _y[5] @ 80
	.field	4096,16		; _y[6] @ 96
	.field	4096,16		; _y[7] @ 112
	.field	4096,16		; _y[8] @ 128
	.field	4096,16		; _y[9] @ 144
	.field	4096,16		; _y[10] @ 160
	.field	4096,16		; _y[11] @ 176
	.field	4096,16		; _y[12] @ 192
	.field	4096,16		; _y[13] @ 208
	.field	4096,16		; _y[14] @ 224
	.field	4096,16		; _y[15] @ 240
	.field	4096,16		; _y[16] @ 256
	.field	4096,16		; _y[17] @ 272
	.field	4096,16		; _y[18] @ 288
	.field	4096,16		; _y[19] @ 304
	.field	4096,16		; _y[20] @ 320
	.field	4096,16		; _y[21] @ 336
	.field	4096,16		; _y[22] @ 352
	.field	4096,16		; _y[23] @ 368
	.field	4096,16		; _y[24] @ 384
	.field	4096,16		; _y[25] @ 400
	.field	4096,16		; _y[26] @ 416
	.field	4096,16		; _y[27] @ 432
	.field	4096,16		; _y[28] @ 448
	.field	4096,16		; _y[29] @ 464
	.field	4096,16		; _y[30] @ 480
	.field	4096,16		; _y[31] @ 496
IR3:	.set	32

	.sect	".text"
	.global	_y
	.bss	_y,32,0,0
	.sym	_y,_y,51,2,512,,32
	.global	_r
	.global	_oflag
	.file	"test.c"
	.global	_main
	.sym	_main,_main,32,2,0
	.func	4

;***************************************************************
;* FUNCTION DEF: _main                                         *
;***************************************************************
_main:
         FRAME     #-5
	 nop
	.line	4
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x,A
         CALL      #_corr_raw
         ; call occurs [#_corr_raw]
         LD        A,A
         STL       A,*(_oflag)
	.line	5
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x,A
         CALL      #_corr_bias
         ; call occurs [#_corr_bias]
         LD        A,A
         STL       A,*(_oflag)
	.line	6
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x,A
         CALL      #_corr_unbias
         ; call occurs [#_corr_unbias]
         LD        A,A
         STL       A,*(_oflag)
	.line	8
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x1,A
         CALL      #_corr_raw
         ; call occurs [#_corr_raw]
         LD        A,A
         STL       A,*(_oflag)
	.line	9
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x1,A
         CALL      #_corr_bias
         ; call occurs [#_corr_bias]
         LD        A,A
         STL       A,*(_oflag)
	.line	10
         ST        #16,*SP(3)
         ST        #16,*SP(2)
         ST        #_r,*SP(1)
         ST        #_y,*SP(0)
         LD        #_x1,A
         CALL      #_corr_unbias
         ; call occurs [#_corr_unbias]
         LD        A,A
         STL       A,*(_oflag)
L2:
	.line	12
         B         L2
         ; branch occurs
	.line	14
	.endfunc	17,000000000h,5


	.global	_r
	.bss	_r,32,0,0
	.sym	_r,_r,51,2,512,,32
	.global	_oflag
	.bss	_oflag,1,0,0
	.sym	_oflag,_oflag,3,2,16

⌨️ 快捷键说明

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