Get and/or set processor status register
Source position: exec.pas line 1235
function SetSR( |
NewSR: LongWord; |
Mask: LongWord |
):LongWord; |
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.