The following can be specified for imm:
Exclusive-ORs the value of the register specified by the first operand with the value of the register specified by the second operand, and stores the result in the register specified by the second operand.
Exclusive-ORs the value of the absolute expression or relative expression specified by the first operand with the value of the register specified by the second operand, and stores the result in the register specified by the second operan.
When this instruction is executed in syntax "xor reg1, reg2", the assembler generates one xor machine instruction. |
When this instruction is executed in syntax "xor imm, reg2", and the following expression is specified for imm, the assembler executes instruction expansion to generate one or more machine instructionsNote. |
If all the lower 16 bits of the value of imm are 0
Relative expression having $label for a label having a definition in the sdata/sbss-attribute section |
Relative expression having #label or label, or that having $label for a label having no definition in the sdata/sbss-attribute section |