EasyManua.ls Logo

Rabbit 2000 - Page 111

Rabbit 2000
120 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Instruction Reference Manual 107
Description
Performs an exclusive OR operation between the byte in the Accumulator and the 8-bit constant n. The corre-
sponding bits of each byte are compared (i.e., the bit 1 of both bytes are compared, the bit 2 of both bytes are
compared, etc.) and the associated bit in the result byte is set if and only if one of the two compared bits is set.
The result is stored in the Accumulator.
Description
Performs an exclusive OR operation between the byte in the Accumulator and the register r (any of the regis-
ters A, B, C, D, E, H, or L). The corresponding bits of each byte are compared (i.e., the bit 1 of both bytes are
compared, the bit 2 of both bytes are compared, etc.) and the associated bit in the result byte is set if and only
if one of the two compared bits is set. The result is stored in the Accumulator.
XOR n
Opcode Instruction Clocks Operation
EE n XOR n 4 (2,2) A=[A&~n] | [~A & n]
Flags ALTD I/O
S Z L/V C F R SP S D
L0
XOR r
Opcode Instruction Clocks Operation
——
AF
A8
A9
AA
AB
AC
AD
XOR r
XOR A
XOR B
XOR C
XOR D
XOR E
XOR H
XOR L
2
2
2
2
2
2
2
2
A=[A&~r] | [~A & r]
A = [A & ~A] | [~A & A]
A = [A & ~B] | [~A & B]
A = [A & ~C] | [~A & C]
A = [A & ~D] | [~A & D]
A = [A & ~E] | [~A & E]
A = [A & ~H] | [~A & H]
A = [A & ~L] | [~A & L]
Flags ALTD I/O
S Z L/V C F R SP S D
L0

Other manuals for Rabbit 2000