<< Previous | Next >>

XOR r     Exclusive OR     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
---- XOR r A = [A & ~r] | [~A & r]
AF XOR A A = 0
7F A8 XOR B A = [A & ~B] | [~A & B]
7F A9 XOR C A = [A & ~C] | [~A & C]
7F AA XOR D A = [A & ~D] | [~A & D]
7F AB XOR E A = [A & ~E] | [~A & E]
7F AC XOR H A = [A & ~H] | [~A & H]
7F AD XOR L A = [A & ~L] | [~A & L]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
4
n/a
n/a
Rabbit 5000
2
2
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
0
·
·

Description

Performs an exclusive OR operation between the byte in A and r (any of the registers A, B, C, D, E, H, or L). The result is stored in A.

The Rabbit 4000/5000 assemblers view "XOR A,r" and "XOR r" as equivalent instructions.


Rabbit Instructions << Previous | Next >> rabbit.com