中断服务程序.txt

来自「TMS320VC5402 DSK的例程」· 文本 代码 · 共 16 行

TXT
16
字号
Interrupt Service Routine (ISR)
.title “Interrupt Service Routine”
.mmregs
int1:
CONTEXT_STORE 		; push the contents of accumulators and registers on stack
STM #K_INT0,IMR 	; Unmask only INT0~
RSBX INTM 		; Enable all Interrupts
;
; Main Processing for Receive Interrupt 1
.
.
.
SSBX INTM 		; Disable all interrupts
CONTEXT_RESTORE 	; pop accumulators and registers
RETE 			; return and enable interrupts
.end

⌨️ 快捷键说明

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