?? vectors.s
字號:
# *****************
# Exception Vectors
# *****************
# Note: LDR PC instructions are used here because branch (B) instructions
# 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 >32MB).
.text
.code 32
.align 0
.global _start
.global start
_start:
start:
LDR PC, Reset_Addr
LDR PC, Undefined_Addr
LDR PC, SWI_Addr
LDR PC, Prefetch_Addr
LDR PC, Abort_Addr
NOP /* Reserved vector */
# LDR PC, IRQ_Addr
LDR PC, [PC, #-0xF20] /* Jump to vector from AIC_IVR */
# LDR PC, FIQ_Addr
LDR PC, [PC, #-0xF20] /* Jump to vector from AIC_FVR */
# .global Reset_Handler /* In init.s */
.global Undefined_Handler
.global SWI_Handler
.global Prefetch_Handler
.global Abort_Handler
.global IRQ_Handler
.global FIQ_Handler
Reset_Addr: .word Reset_Handler
Undefined_Addr: .word Undefined_Handler
SWI_Addr: .word SWI_Handler
Prefetch_Addr: .word Prefetch_Handler
Abort_Addr: .word Abort_Handler
.word 0 /* Reserved vector */
IRQ_Addr: .word IRQ_Handler
FIQ_Addr: .word FIQ_Handler
# ************************
# Exception Handlers
# ************************
# The following dummy handlers do not do anything useful in this example.
# They are set up here for completeness.
Undefined_Handler:
B Undefined_Handler
SWI_Handler:
B SWI_Handler
Prefetch_Handler:
B Prefetch_Handler
Abort_Handler:
B Abort_Handler
IRQ_Handler:
B IRQ_Handler
FIQ_Handler:
B FIQ_Handler
.end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -