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

📄 sma_get_mmu_control_reg.s

📁 sharp的arm920t 7A400的评估板附带光盘Sharp KEVLH7A400 v0.3b Welcome to the SHARP KEV7A400 Evaluation board
💻 S
字号:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;  $Workfile:   SMA_get_mmu_control_reg.s  $
;  $Revision:   1.1  $
;  $Author:   BarnettH  $
;  $Date:   Jun 05 2002 11:06:56  $
; 
;  Project: 
; 
;  Description:
; 
;  Revision History:
;  $Log:   //smaicnt2/pvcs/VM/CHIPS/archives/SOC/Source/SMA_get_mmu_control_reg.s-arc  $
; 
;    Rev 1.1   Jun 05 2002 11:06:56   BarnettH
; Changed AREA to UTILS_ASM.
; Identified ROUT
; 
;    Rev 1.0   May 22 2002 16:21:02   BarnettH
; Initial revision.
;  
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;  
;   Copyright (c) 2002 Sharp Microelectronics of the Americas
; 
;   All rights reserved
; 
;   SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
;   OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
;   AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
;   SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
; 
;   SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
;   FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
;   SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT.  USE OF THIS SOURCE
;   FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
; 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; word SMA_get_mmu_control_reg ()
;
; Purpose:
;   To return the current value of  the MMU Coprocessor (CP15) Control
;       Register
;
; Processing:
;   Fetch current value of CP15,CR to r0
;
;   Uses r0 register
;   Destroys contents of r0 register
;
; Parameters: none
;
; Outputs: None.
;
; Returns:
;    Current value of MMU Control register (cp15) as an UNS_32
;
; C Prototype:
;     UNS_32 SMA_get_mmu_control_reg (void);
;
; Notes: 
;    (1) Callable from C or assembly.
;    (2) Does not use the stack; may be called with no stack
;        initialized.
;    (3) Applicable to ARM7TDMI and ARM9TDMI based SOC's
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	AREA 	UTILS_ASM, CODE, ALIGN=2

MMU_CP               CP 15
MMU_REG_CONTROL      CN 1

	EXPORT SMA_get_mmu_control_reg

SMA_get_mmu_control_reg     ROUT
	EOR		r0,r0,r0
	MRC		MMU_CP, 0, r0, MMU_REG_CONTROL, c0, 0
	MOV		pc,r14

    END

⌨️ 快捷键说明

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