Program and control instructions, Table 45, Program control instructions – Zilog Z80180 User Manual

Page 245: Z8018x family mpu user manual, Table 45. program control instructions

Advertising
background image

Z8018x

Family MPU User Manual

UM005003-0703

229

PROGRAM AND CONTROL INSTRUCTIONS

Table 45. Program Control Instructions

Operation
Name

Mnemonics Op Code

Addressing

Bytes States

Operation

Flags

7 6 4 2

1 0

Immed Ext Ind Reg RegI Imp Rel

S Z H P/V N C

Call

CALL mn

11 001 101

D

3

16

PCHr

®(SP-1)

M

· · · ·

· ·

<n>

PCLr

®(SP-2)

M

<m>

mn

®PC

R

SP

R

-2

®SP

R

CALL f,mn

11 f 100

D

3

6 (f : false)

continue : f is false

· · · ·

· ·

<n>

16 (f: true)

CALL mn: f is true

<m>

Jump

DJNZj

00 010 000

D

2

9 (Br

¹ 0)

Br-1

®Br

· · · ·

· ·

<j-2>

2

7 (Br = 0)

continue: Br = 0

PC

R

+ j

®PC

R

: Br

¹ 0

JP f,mn

11 f 010

D

3

6 (f: false)

mn

®PC

R

: f is true

· · · ·

· ·

<n>

3

9 (f: true)

continue: f is false

<m>

JP mn

11 000 011

D

3

9

mn

®PC

R

· · · ·

· ·

<n>
<m>

JP (HL)

11 101 001

D

1

3

HL

R

®PC

R

· · · ·

· ·

JP (IX)

11 011 101

D

2

6

IX

R

®PC

R

· · · ·

· ·

11 101 001

JP (IY)

11 111 101

D

2

6

IY

R

®PC

R

· · · ·

· ·

11 101 001

JR j

00 011 000

D

2

8

PC

R

+ j

®PC

R

· · · ·

· ·

<j-2>

JR Cj

00 111 000

D

2

6

continue: C = 0

· · · ·

· ·

<j-2>

2

8

PC

R

+ j

®PC

R

: C = 1

JR NCj

00 110 000

D

2

6

continue : C = 1

· · · ·

· ·

<j-2>

2

8

PC

R

+ j

®PC

R

: C = 0

Advertising
This manual is related to the following products: