Get and/or set processor status register
Source position: exec.pas line 1811
function SetSR( |
newSR: Cardinal; |
mask: Cardinal |
):Cardinal; |
newSR |
|
The new contents of the status register. |
mask |
|
Mask of bits to change. |
The old contents of the status register or 0 if this function is not implemented.
This function provides a means of modifying the CPU status register in a "safe" way (well, how safe can a function like this be anyway?). This function will only affect the status register bits specified in the mask parameter. The prior content of the entire status register is returned.
The bits in the register mapped to those of the Motorola MC680x0 family of microprocessors.