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

📄 dspbird.asm

📁 IO口完整代码
💻 ASM
📖 第 1 页 / 共 2 页
字号:
;***************************************************************
;* TMS320C54x ANSI C Codegen                      Version 3.70 *
;* Date/Time created: Tue Jun 20 16:20:41 2006                 *
;***************************************************************
	.mmregs
FP	.set	AR7
	.c_mode
	.file	"dspbird.cpp"

	.sect	".const"
	.align	1
_SREG:
	.field  	0,16			; _SREG @ 0
	.sect	".text"
	.sym	_SREG,_SREG, 24, 3, 16, __TI_SREG

	.sect	".const"
	.align	1
_McBSP0:
	.field  	32,16			; _McBSP0 @ 0
	.sect	".text"
	.sym	_McBSP0,_McBSP0, 24, 3, 16, __TI_McBSP0

	.sect	".const"
	.align	1
_McBSP1:
	.field  	64,16			; _McBSP1 @ 0
	.sect	".text"
	.sym	_McBSP1,_McBSP1, 24, 3, 16, __TI_McBSP1

	.sect	".const"
	.align	1
_TIMER0:
	.field  	36,16			; _TIMER0 @ 0
	.sect	".text"
	.sym	_TIMER0,_TIMER0, 24, 3, 16, __TI_TIMER

	.sect	".const"
	.align	1
_TIMER1:
	.field  	48,16			; _TIMER1 @ 0
	.sect	".text"
	.sym	_TIMER1,_TIMER1, 24, 3, 16, __TI_TIMER
	.global	_IOXF
	.bss	_IOXF,1,0,0
	.sym	_IOXF,_IOXF, 4, 2, 16
	.global	_SystemRamTest
	.bss	_SystemRamTest,1,0,0
	.sym	_SystemRamTest,_SystemRamTest, 14, 2, 16
	.global	_Sys
	.bss	_Sys,1,0,0
	.sym	_Sys,_Sys, 8, 2, 16, _SystemObj

	.sect	".cinit"
	.align	1
	.field  	1,16
	.field  	_count$1+0,16
	.field  	0,16			; _count$1 @ 0
	.sect	".text"
	.bss	_count$1,1,0,0
	.sym	_count,_count$1, 4, 3, 16
;	d:\ti\c5400\cgtools\bin\opt500.exe -O3 -Z C:\DOCUME~1\liu\LOCALS~1\Temp\TI2660_2 C:\DOCUME~1\liu\LOCALS~1\Temp\TI2660_4 -w D:/dspbird/Debug 
	.sect	".text"
	.global	_main
	.sym	_main,_main, 36, 2, 0
	.func	151

;***************************************************************
;* FUNCTION DEF: _main                                         *
;***************************************************************
_main:
	.line	2
        PSHM      AR1
	.line	3
 rsbx intm
L1:    
	.line	6
 nop
	.line	8
 nop
	.line	10
        LD        *(_IOXF),A            ; |160| 
        BC        L2,ANEQ               ; |160| 
        ; branch occurs ; |160| 
	.line	14
        STM       #7,AR1
        ANDM      #57343,*AR1           ; |164| 
        B         L3                    ; |164| 
        ; branch occurs ; |164| 
L2:    
	.line	11
        STM       #7,AR1
        ORM       #8192,*AR1            ; |161| 
L3:    
	.line	16
 IDLE 1
	.line	17
        B         L1                    ; |167| 
        ; branch occurs ; |167| 
	.endfunc	168,000000400h,1


	.sect	".text"
	.global	_PllInit__9SystemObjFv
	.sym	_PllInit__9SystemObjFv,_PllInit__9SystemObjFv, 32, 2, 0
	.func	83

;***************************************************************
;* FUNCTION DEF: _PllInit__9SystemObjFv                        *
;***************************************************************
_PllInit__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
	.sym	_start,0, 14, 1, 16
        PSHM      AR1
        FRAME     #-1
	.line	4
        STM       #40,AR1
        ST        #8192,*AR1            ; |86| 
L4:    
	.line	6
        STM       #88,AR1
        ST        #0,*AR1               ; |88| 
	.line	7
 nop
	.line	8
        STM       #88,AR2
        BIT       *AR2,15               ; |90| 
        BC        L4,TC                 ; |90| 
        ; branch occurs ; |90| 
	.line	10
        ST        #37111,*AR1           ; |92| 
	.line	12
        ST        #0,*SP(0)             ; |94| 
        STM       #10000,AR0
        MVDK      *SP(0),*(AR1)
        CMPR      1,AR1                 ; |94| 
        BC        L6,NTC                ; |94| 
        ; branch occurs ; |94| 
L5:    
        ADDM      #1,*SP(0)             ; |94| 
        MVDK      *SP(0),*(AR1)
        CMPR      1,AR1                 ; |94| 
        BC        L5,TC                 ; |94| 
        ; branch occurs ; |94| 
L6:    
	.line	13
        FRAME     #1
        POPM      AR1
        RET
        ; return occurs
	.endfunc	95,000000400h,2


	.sect	".text"
	.global	_McBSP0Init__9SystemObjFv
	.sym	_McBSP0Init__9SystemObjFv,_McBSP0Init__9SystemObjFv, 32, 2, 0
	.func	97

;***************************************************************
;* FUNCTION DEF: _McBSP0Init__9SystemObjFv                     *
;***************************************************************
_McBSP0Init__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
        PSHM      AR1
	.line	3
        STM       #56,AR1
        ST        #0,*AR1               ; |99| 
	.line	4
        STM       #57,AR1
        ST        #0,*AR1               ; |100| 
	.line	5
        ANDM      #65534,*AR1           ; |101| 
	.line	6
        STM       #56,AR1
        ST        #1,*AR1               ; |102| 
	.line	7
        STM       #57,AR1
        ST        #0,*AR1               ; |103| 
	.line	8
        ANDM      #65534,*AR1           ; |104| 
	.line	9
        STM       #56,AR1
        ST        #14,*AR1              ; |105| 
	.line	10
        STM       #57,AR1
        ST        #12288,*AR1           ; |106| 
	.line	11
        ORM       #2560,*AR1            ; |107| 
	.line	12
        ORM       #1280,*AR1            ; |108| 
	.line	13
        POPM      AR1
        RET
        ; return occurs
	.endfunc	109,000000400h,1


	.sect	".text"
	.global	_McBSP1Init__9SystemObjFv
	.sym	_McBSP1Init__9SystemObjFv,_McBSP1Init__9SystemObjFv, 32, 2, 0
	.func	111

;***************************************************************
;* FUNCTION DEF: _McBSP1Init__9SystemObjFv                     *
;***************************************************************
_McBSP1Init__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
        PSHM      AR1
	.line	3
        STM       #72,AR1
        ST        #0,*AR1               ; |113| 
	.line	4
        STM       #73,AR1
        ST        #0,*AR1               ; |114| 
	.line	5
        ANDM      #65534,*AR1           ; |115| 
	.line	6
        STM       #72,AR1
        ST        #1,*AR1               ; |116| 
	.line	7
        STM       #73,AR1
        ST        #0,*AR1               ; |117| 
	.line	8
        ANDM      #65534,*AR1           ; |118| 
	.line	9
        STM       #72,AR1
        ST        #14,*AR1              ; |119| 
	.line	10
        STM       #73,AR1
        ST        #12288,*AR1           ; |120| 
	.line	11
        ORM       #2560,*AR1            ; |121| 
	.line	12
        ORM       #1280,*AR1            ; |122| 
	.line	13
        POPM      AR1
        RET
        ; return occurs
	.endfunc	123,000000400h,1


	.sect	".text"
	.global	_TIMER0Init__9SystemObjFv
	.sym	_TIMER0Init__9SystemObjFv,_TIMER0Init__9SystemObjFv, 32, 2, 0
	.func	125

;***************************************************************
;* FUNCTION DEF: _TIMER0Init__9SystemObjFv                     *
;***************************************************************
_TIMER0Init__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
        PSHM      AR1
	.line	3
        STM       #38,AR1
        ORM       #16,*AR1              ; |127| 
	.line	4
        STM       #37,AR1
        ST        #60000,*AR1           ; |128| 
	.line	5
        STM       #38,AR1
        ANDM      #65519,*AR1           ; |129| 
	.line	6
        STM       #0,AR1
        ORM       #8,*AR1               ; |130| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	131,000000400h,1


	.sect	".text"
	.global	_TIMER1Init__9SystemObjFv
	.sym	_TIMER1Init__9SystemObjFv,_TIMER1Init__9SystemObjFv, 32, 2, 0
	.func	133

;***************************************************************
;* FUNCTION DEF: _TIMER1Init__9SystemObjFv                     *
;***************************************************************
_TIMER1Init__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
        PSHM      AR1
	.line	3
        STM       #50,AR1
        ORM       #16,*AR1              ; |135| 
	.line	4
        STM       #49,AR1
        ST        #55000,*AR1           ; |136| 
	.line	5
        STM       #50,AR1
        ANDM      #65519,*AR1           ; |137| 
	.line	6
        STM       #0,AR1
        ORM       #128,*AR1             ; |138| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	139,000000400h,1


	.sect	".text"
	.global	_EintInit__9SystemObjFv
	.sym	_EintInit__9SystemObjFv,_EintInit__9SystemObjFv, 32, 2, 0
	.func	141

;***************************************************************
;* FUNCTION DEF: _EintInit__9SystemObjFv                       *
;***************************************************************
_EintInit__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
        PSHM      AR1
	.line	3
        STM       #0,AR1
        ORM       #1,*AR1               ; |143| 
	.line	4
        ORM       #2,*AR1               ; |144| 
	.line	5
        ORM       #4,*AR1               ; |145| 
	.line	6
        ORM       #256,*AR1             ; |146| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	147,000000400h,1


	.sect	".text"
	.global	_SystemInit__9SystemObjFv
	.sym	_SystemInit__9SystemObjFv,_SystemInit__9SystemObjFv, 32, 2, 0
	.func	66

;***************************************************************
;* FUNCTION DEF: _SystemInit__9SystemObjFv                     *
;***************************************************************
_SystemInit__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
;* AR1   assigned to _this
	.sym	_this,10, 24, 4, 16, _SystemObj
        PSHM      AR1
        STLM      A,AR1
	.line	3
        CALL      #_PllInit__9SystemObjFv ; |68| 
        ; call occurs [#_PllInit__9SystemObjFv] ; |68| 
	.line	4
        CALL      #_McBSP0Init__9SystemObjFv ; |69| 
        ; call occurs [#_McBSP0Init__9SystemObjFv] ; |69| 
	.line	5
        CALL      #_McBSP1Init__9SystemObjFv ; |70| 
        ; call occurs [#_McBSP1Init__9SystemObjFv] ; |70| 
        STM       #38,AR2
        ORM       #16,*AR2              ; |127| 
        STM       #37,AR2
        ST        #60000,*AR2           ; |128| 
        STM       #38,AR2
        ANDM      #65519,*AR2           ; |129| 
        STM       #0,AR2
        ORM       #8,*AR2               ; |130| 
        STM       #50,AR2
        ORM       #16,*AR2              ; |135| 
        STM       #49,AR2
        ST        #55000,*AR2           ; |136| 
        STM       #50,AR2
        ANDM      #65519,*AR2           ; |137| 
        STM       #0,AR2
        ORM       #128,*AR2             ; |138| 
        ORM       #1,*AR2               ; |143| 
        ORM       #2,*AR2               ; |144| 
        ORM       #4,*AR2               ; |145| 
        ORM       #256,*AR2             ; |146| 
	.line	9
        CMPM      *(_SystemRamTest),#21930 ; |74| 
        BC        L7,TC                 ; |74| 
        ; branch occurs ; |74| 
	.line	10
        ST        #21930,*(_SystemRamTest) ; |75| 
L7:    
	.line	12
        CMPM      *AR1,#21930           ; |77| 
        BC        L8,TC                 ; |77| 
        ; branch occurs ; |77| 
	.line	13
        ST        #21930,*AR1           ; |78| 
L8:    
	.line	15
        ST        #0,*(_IOXF)           ; |80| 
	.line	16
        POPM      AR1
        RET
        ; return occurs
	.endfunc	81,000000400h,1


	.sect	".text"
	.global	___ct__9SystemObjFv
	.sym	___ct__9SystemObjFv,___ct__9SystemObjFv, 104, 2, 0, _SystemObj
	.func	48

;***************************************************************
;* FUNCTION DEF: ___ct__9SystemObjFv                           *
;***************************************************************
___ct__9SystemObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _SystemObj
;* AR1   assigned to _this
	.sym	_this,10, 24, 4, 16, _SystemObj
        PSHM      AR1
        STLM      A,AR1
        NOP
        NOP
        BANZ      L9,*AR1               ; |49| 
        ; branch occurs ; |49| 
        LD        #1,A
        CALL      #___nw__FUi           ; |49| 
        ; call occurs [#___nw__FUi] ; |49| 
        STLM      A,AR1
        NOP
        LDM       AR1,A                 ; |49| 
        BC        L10,AEQ               ; |49| 
        ; branch occurs ; |49| 

⌨️ 快捷键说明

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