The XRI instruction
The XRI (Exclusive OR Immediate) instruction is used to perform a bitwise logical exclusive OR operation between the contents of the accumulator and an 8-bit immediate value.
The XRI instruction format
| Instruction | Description |
|---|---|
| XRI imm8 | This format is used to perform a bitwise logical exclusive OR operation between the 8-bit value in register A and imm8. |
Usage example
; Author: Evgeny Sergeevich Dovgopolov main: mvi a, 0A5h ; Load the hexadecimal value A5h into register A xri 0FFh ; Perform a bitwise logical exclusive OR between A and FF hlt ; Stop program execution
Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".
Processor status flags
S
YesZ
YesAC
YesP
YesCY
Yes