Zilog Z16F2810 User Manual Page 204

  • Download
  • Add to my manuals
  • Print
  • Page
    / 216
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 203
XOR Instruction UM018809-0611
188
ZNEO
®
CPU Core
User Manual
XOR
Definition
Logical Exclusive OR
Syntax
XOR dst, src
Operation
dst dst XOR src
Description
The source operand value is logically exclusive-ORed with the destination operand. An XOR
operation stores a 1 in a destination operand bit when the original destination bit differs from the
corresponding source operand bit; otherwise XOR stores a 0. The contents of the source operand
are unaffected. Table 23 summarizes the XOR operation.
Flags
Table 23. Truth Table for XOR
dst src Result (dst)
00 0
10 1
01 1
11 0
76543210
C Z S V B CIRQE IRQE
–**0*–
Legend
Z = Set to 1 if the result is zero; otherwise, set to 0.
S = Set to 1 if the result msb is 1; otherwise set to 0.
V = Cleared to 0.
B = Set to 1 if the initial destination or source value is 0; otherwise set to 0.
CIRQE = No change.
IRQE = No change.
Page view 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 215 216

Comments to this Manuals

No comments