4.2.3. ARMulif_SetReg

This function writes a register for a specified processor mode.

Syntax


void ARMulif_SetReg(RDI_ModuleDesc *mdesc, ARMword mode,                    unsigned reg, ARMword value)

where:

mdesc

is the handle for the core.

mode

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

reg

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

value

is the value to be written to register reg for the specified processor mode.

Usage

You can use this function to write to any of the general purpose registers r0 to r14, the PC, or CPSR.

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