not
Complement Register
not. Rx,Ry
Complements the contents of one register and places the result into another register.
Details
The 'not' instruction complements the contents of register Ry and places the result into register Rx. This mnemonic can be coded with a final '.' to cause the Rc bit to be set in the underlying instruction.
Programming Note
The 'not' instruction is commonly used for bitwise negation of a register's contents. Be cautious with the '.' suffix as it affects the condition register (CR0) by setting the Rc bit, which can impact subsequent conditional branches. Ensure that the registers are properly aligned and accessible at the privilege level required for execution.
Example
Encoding
Operands
-
RA
Target -
RS
Source -
Rx
Target General Purpose Register -
Ry
Source General Purpose Register