Entry | |
---|---|
R0 | Reason codes |
This SWI has many different uses.
Different parts of the Operating System rely on this SWI.
The value in R0 upon entry determines the function of the call, and is known as the reason code.
For calls with reason codes between 166 and 255:
NewVal = (OldVal AND R2) EOR R1
To read: | R1=0 | R2=&FF |
To write: | R1=New Value | R2=0 |