📄 vectors.asm
字号:
;
; Copyright 2001 by Texas Instruments Incorporated.
; All rights reserved. Property of Texas Instruments Incorporated.
; Restricted rights to use, duplicate or disclose this code are
; granted through contract.
; U.S. Patent Nos. 5,283,900 5,392,448
;
; "@(#) DSP/BIOS 4.51.0 05-23-01 (barracuda-i10)"
;
; ======== vectors.asm ========
; Plug in the entry point at RESET in the interrupt vector table
;
;
; ======== unused ========
; plug inifinite loop -- with nested branches to
; disable interrupts -- for all undefined vectors
;
.global _num_int0 ;num按键的int0中断服务程序
.global _stop_int1 ;stop按键的int1中断服务程序
.global _dmac0isr ;dma0中断
.sect "vectors"
.ref _c_int00 ; C entry point
.align 0x80 ; must be aligned on page boundary
RESET: ; reset vector
BD _c_int00 ; branch to C entry point
;STM #200,SP ; stack size of 200
nop
nop
nmi: RETE ; enable interrupts and return from one
NOP
NOP
NOP ;NMI~
; software interrupts
sint17 .space 4*16
sint18 .space 4*16
sint19 .space 4*16
sint20 .space 4*16
sint21 .space 4*16
sint22 .space 4*16
sint23 .space 4*16
sint24 .space 4*16
sint25 .space 4*16
sint26 .space 4*16
sint27 .space 4*16
sint28 .space 4*16
sint29 .space 4*16
sint30 .space 4*16
int0: bd _num_int0
NOP
NOP
int1: bd _stop_int1
NOP
NOP
int2: RETE
NOP
NOP
NOP
tint: RETE
NOP
NOP
NOP
rint0: RETE
NOP
NOP
NOP
xint0: RETE
NOP
NOP
NOP
DMAC0: bd _dmac0isr
NOP
NOP
DMAC1: RETE
NOP
NOP
NOP
int3: RETE
NOP
NOP
NOP
HPINT: RETE
NOP
NOP
NOP
rint1: RETE
NOP
NOP
NOP
xint1: RETE
NOP
NOP
NOP
.space 16*16
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -