Entry | |
---|---|
R0 | Buffer handle |
R1 | EOR mask |
R2 | AND mask |
Exit | |
---|---|
R1 | Old flags |
R2 | New flags |
This SWI modifies the buffer’s flags, according to the following:
NewVal = ( OldVal AND R2 ) EOR R1
To read: R1 = 0, R2 = &0000000F
To set: R1 = new value, R2 = &FFFFFFF0
Ensure that you do not modify reserved bits with this call. Any reserved bits should be clear in R1, set in R2.