beautypg.com

Zilog Z8F0130 User Manual

Page 101

background image

eZ8

CPU Core

User Manual

UM012820-0810

AND Instruction

86

AND

Definition

Logical AND.

Syntax

AND dst, src

Operation

dst

 dst AND src

Description

The source operand is logically ANDed with the destination operand. An
AND operation stores a 1 when the corresponding bits in the two oper-
ands are both 1; otherwise the operation stores a 0. The destination oper-
and stores the result. The contents of the source bit 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