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

📄 dspbird.asm

📁 转载: DSP串口硬件SPI接口LCD12864显示C++程序代码 细描述: 终于把5409的McBSP的配置搞清楚了!现在就把我做的写出来
💻 ASM
📖 第 1 页 / 共 3 页
字号:
	.sym	_TIMER0Init__9SystemObjFv,_TIMER0Init__9SystemObjFv, 32, 2, 0
	.func	213

;***************************************************************
;* 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              ; |215| 
	.line	4
        STM       #37,AR1
        ST        #60000,*AR1           ; |216| 
	.line	5
        STM       #38,AR1
        ANDM      #65519,*AR1           ; |217| 
	.line	6
        STM       #0,AR1
        ORM       #8,*AR1               ; |218| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	219,000000400h,1


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

;***************************************************************
;* 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              ; |223| 
	.line	4
        STM       #49,AR1
        ST        #55000,*AR1           ; |224| 
	.line	5
        STM       #50,AR1
        ANDM      #65519,*AR1           ; |225| 
	.line	6
        STM       #0,AR1
        ORM       #128,*AR1             ; |226| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	227,000000400h,1


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

;***************************************************************
;* 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               ; |231| 
	.line	4
        ORM       #2,*AR1               ; |232| 
	.line	5
        ORM       #4,*AR1               ; |233| 
	.line	6
        ORM       #256,*AR1             ; |234| 
	.line	7
        POPM      AR1
        RET
        ; return occurs
	.endfunc	235,000000400h,1


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

;***************************************************************
;* 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 ; |117| 
        ; call occurs [#_PllInit__9SystemObjFv] ; |117| 
	.line	4
        CALL      #_McBSP0Init__9SystemObjFv ; |118| 
        ; call occurs [#_McBSP0Init__9SystemObjFv] ; |118| 
	.line	5
        CALL      #_McBSP1Init__9SystemObjFv ; |119| 
        ; call occurs [#_McBSP1Init__9SystemObjFv] ; |119| 
        STM       #38,AR2
        ORM       #16,*AR2              ; |215| 
        STM       #37,AR2
        ST        #60000,*AR2           ; |216| 
        STM       #38,AR2
        ANDM      #65519,*AR2           ; |217| 
        STM       #0,AR2
        ORM       #8,*AR2               ; |218| 
        STM       #50,AR2
        ORM       #16,*AR2              ; |223| 
        STM       #49,AR2
        ST        #55000,*AR2           ; |224| 
        STM       #50,AR2
        ANDM      #65519,*AR2           ; |225| 
        STM       #0,AR2
        ORM       #128,*AR2             ; |226| 
        ORM       #1,*AR2               ; |231| 
        ORM       #2,*AR2               ; |232| 
        ORM       #4,*AR2               ; |233| 
        ORM       #256,*AR2             ; |234| 
	.line	9
        CMPM      *(_SystemRamTest),#21930 ; |123| 
        BC        L7,TC                 ; |123| 
        ; branch occurs ; |123| 
	.line	10
        ST        #21930,*(_SystemRamTest) ; |124| 
L7:    
	.line	12
        CMPM      *AR1,#21930           ; |126| 
        BC        L8,TC                 ; |126| 
        ; branch occurs ; |126| 
	.line	13
        ST        #21930,*AR1           ; |127| 
L8:    
	.line	15
        ST        #0,*(_IOXF)           ; |129| 
	.line	16
        POPM      AR1
        RET
        ; return occurs
	.endfunc	130,000000400h,1


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

;***************************************************************
;* 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               ; |98| 
        ; branch occurs ; |98| 
        LD        #1,A
        CALL      #___nw__FUi           ; |98| 
        ; call occurs [#___nw__FUi] ; |98| 
        STLM      A,AR1
        NOP
        LDM       AR1,A                 ; |98| 
        BC        L10,AEQ               ; |98| 
        ; branch occurs ; |98| 
L9:    
	.line	3
 ssbx intm
	.line	4
        STM       #0,AR2
        ST        #0,*AR2               ; |100| 
	.line	5
        STM       #1,AR2
        ST        #65535,*AR2           ; |101| 
	.line	7
        STM       #29,AR2
        ST        #224,*AR2             ; |103| 
	.line	16
        LDM       AR1,A
        CALL      #_SystemInit__9SystemObjFv ; |112| 
        ; call occurs [#_SystemInit__9SystemObjFv] ; |112| 
L10:    
        LDM       AR1,A
	.line	17
        POPM      AR1                   ; |112| 
        RET       ; |112| 
        ; return occurs ; |112| 
	.endfunc	113,000000400h,1


	.sect	".text"
	.global	_LedDisplay__6LedObjFUc
	.sym	_LedDisplay__6LedObjFUc,_LedDisplay__6LedObjFUc, 32, 2, 0
	.func	255

;***************************************************************
;* FUNCTION DEF: _LedDisplay__6LedObjFUc                       *
;***************************************************************
_LedDisplay__6LedObjFUc:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _LedObj
	.sym	_cData,2, 14, 9, 16
;* A     assigned to _cData
	.sym	_cData,0, 14, 4, 16
        PSHM      AR1
        NOP
        LD        *SP(2),A
	.line	23
        AND       #255,A,A              ; |277| 
        STLM      A,AR1
        NOP
        NOP
        LD        *AR1(_LedTab$4),A
	.line	24
        STM       #67,AR1
        AND       #255,A,A              ; |278| 
        STL       A,*AR1
	.line	25
 nop
	.line	26
 nop
	.line	28
        STM       #72,AR1
        ST        #1,*AR1               ; |282| 
	.line	29
        STM       #73,AR2
        BIT       *AR2,14               ; |283| 
        BC        L12,TC                ; |283| 
        ; branch occurs ; |283| 
L11:    
	.line	30
 nop
	.line	31
 nop
	.line	32
        BIT       *AR2,14               ; |286| 
        BC        L11,NTC               ; |286| 
        ; branch occurs ; |286| 
L12:    
	.line	33
 nop
	.line	34
 nop
	.line	35
 nop
	.line	36
 nop
	.line	48
        POPM      AR1
        RET
        ; return occurs
	.endfunc	302,000000400h,1


	.sect	".text"
	.global	_LedInit__6LedObjFv
	.sym	_LedInit__6LedObjFv,_LedInit__6LedObjFv, 32, 2, 0
	.func	250

;***************************************************************
;* FUNCTION DEF: _LedInit__6LedObjFv                           *
;***************************************************************
_LedInit__6LedObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _LedObj
;* A     assigned to _this
	.sym	_this,0, 24, 4, 16, _LedObj
        FRAME     #-3
        NOP
	.line	3
        ST        #0,*SP(0)             ; |252| 
        CALL      #_LedDisplay__6LedObjFUc ; |252| 
        ; call occurs [#_LedDisplay__6LedObjFUc] ; |252| 
	.line	4
        FRAME     #3
        RET
        ; return occurs
	.endfunc	253,000000000h,3


	.sect	".text"
	.global	___ct__6LedObjFv
	.sym	___ct__6LedObjFv,___ct__6LedObjFv, 104, 2, 0, _LedObj
	.func	245

;***************************************************************
;* FUNCTION DEF: ___ct__6LedObjFv                              *
;***************************************************************
___ct__6LedObjFv:
	.line	2
;* A     assigned to _this
	.sym	_this,0, 24, 17, 16, _LedObj
;* AR1   assigned to _this
	.sym	_this,10, 24, 4, 16, _LedObj
        PSHM      AR1
        FRAME     #-2
        STLM      A,AR1
        NOP
        NOP
        BANZ      L13,*AR1              ; |246| 
        ; branch occurs ; |246| 
        LD        #1,A
        CALL      #___nw__FUi           ; |246| 
        ; call occurs [#___nw__FUi] ; |246| 
        STLM      A,AR1
        NOP
        LDM       AR1,A                 ; |246| 
        BC        L14,AEQ               ; |246| 
        ; branch occurs ; |246| 
L13:    
        ST        #0,*SP(0)             ; |252| 
        CALL      #_LedDisplay__6LedObjFUc ; |252| 
        ; call occurs [#_LedDisplay__6LedObjFUc] ; |252| 
L14:    
	.line	3
        LDM       AR1,A
	.line	4
        FRAME     #2                    ; |247| 
        POPM      AR1                   ; |247| 
        RET       ; |247| 
        ; return occurs ; |247| 
	.endfunc	248,000000400h,3



	.sect	".pinit"
	.align	1
	.field	___sti__dspbird_cpp_IOXF, 16
	.sect	".text"
	.global	___sti__dspbird_cpp_IOXF
	.sym	___sti__dspbird_cpp_IOXF,___sti__dspbird_cpp_IOXF, 32, 2, 0
	.func	255

;***************************************************************
;* FUNCTION DEF: ___sti__dspbird_cpp_IOXF                      *
;***************************************************************
___sti__dspbird_cpp_IOXF:
	.line	48
        FRAME     #-1
	.line	50
        LD        #_Sys,A
        CALL      #___ct__9SystemObjFv  ; |304| 
        ; call occurs [#___ct__9SystemObjFv] ; |304| 
	.line	51
        LD        #_Led,A
        CALL      #___ct__6LedObjFv     ; |305| 
        ; call occurs [#___ct__6LedObjFv] ; |305| 
        FRAME     #1
        RET
        ; return occurs
	.endfunc	305,000000000h,1


	.sect	".text"

⌨️ 快捷键说明

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