📄 dabt.s
字号:
;/*****************************************************************************/
;/* DABT.S: Data Abort Handler */
;/*****************************************************************************/
;/* This file is part of the uVision/ARM development tools. */
;/* Copyright (c) 2005-2006 Keil Software. All rights reserved. */
;/* This software may only be used under the terms of a valid, current, */
;/* end user licence from KEIL for a compatible version of KEIL software */
;/* development tools. Nothing else gives you the right to use this software. */
;/*****************************************************************************/
AREA DAbt, CODE, READONLY
ARM
PRESERVE8
ALIGN
IMPORT Abort_Handler
EXPORT DAbtHandler
DAbtHandler
SUB LR, LR, #8 ; Update Link Register
STMFD SP!, {R0-R12, LR} ; Save Workspace & LR to Stack
MRS R0, SPSR ; Copy SPSR to R0
STMFD SP!, {R0, R1} ; Save SPSR to Stack (8-byte)
BL Abort_Handler ; Branch to Data Abort Handler
LDMFD SP!, {R0, R1} ; Restore SPSR to R0
MSR SPSR_cxsf, R0 ; Restore SPSR
LDMFD SP!, {R0-R12, PC}^ ; Return to program after
; Data Abort Instruction
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -