Zilog Z8F0130 User Manual

Page 268

Advertising
background image

eZ8

CPU Core

User Manual

UM012820-0810

XOR Instruction

253

XOR

Definition

Logical Exclusive OR.

Syntax

XOR dst, src

Operation

dst

 dst XOR src

Description

The source operand is logically EXCLUSIVE ORed with the destination
operand. An XOR operation stores a 1 in the destination operand when
the corresponding bits in the two operands are different; otherwise XOR
stores a 0. The contents of the source operand are unaffected.

Flags

C

Unaffected

Z

Set if the result is zero; reset otherwise

S

Set if Bit 7 of the result is set; reset otherwise

V

Reset to 0

D

Unaffected

H

Unaffected

Advertising