Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

SetSR

Get and/or set processor status register

Declaration

Source position: exec.pas line 1811

function SetSR(

  newSR: Cardinal;

  mask: Cardinal

):Cardinal;

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