2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: SetSR() - Modify the CPU status register.
9 /*****************************************************************************
12 #include <proto/exec.h>
14 AROS_LH2(ULONG
, SetSR
,
17 AROS_LHA(ULONG
, newSR
, D0
),
18 AROS_LHA(ULONG
, mask
, D1
),
21 struct ExecBase
*, SysBase
, 24, Exec
)
24 Read/Modify the CPU status register in an easy way. Only the bits
25 set it the mask parameter will be changed.
27 The bits in the register mapped to those of the Motorola MC680x0
28 family of microprocessors.
31 newSR - The new contents of the status register.
32 mask - Mask of bits to change.
35 The old contents of the status register or ~0UL if this function
39 This function is of limited use.
42 You can read the status register by calling SetSR(0,0).
45 This function may do nothing on non-mc680x0 systems.
51 ******************************************************************************/
56 You can just as easily leave this function as a NOP, or alternatively
57 map the flag bits to your local processor and implement the function.
59 I used to have this as a print, but it is used by the math*.library's