Samsung KS57C2308 Manual page 167

Single-chip cmos microcontroller
Table of Contents

Advertisement

KS57C2308/P2308/C2316/P2316
XOR
— Logical Exclusive OR
XOR
dst,src
Operation:
Operand
A,#im
A,@HL
EA,RR
RRb,EA
Description:
XOR performs a bitwise logical XOR operation between the source and destination variables and
stores the result in the destination. The source contents are unaffected.
Operand
A,#im
A,@HL
EA,RR
RRb,EA
Example:
If the extended accumulator contains 0C3H (11000011B) and register pair HL contains 55H
(01010101B), the instruction
XOR
leaves the value 96H (10010110B) in the extended accumulator.
Exclusive-OR immediate data to A
Exclusive-OR indirect data memory to A
Exclusive-OR register pair (RR) to EA
Exclusive-OR register pair (RRb) to EA
Binary Code
1
1
0
0
0
1
0
0
1
1
1
0
0
0
1
1
1
0
0
0
1
EA,HL
Operation Summary
1
1
1
0
1
d3
d2
d1
d0
1
1
0
1
1
1
1
0
1
0
r2
r1
1
1
1
0
1
0
r2
r1
SAM47 INSTRUCTION SET
Bytes
2
1
2
2
Operation Notation
1
A
A XOR im
1
A
A XOR (HL)
0
EA
EA XOR (RR)
0
0
RRb
RRb XOR EA
0
Cycles
2
1
2
2
5-93

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents