DESCRIPTION OF INSTRUCTIONS

39. INC DPTR (Increment data pointer)

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

Instruction code

:

 

1

 

 

0

 

 

 

1

0

 

 

 

0

 

0

 

 

 

1

1

 

Byte 1

Operation

: (DPTR)(DPTR)+1

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

 

 

F0

RS1

 

RS0

OV

 

F1

P

 

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

: 16-bit contents od the data pointer (DPH·DPL) are incremented

 

 

by 1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example INC DPTR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

Instruction code

:

1

0

 

1

0

0

0

1

1

 

Byte 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Before execution

 

 

 

 

 

 

 

 

 

DPH

 

 

 

 

 

 

 

 

 

DPL

 

 

 

 

 

 

 

 

 

 

0

1

 

1

0

 

1

0

0

0

 

1

1

 

1

1

1

1

1

1

 

 

15

 

 

 

 

 

 

 

 

8

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

After execution

 

 

 

 

 

 

 

 

 

DPH

 

 

 

 

 

 

 

 

 

DPL

 

 

 

 

 

 

 

 

 

 

0

1

 

1

0

 

 

1

0

0

1

 

0

0

 

0

0

 

0

0

0

0

 

 

15

 

 

 

 

 

 

 

 

8

7

 

 

 

 

 

 

 

 

0

 

291

Page 298
Image 298
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual INC Dptr Increment data pointer, 291, RS1 RS0 PSW, Dph Dpl