beautypg.com

Table 22, Truth table for or – Zilog Z16F2810 User Manual

Page 147

background image

UM018809-0611

OR Instruction

ZNEO

®

CPU Core

User Manual

131

OR

Definition

Logical OR

Syntax

OR dst, src

Operation

dst

dst OR src

Description

The source operand is logically ORed with the destination operand and the destination operand
stores the result. The contents of the source operand are unaffected. An OR operation stores 1 in
the destination bit when either of the corresponding bits in the two operands is a 1. Otherwise, the
OR operation stores a 0 bit. Table 22 summarizes the OR operation.

Flags

Table 22. Truth Table for OR

dst

src

Result (dst)

0

0

0

1

0

1

0

1

1

1

1

1

7

6

5

4

3

2

1

0

C

Z

S

V

B

CIRQE IRQE

*

*

0

*

Legend

C

= No change.

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.

This manual is related to the following products: