beautypg.com

Zilog Z8F0130 User Manual

Page 165

background image

eZ8

CPU Core

User Manual

UM012820-0810

INC Instruction

150

Sample Usage

If Working Register R10 contains the value

2Ah

, the following statement

leaves the value

2Bh

in Working Register R10 and clears the Z, V, and S

flags:

INC R10

Object Code: AE

If Register

B3h

contains the value

CBh

, the following statement leaves the

value

CCh

in Register

CBh

, sets the S flag, and clears the Z and V flags:

INC B3h

Object Code: 20 B3

If Register

B3h

contains

CBh

and Register

CBh

contains

FFh

, the follow-

ing statement leaves the value

00h

in Register

CBh

, sets the Z flag, and

clears the V and S flags:

INC @B3h

Object Code: 21 B3