📄 44blib_a.s
字号:
;/***********************************************************************
; * $Workfile: 44blib_a.s $
; * $Revision: 1.1.1.1 $
; * $Author: meterchen $
; * $Date: 2003/10/19 13:27:11 $
; *
; * Project: Shenzhen-Nucleus-Grafix
; *
; * Description:
; *
; *
; * Revision History:
; *
; ***********************************************************************
; *
; * Copyright (c) 2003 CHENMENG
; *
; * All rights reserved
; *
; **********************************************************************/
AREA |C$$code|, CODE, READONLY
EXPORT ChangeMemCon
;void ChangeMemCon();
ChangeMemCon
; stmfd sp!,{r4-r9} ;Assembler uses the high registers(r4~).
; ldmia r0,{r1-r9}
; ldr r0,=0x01c80004 ;BANKCON0 Address
; stmia r0,{r1-r9}
; ldmfd sp!,{r4-r9}
mov pc,lr
;
EXPORT DisableInterrupt
DisableInterrupt
;This function works only if the processor is in previliged mode.
NOINT EQU 0xc0
mrs r0,cpsr
orr r0,r0,#NOINT
msr cpsr_cxsf,r0
mov pc,lr
EXPORT EnableInterrupt
EnableInterrupt
;This function works only if the processor is in previliged mode.
mrs r0,cpsr
bic r0,r0,#NOINT
msr cpsr_cxsf,r0
mov pc,lr
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -