beautypg.com

Zilog Z16F2810 User Manual

Page 110

background image

CPZ Instruction

UM018809-0611

94

ZNEO

®

CPU Core

User Manual

CPZ

Definition

Compare to Zero

Syntax

CPZ dst

Operation

dst

0

Description

The value zero is compared to (subtracted from) the destination operand and the flags are set
according to the results of the operation. The contents of the destination operand are unaffected.

Flags

Flags are set based on the memory destination size, or 32 bits for register destinations.

7

6

5

4

3

2

1

0

C

Z

S

V

B

CIRQE IRQE

*

*

*

*

1

Legend

C

= Set to 1 if the result generated a borrow; otherwise set to 0.

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

= Set to 1 if an arithmetic overflow occurs; otherwise set to 0.

B

= Set to 1.

CIRQE

= No change.

IRQE

= No change.

Note:

This manual is related to the following products: