XRL does a bitwise "EXCLUSIVE OR" operation between operand1 and operand2, leaving the resulting value in operand1. The value of operand2 is not affected. A logical "EXCLUSIVE OR" compares the bits of each operand and sets the corresponding bit in the resulting byte if the bit was set in either (but not both) of the original operands, otherwise the bit is cleared.
Syntax : XRL operand1,operand2
Example : XRL A,R0
It will perform the exor operation between the data in accumulator and register R0 and stores the result in accumulator.
Syntax : XRL operand1,operand2
Example : XRL A,R0
It will perform the exor operation between the data in accumulator and register R0 and stores the result in accumulator.
- Instruction
- Opcode
- Bytes
- Flags
- XRL iram_addr,A
- 0x62
- 2
- None
- XRL iram_addr,#data
- 0x63
- 3
- None
- XRL A,#data
- 0x64
- 2
- None
- XRL A,iram_addr
- 0x65
- 2
- None
- XRL A,@R0
- 0x66
- 2
- None
- XRL A,@R1
- 0x67
- 2
- None
- XRL A,R0
- 0x68
- 1
- None
- XRL A,R1
- 0x69
- 1
- None
- XRL A,R2
- 0x6A
- 1
- None
- XRL A,R3
- 0x6B
- 1
- None
- XRL A,R4
- 0x6C
- 1
- None
- XRL A,R5
- 0x6D
- 1
- None
- XRL A,R6
- 0x6E
- 1
- None
- XRL A,R7
- 0x6F
- 1
- None