<< Previous | Next >>

XOR (HL)     Exclusive OR     Rabbit 2000/3000/3000A Instruction

Opcode
Instruction
Operation
AE XOR (HL) A = [A & ~(HL)] | [~A & (HL)]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000
5
n/a
n/a

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

Description

Performs an exclusive OR operation between A and the data whose address is in HL. The result is stored in A.

Example

If HL contains 0x4000 and the memory location 0x4000 contains the byte 1001 0101 and A contains the byte 0101 0011 then the execution of the instruction


XOR (HL)

would result in the byte in A becoming 1100 0110.


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