beautypg.com

Zilog Z16F2810 User Manual

Page 124

background image

INC Instruction

UM018809-0611

108

ZNEO

®

CPU Core

User Manual

INC

Definition

Increment

Syntax

INC dst

Operation

dst

 dst

+

1

Description

The contents of the destination operand are incremented by one.

Flags

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

Syntax and Opcodes

7

6

5

4

3

2

1

0

C

Z

S

V

B

CIRQE IRQE

*

*

*

*

*

Legend

C

= Set to 1 if the result generated a carry; 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 if the initial destination value was 0; otherwise set to 0.

CIRQE

= No change.

IRQE

= No change.

Instruction, Operands

Word 0

Word 1

Word 2

INC Rd

{8H, Rd, 01H}

1

INC addr16

{ADAH, 1x10B}

addr16

INC addr32

{ADBH, 1x10B}

addr[31:16]

addr[15:0]

INC (Rd)

{ACH, 1x10B, Rd}

Note:

This manual is related to the following products: