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

📄 vectors.s

📁 LPC2106 example: I2C, Interrupt, UART0 Ram/Rom Config
💻 S
字号:
.TEXT
.ALIGN
.ARM
.section ".boot_exception_vector" 
.GLOBL     _int_vector
.func      _int_vector

/**************************************************************************/
/* Note: LDR PC instructions are used here because branch (B) instruction */
/* could not simply be copied (the branch offsets would be wrong). Also,  */
/* a branch instruction might not reach if the ROM is at an address       */
/* greater than 32MB away.                                                */

_int_vector:     LDR          PC, Reset_Addr
                 LDR          PC, Undefined_Addr
                 LDR          PC, SWI_Addr
                 LDR          PC, Prefetch_Addr
                 LDR          PC, Abort_Addr
                 .long        0xB8A06F58          /* 0 - (sum of other vectors instructions) */
                 LDR          PC, IRQ_Addr
                 LDR          PC, FIQ_Addr
    
Reset_Addr:      .long   main
Undefined_Addr:  .long   0x00
SWI_Addr:        .long   0x00
Prefetch_Addr:   .long   0x00
Abort_Addr:      .long   0x00
                 .long   0x00
IRQ_Addr:        .long   0x00
FIQ_Addr:        .long   0x00

.size _int_vector,.-_int_vector;
.endfunc

⌨️ 快捷键说明

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