(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/exec.h>

ULONG SetSR (newSR , mask)

LOCATION
In SysBase at offset 24

SYNOPSIS
ULONG newSR
ULONG mask

FUNCTION
Read/Modify the CPU status register in an easy way. Only the bits set it the mask parameter will be changed.

The bits in the register mapped to those of the Motorola MC680x0 family of microprocessors.

INPUTS
newSR
The new contents of the status register.
mask
Mask of bits to change.

RESULT
The old contents of the status register or ~0UL if this function is not implemented.

EXAMPLE
You can read the status register by calling SetSR(0,0).
SEE ALSO

NOTES
This function is of limited use.

BUGS
This function may do nothing on non-mc680x0 systems.

INTERNALS

HISTORY