32.12.3.4 Explanation of the XOR and XORP Instructions

XOR and XORP instructions are exclusive OR instructions. When an XOR instruction is executed, it runs a logical XOR operation between S1 and S2 stores the result in D1. The XOR and XORP instructions always pass power. When using the XOR and XORP instructions, if the variables specified in operands S1, S2, and D1 are not of the same type, an error will occur. Designate the same variable type in all operands S1, S2, and D1.

Refer to the following for specifying a constant.

S1

Operator

S2

D1

OFF

XOR

OFF

OFF

ON

OFF

ON

OFF

ON

ON

ON

ON

OFF

When an XOR instruction is executed, the D1 bit will be turned ON only when either S1 or S2 is ON. Otherwise, the D1 bit is OFF.

When operand D1 is an integer variable

When operand D1 is an integer variable and you want to input hexadecimal values in operands S1 and S2

When 0x (zero and lower case "x") is input, the following values become hexadecimal values.

When Calculating Data in a Specified Array (Integer Variable Array)

Specifying the entire array

Individually Specifying Array Variables