Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

SetSR

Get and/or set processor status register

Declaration

Source position: exec.pas line 1235

function SetSR(

  NewSR: LongWord;

  Mask: LongWord

):LongWord;

Arguments

NewSR

  

The new contents of the status register.

Mask

  

Mask of bits to change.

Function result

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

Description

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.


Documentation generated on: 2021-07-30