vectors.s

来自「LPC2106 example: I2C, Interrupt, UART0 R」· S 代码 · 共 34 行

S
34
字号
.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 + =
减小字号Ctrl + -
显示快捷键?