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

📄 c6xdskinit.asm

📁 DSP6000+AD535语音采集的单频噪声消除的C语音代码
💻 ASM
📖 第 1 页 / 共 4 页
字号:
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_mcbsp0_init:
;** --------------------------------------------------------------------------*
	.line	2
	.line	3
           MVKL    .S2     0x18c0008,B5      ; |12| 

           MVKH    .S2     0x18c0008,B5      ; |12| 
||         ZERO    .D2     B4                ; |12| 

           STW     .D2T2   B4,*B5            ; |12| 
	.line	4
           MVKL    .S1     0x18c0024,A0      ; |13| 
           MVKH    .S1     0x18c0024,A0      ; |13| 
           STW     .D1T2   B4,*A0            ; |13| 
	.line	5
           MVKL    .S1     0x18c000c,A3      ; |14| 
           MVKL    .S1     0x10040,A0        ; |14| 
           MVKH    .S1     0x18c000c,A3      ; |14| 
           MVKH    .S1     0x10040,A0        ; |14| 
           STW     .D1T1   A0,*A3            ; |14| 
	.line	6
           MVKL    .S2     0x18c0010,B5      ; |15| 
           MVKH    .S2     0x18c0010,B5      ; |15| 
           STW     .D2T1   A0,*B5            ; |15| 
	.line	7
           MVKL    .S2     0x18c0004,B5      ; |16| 
           MVKH    .S2     0x18c0004,B5      ; |16| 
           STW     .D2T2   B4,*B5            ; |16| 
	.line	8

           MVKL    .S2     0x12001,B4        ; |17| 
||         MVKL    .S1     0x18c0008,A0      ; |17| 

           MVKH    .S2     0x12001,B4        ; |17| 
||         MVKH    .S1     0x18c0008,A0      ; |17| 

           STW     .D1T2   B4,*A0            ; |17| 
	.line	9
           RET     .S2     B3                ; |18| 
           NOP             5
           ; BRANCH OCCURS                   ; |18| 
	.endfunc	18,000000000h,0



	.sect	".text"
	.global	_input_sample
	.sym	_input_sample,_input_sample, 36, 2, 0
	.func	134

;******************************************************************************
;* FUNCTION NAME: _input_sample                                               *
;*                                                                            *
;*   Regs Modified     : A0,A1,A3,A4,B0,B3,SP                                 *
;*   Regs Used         : A0,A1,A3,A4,B0,B3,SP                                 *
;*   Local Frame Size  : 0 Args + 0 Auto + 4 Save = 4 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_input_sample:
;** --------------------------------------------------------------------------*
	.line	2
           STW     .D2T2   B3,*SP--(8)       ; |135| 
	.line	3
           CALL    .S1     _mcbsp0_read      ; |136| 
           MVKL    .S2     RL1,B3            ; |136| 
           MVKH    .S2     RL1,B3            ; |136| 
           NOP             3
RL1:       ; CALL OCCURS                     ; |136| 
	.line	4
           LDW     .D2T2   *++SP(8),B3       ; |137| 
           NOP             4
           RET     .S2     B3                ; |137| 
           NOP             5
           ; BRANCH OCCURS                   ; |137| 
	.endfunc	137,000080000h,8



	.sect	".text"
	.global	_enableSpecificINT
	.file	"c6xinterrupts.h"
	.sym	_enableSpecificINT,_enableSpecificINT, 32, 2, 0
	.func	38

;******************************************************************************
;* FUNCTION NAME: _enableSpecificINT                                          *
;*                                                                            *
;*   Regs Modified     : A0,A3,B4                                             *
;*   Regs Used         : A0,A3,A4,B3,B4                                       *
;*   Local Frame Size  : 0 Args + 0 Auto + 0 Save = 0 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_enableSpecificINT:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_INTnumber,4, 4, 17, 32
	.sym	_INTnumber,4, 4, 4, 32
	.line	3
           MVC     .S2     IER,B4            ; |40| 
           EXTU    .S1     A4,27,27,A3       ; |40| 
           EXTU    .S1     A4,27,22,A0       ; |40| 
           OR      .S1     A0,A3,A0          ; |40| 
           SET     .S1X    B4,A0,A0          ; |40| 
           MVC     .S2X    A0,IER            ; |40| 
	.line	4
           RET     .S2     B3                ; |41| 
           NOP             5
           ; BRANCH OCCURS                   ; |41| 
	.endfunc	41,000000000h,0



	.sect	".text"
	.global	_enableNMI
	.sym	_enableNMI,_enableNMI, 32, 2, 0
	.func	31

;******************************************************************************
;* FUNCTION NAME: _enableNMI                                                  *
;*                                                                            *
;*   Regs Modified     : B4                                                   *
;*   Regs Used         : B3,B4                                                *
;*   Local Frame Size  : 0 Args + 0 Auto + 0 Save = 0 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_enableNMI:
;** --------------------------------------------------------------------------*
	.line	2
	.line	3
           MVC     .S2     IER,B4            ; |33| 
           SET     .S2     B4,1,1,B4         ; |33| 
           MVC     .S2     B4,IER            ; |33| 
	.line	4
           RET     .S2     B3                ; |34| 
           NOP             5
           ; BRANCH OCCURS                   ; |34| 
	.endfunc	34,000000000h,0



	.sect	".text"
	.global	_enableGlobalINT
	.sym	_enableGlobalINT,_enableGlobalINT, 32, 2, 0
	.func	24

;******************************************************************************
;* FUNCTION NAME: _enableGlobalINT                                            *
;*                                                                            *
;*   Regs Modified     : B4                                                   *
;*   Regs Used         : B3,B4,DP,SP                                          *
;*   Local Frame Size  : 0 Args + 0 Auto + 0 Save = 0 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_enableGlobalINT:
;** --------------------------------------------------------------------------*
	.line	2
	.line	3
           MVC     .S2     CSR,B4            ; |26| 
           OR      .S2     1,B4,B4           ; |26| 
           MVC     .S2     B4,CSR            ; |26| 
	.line	4
           RET     .S2     B3                ; |27| 
           NOP             5
           ; BRANCH OCCURS                   ; |27| 
	.endfunc	27,000000000h,0



	.sect	".text"
	.global	_config_Interrupt_Selector
	.sym	_config_Interrupt_Selector,_config_Interrupt_Selector, 32, 2, 0
	.func	51

;******************************************************************************
;* FUNCTION NAME: _config_Interrupt_Selector                                  *
;*                                                                            *
;*   Regs Modified     : A0,A1,B4,B5,B6,SP                                    *
;*   Regs Used         : A0,A1,A4,B3,B4,B5,B6,SP                              *
;*   Local Frame Size  : 0 Args + 8 Auto + 0 Save = 8 byte                    *
;******************************************************************************

;******************************************************************************
;*                                                                            *
;* Using -g (debug) with optimization (-o3) may disable key optimizations!    *
;*                                                                            *
;******************************************************************************
_config_Interrupt_Selector:
;** --------------------------------------------------------------------------*
	.line	2
	.sym	_INTnumber,4, 4, 17, 32
	.sym	_INTsource,20, 4, 17, 32
	.sym	_INTnumber,4, 4, 4, 32
	.sym	_INTsource,20, 4, 4, 32
	.sym	_IMLvalue,4, 9, 1, 32, $$fake0
	.sym	_IMHvalue,8, 9, 1, 32, $$fake2
           SUB     .D2     SP,8,SP           ; |52| 
	.line	37
           MVKL    .S2     0x19c0004,B5      ; |87| 
           MVKH    .S2     0x19c0004,B5      ; |87| 
           LDW     .D2T2   *B5,B5            ; |87| 
           NOP             4
           STW     .D2T2   B5,*+SP(4)        ; |87| 
	.line	38
           ZERO    .D1     A0                ; |88| 
           MVKH    .S1     0x19c0000,A0      ; |88| 
           LDW     .D1T1   *A0,A0            ; |88| 
           NOP             4
           STW     .D2T1   A0,*+SP(8)        ; |88| 
	.line	40
           SUB     .D1     A4,4,A0           ; |90| 
           CMPGTU  .L1     A0,11,A1          ; |90| 
   [ A1]   B       .S1     L21               ; |90| 

   [!A1]   MVKL    .S2     SW1,B5            ; |90| 
|| [!A1]   SHL     .S1     A4,2,A0           ; |90| 

   [!A1]   MVKH    .S2     SW1,B5            ; |90| 
|| [!A1]   SUB     .D1     A0,16,A0          ; |90| 

   [!A1]   ADD     .S1X    B5,A0,A0          ; |90| 
   [!A1]   LDW     .D1T1   *A0,A0            ; |90| 
           NOP             1
           ; BRANCH OCCURS                   ; |90| 
;** --------------------------------------------------------------------------*
           NOP             3
           B       .S2X    A0                ; |90| 
           NOP             5
           ; BRANCH OCCURS                   ; |90| 

	.sect	".switch"
SW1:	.word	L20	; 4
	.word	L19	; 5
	.word	L18	; 6
	.word	L17	; 7
	.word	L16	; 8
	.word	L15	; 9
	.word	L14	; 10
	.word	L13	; 11
	.word	L12	; 12
	.word	L11	; 13
	.word	L10	; 14
	.word	L9	; 15

	.sect	".text"
;** --------------------------------------------------------------------------*
L9:    
	.line	87
           LDW     .D2T2   *+SP(8),B5        ; |137| 
           EXTU    .S2     B4,27,1,B4        ; |137| 
           B       .S1     L21               ; |137| 
           NOP             2
           CLR     .S2     B5,26,30,B5       ; |137| 
           OR      .S2     B4,B5,B4          ; |137| 
           STW     .D2T2   B4,*+SP(8)        ; |137| 
           ; BRANCH OCCURS                   ; |137| 
;** --------------------------------------------------------------------------*
L10:    
	.line	83
           LDW     .D2T2   *+SP(8),B5        ; |133| 
           EXTU    .S2     B4,27,6,B4        ; |133| 
           B       .S1     L21               ; |133| 
           NOP             2
           CLR     .S2     B5,21,25,B5       ; |133| 
           OR      .S2     B4,B5,B4          ; |133| 
           STW     .D2T2   B4,*+SP(8)        ; |133| 
           ; BRANCH OCCURS                   ; |133| 
;** --------------------------------------------------------------------------*
L11:    
	.line	79
           LDW     .D2T2   *+SP(8),B5        ; |129| 
           EXTU    .S2     B4,27,11,B4       ; |129| 
           B       .S1     L21               ; |129| 
           NOP             2
           CLR     .S2     B5,16,20,B5       ; |129| 
           OR      .S2     B4,B5,B4          ; |129| 
           STW     .D2T2   B4,*+SP(8)        ; |129| 
           ; BRANCH OCCURS                   ; |129| 
;** --------------------------------------------------------------------------*
L12:    
	.line	75
           LDW     .D2T2   *+SP(8),B5        ; |125| 
           EXTU    .S2     B4,27,17,B4       ; |125| 
           B       .S1     L21               ; |125| 
           NOP             2
           CLR     .S2     B5,10,14,B5       ; |125| 
           OR      .S2     B4,B5,B4          ; |125| 
           STW     .D2T2   B4,*+SP(8)        ; |125| 
           ; BRANCH OCCURS                   ; |125| 
;** --------------------------------------------------------------------------*
L13:    
	.line	71
           LDW     .D2T2   *+SP(8),B5        ; |121| 
           EXTU    .S2     B4,27,22,B4       ; |121| 
           B       .S1     L21               ; |121| 
           NOP             2
           CLR     .S2     B5,5,9,B5         ; |121| 
           OR      .S2     B4,B5,B4          ; |121| 
           STW     .D2T2   B4,*+SP(8)        ; |121| 
           ; BRANCH OCCURS                   ; |121| 
;** --------------------------------------------------------------------------*
L14:    
	.line	67
           LDW     .D2T2   *+SP(8),B5        ; |117| 
           EXTU    .S2     B4,27,27,B4       ; |117| 
           B       .S1     L21               ; |117| 
           NOP             2
           CLR     .S2     B5,0,4,B5         ; |117| 
           OR      .S2     B4,B5,B4          ; |117| 
           STW     .D2T2   B4,*+SP(8)        ; |117| 

⌨️ 快捷键说明

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