Datasheet

ARMulator Reference
4-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
4.2.8 ARMulif_GetSPSR
This function returns the current contents of the SPSR for a specified processor mode.
Syntax
ARMword ARMulif_GetSPSR(RDI_ModuleDesc *mdesc, ARMword mode)
where:
mdesc
is the handle for the core.
mode
is the processor mode for the SPSR you want to read.
User mode
ARMulif_GetSPSR
returns the current contents of the CPSR if
mode
is
USER32MODE
.
4.2.9 ARMulif_SetSPSR
This function writes a value to the SPSR for a specified processor mode.
Syntax
void ARMulif_SetSPSR(RDI_ModuleDesc *mdesc, ARMword mode, ARMword value)
where:
mdesc
is the handle for the core.
mode
is the processor mode for the SPSR you want to write.
value
is the value to be written to the SPSR for the specified mode.
User mode
ARMulif_SetSPSR
does nothing if
mode
is
USER32MODE
.