XORs the contents of two general-purpose registers and places the result in another general-purpose register.
The xor instruction XORs the contents of general-purpose register (GPR) RS with the contents of GPR RB and stores the result in GPR RA.
The xor instruction has two syntax forms. Each syntax form has a different effect on Condition Register Field 0.
|Syntax Form||Overflow Exception (OE)||Fixed-Point Exception Register||Record Bit (Rc)||Condition Register Field 0|
The two syntax forms of the xor instruction never affect the Fixed-Point Exception Register. If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Less Than (LT) zero, Greater Than (GT) zero, Equal To (EQ) zero, and Summary Overflow (SO) bits in Condition Register Field 0.
|RA||Specifies target general-purpose register where result of operation is stored.|
|RS||Specifies source general-purpose register for operation.|
|RB||Specifies source general-purpose register for operation.|
# Assume GPR 4 contains 0x9000 3000. # Assume GPR 7 contains 0x789A 789B. xor 6,4,7 # GPR 6 now contains 0xE89A 489B.
# Assume GPR 4 contains 0xB004 3000. # Assume GPR 7 contains 0x789A 789B. xor. 6,4,7 # GPR 6 now contains 0xC89E 489B.
Fixed-Point Logical Instructions.