📄 c6xdskinit.asm
字号:
;******************************************************************************
;* TMS320C6x C/C++ Codegen PC Version 4.32 *
;* Date/Time created: Sun May 06 12:59:05 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 "c6xdskinit.c"
.sect ".cinit:c"
.align 8
.field (CIR - $) - 8, 32
.field _polling+0,32
.field 0,8 ; _polling @ 0
.sect ".text"
.global _polling
_polling: .usect ".bss:c",1,1
.sym _polling,_polling, 2, 2, 8
; d:\ti\c6000\cgtools\bin\opt6x.exe -O3 C:\DOCUME~1\dsp\LOCALS~1\Temp\TI860_2 C:\DOCUME~1\dsp\LOCALS~1\Temp\TI860_5 -w D:/ti/myprojects/Notch2/
.sect ".text"
.global _mcbsp0_write
.sym _mcbsp0_write,_mcbsp0_write, 32, 2, 0
.func 20
;******************************************************************************
;* FUNCTION NAME: _mcbsp0_write *
;* *
;* Regs Modified : A0,A1,A3,A4,A5,B0,B4 *
;* Regs Used : A0,A1,A3,A4,A5,B0,B3,B4,DP *
;* Local Frame Size : 0 Args + 0 Auto + 0 Save = 0 byte *
;******************************************************************************
;******************************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key optimizations! *
;* *
;******************************************************************************
_mcbsp0_write:
;** --------------------------------------------------------------------------*
.line 2
.sym _out_data,4, 4, 17, 32
.sym _out_data,5, 4, 4, 32
.sym _temp,16, 4, 4, 32
.sym _temp,0, 4, 4, 32
MV .D1 A4,A5 ; |21|
.line 5
LDB .D2T2 *+DP(_polling),B0 ; |24|
NOP 4
[!B0] B .S1 L4 ; |24|
NOP 5
; BRANCH OCCURS ; |24|
;** --------------------------------------------------------------------------*
.line 7
MVKL .S1 0x18c0008,A0 ; |26|
MVKH .S1 0x18c0008,A0 ; |26|
LDW .D1T1 *A0,A0 ; |26|
ZERO .D2 B4 ; |26|
MVKH .S2 0x20000,B4 ; |26|
NOP 2
AND .S2X B4,A0,B0 ; |26|
[ B0] B .S1 L4 ; |26|
ZERO .D1 A3 ; |26|
MVKH .S1 0x20000,A3 ; |26|
[!B0] MVKL .S1 0x18c0008,A0 ; |28| (P) <0,0>
[!B0] MVKH .S1 0x18c0008,A0 ; |28| (P) <0,1>
[!B0] LDW .D1T1 *A0,A4 ; |28| (P) <0,2> ^
; BRANCH OCCURS ; |26|
;** --------------------------------------------------------------------------*
MVK .S2 0x1,B0
MVKL .S1 0x18c0008,A0 ; |28| (P) <1,0>
NOP 2
AND .L1 A3,A4,A1 ; |28| (P) <0,7> ^
;*----------------------------------------------------------------------------*
;* SOFTWARE PIPELINE INFORMATION
;*
;* Loop source line : 27
;* Loop opening brace source line : 28
;* Loop closing brace source line : 28
;* Known Minimum Trip Count : 1
;* Known Max Trip Count Factor : 1
;* Loop Carried Dependency Bound(^) : 7
;* Unpartitioned Resource Bound : 2
;* Partitioned Resource Bound(*) : 2
;* Resource Partition:
;* A-side B-side
;* .L units 0 0
;* .S units 2* 1
;* .D units 1 0
;* .M units 0 0
;* .X cross paths 0 0
;* .T address paths 1 0
;* Long read paths 0 0
;* Long write paths 0 0
;* Logical ops (.LS) 1 0 (.L or .S unit)
;* Addition ops (.LSD) 0 1 (.L or .S or .D unit)
;* Bound(.L .S .LS) 2* 1
;* Bound(.L .S .D .LS .LSD) 2* 1
;*
;* Searching for software pipeline schedule at ...
;* ii = 7 Schedule found with 3 iterations in parallel
;* Done
;*
;* Loop is interruptible
;* Collapsed epilog stages : 2
;* Prolog not removed
;* Collapsed prolog stages : 0
;*
;* Minimum required memory pad : 0 bytes
;*
;* Minimum safe trip count : 1
;*----------------------------------------------------------------------------*
L1: ; PIPED LOOP PROLOG
;** --------------------------------------------------------------------------*
L2: ; PIPED LOOP KERNEL
[ A1] ZERO .D2 B0 ; <0,8> ^
|| MVKH .S1 0x18c0008,A0 ; |28| <1,1>
[ B0] B .S2 L2 ; |28| <0,9>
|| [ B0] LDW .D1T1 *A0,A4 ; |28| <1,2> ^
NOP 4
AND .L1 A3,A4,A1 ; |28| <1,7> ^
|| MVKL .S1 0x18c0008,A0 ; |28| <2,0>
;** --------------------------------------------------------------------------*
L3: ; PIPED LOOP EPILOG
;** --------------------------------------------------------------------------*
L4:
.line 11
MVKL .S1 0x18c0004,A0 ; |30|
MVKH .S1 0x18c0004,A0 ; |30|
STW .D1T1 A5,*A0 ; |30|
.line 12
RET .S2 B3 ; |31|
NOP 5
; BRANCH OCCURS ; |31|
.endfunc 31,000000000h,0
.sect ".text"
.global _output_sample
.sym _output_sample,_output_sample, 32, 2, 0
.func 128
;******************************************************************************
;* FUNCTION NAME: _output_sample *
;* *
;* Regs Modified : A0,A1,A3,A4,A5,B0,B3,B4,SP *
;* Regs Used : A0,A1,A3,A4,A5,B0,B3,B4,SP *
;* Local Frame Size : 0 Args + 0 Auto + 4 Save = 4 byte *
;******************************************************************************
;******************************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key optimizations! *
;* *
;******************************************************************************
_output_sample:
;** --------------------------------------------------------------------------*
.line 2
.sym _out_data,4, 4, 17, 32
.sym _out_data,4, 4, 4, 32
STW .D2T2 B3,*SP--(8) ; |129|
.line 3
CALL .S1 _mcbsp0_write ; |130|
MVKL .S2 RL0,B3 ; |130|
EXTU .S1 A4,16,17,A0 ; |130|
MVKH .S2 RL0,B3 ; |130|
ADD .D1 A0,A0,A4 ; |130|
NOP 1
RL0: ; CALL OCCURS ; |130|
.line 4
LDW .D2T2 *++SP(8),B3 ; |131|
NOP 4
RET .S2 B3 ; |131|
NOP 5
; BRANCH OCCURS ; |131|
.endfunc 131,000080000h,8
.sect ".text"
.global _mcbsp0_read
.sym _mcbsp0_read,_mcbsp0_read, 36, 2, 0
.func 33
;******************************************************************************
;* FUNCTION NAME: _mcbsp0_read *
;* *
;* Regs Modified : A0,A1,A3,A4,B0 *
;* Regs Used : A0,A1,A3,A4,B0,B3,DP *
;* Local Frame Size : 0 Args + 0 Auto + 0 Save = 0 byte *
;******************************************************************************
;******************************************************************************
;* *
;* Using -g (debug) with optimization (-o3) may disable key optimizations! *
;* *
;******************************************************************************
_mcbsp0_read:
;** --------------------------------------------------------------------------*
.line 2
.sym _temp,1, 4, 4, 32
.sym _temp,0, 4, 4, 32
.sym _temp,4, 4, 4, 32
.line 5
LDB .D2T2 *+DP(_polling),B0 ; |37|
NOP 4
[!B0] B .S1 L8 ; |37|
NOP 5
; BRANCH OCCURS ; |37|
;** --------------------------------------------------------------------------*
.line 7
MVKL .S1 0x18c0008,A0 ; |39|
MVKH .S1 0x18c0008,A0 ; |39|
LDW .D1T1 *A0,A0 ; |39|
NOP 4
AND .S1 2,A0,A1 ; |39|
[ A1] B .S1 L8 ; |39|
[!A1] MVKL .S1 0x18c0008,A0 ; |41| (P) <0,0>
[!A1] MVKH .S1 0x18c0008,A0 ; |41| (P) <0,1>
[!A1] LDW .D1T1 *A0,A3 ; |41| (P) <0,2> ^
NOP 2
; BRANCH OCCURS ; |39|
;** --------------------------------------------------------------------------*
MVK .S2 0x1,B0
MVKL .S1 0x18c0008,A0 ; |41| (P) <1,0>
AND .L1 2,A3,A1 ; |41| (P) <0,7> ^
;*----------------------------------------------------------------------------*
;* SOFTWARE PIPELINE INFORMATION
;*
;* Loop source line : 40
;* Loop opening brace source line : 41
;* Loop closing brace source line : 41
;* Known Minimum Trip Count : 1
;* Known Max Trip Count Factor : 1
;* Loop Carried Dependency Bound(^) : 7
;* Unpartitioned Resource Bound : 2
;* Partitioned Resource Bound(*) : 2
;* Resource Partition:
;* A-side B-side
;* .L units 0 0
;* .S units 2* 1
;* .D units 1 0
;* .M units 0 0
;* .X cross paths 0 0
;* .T address paths 1 0
;* Long read paths 0 0
;* Long write paths 0 0
;* Logical ops (.LS) 1 0 (.L or .S unit)
;* Addition ops (.LSD) 0 1 (.L or .S or .D unit)
;* Bound(.L .S .LS) 2* 1
;* Bound(.L .S .D .LS .LSD) 2* 1
;*
;* Searching for software pipeline schedule at ...
;* ii = 7 Schedule found with 3 iterations in parallel
;* Done
;*
;* Loop is interruptible
;* Collapsed epilog stages : 2
;* Prolog not removed
;* Collapsed prolog stages : 0
;*
;* Minimum required memory pad : 0 bytes
;*
;* Minimum safe trip count : 1
;*----------------------------------------------------------------------------*
L5: ; PIPED LOOP PROLOG
;** --------------------------------------------------------------------------*
L6: ; PIPED LOOP KERNEL
[ A1] ZERO .D2 B0 ; <0,8> ^
|| MVKH .S1 0x18c0008,A0 ; |41| <1,1>
[ B0] B .S2 L6 ; |41| <0,9>
|| [ B0] LDW .D1T1 *A0,A3 ; |41| <1,2> ^
NOP 4
AND .L1 2,A3,A1 ; |41| <1,7> ^
|| MVKL .S1 0x18c0008,A0 ; |41| <2,0>
;** --------------------------------------------------------------------------*
L7: ; PIPED LOOP EPILOG
;** --------------------------------------------------------------------------*
L8:
.line 11
ZERO .D1 A0 ; |43|
MVKH .S1 0x18c0000,A0 ; |43|
LDW .D1T1 *A0,A4 ; |43|
.line 12
.line 13
RET .S2 B3 ; |45|
NOP 5
; BRANCH OCCURS ; |45|
.endfunc 45,000000000h,0
.sect ".text"
.global _mcbsp0_init
.sym _mcbsp0_init,_mcbsp0_init, 32, 2, 0
.func 10
;******************************************************************************
;* FUNCTION NAME: _mcbsp0_init *
;* *
;* Regs Modified : A0,A3,B4,B5 *
;* Regs Used : A0,A3,B3,B4,B5 *
;* Local Frame Size : 0 Args + 0 Auto + 0 Save = 0 byte *
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -