4.2.2. ARMulif_GetReg

This function reads a register for a specified processor mode.

Syntax


ARMword ARMulif_GetReg(RDI_ModuleDesc *mdesc, ARMword modeunsigned reg)

where:

mdesc

is the handle for the core.

mode

is the processor mode. Values for mode are defined in armdefs.h (see Mode numbers).

reg

is the register to read. Valid values are 0 to 14 for registers r0 to r14, PC, or CPSR.

Return

The function returns the value in the given register for the specified mode.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential