beautypg.com

Jp z,s, Lbpx mx,e, Jump if zero – Epson S1C6200 User Manual

Page 52

background image

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

MSB

LSB

MSB

LSB

C

Z

D

I

C

Z

D

I

46

EPSON

S1C6200/6200A CORE CPU MANUAL

3 INSTRUCTION SET

JP Z,s

Jump if zero

JP Z,s

PCB

NBP, PCP

NPP, PCS

s

7

to s

0

if Z = 1

0

1

1

0 s

7

s

6

s

5

s

4

s

3

s

2

s

1

s

0

600H to 6FFH

I

5

Not affected
Not affected
Not affected
Not affected

Jumps to the destination address specified by the 8-bit operand when the zero flag
is set.

SUB A,B

PSET 1BH

JP Z,10H

PCB

0

0

0

1

NBP

0

0

1

1

PCP

0101

0101

0101

1011

NPP

0001

0001

1011

1011

PCS

0000 0010

0000 0011

0000 0100

0001 0000

A register

0110

0000

0000

0000

B register

0110

0110

0110

0110

Z flag

0

1

1

1

LBPX MX,e

Load immediate data e to memory, and increment X by 2

LBPX MX,e

M(X)

e

3

to e

0

, M(X+1)

e

7

to e

4

, X

X + 2

1

0

0

1 e

7

e

6

e

5

e

4

e

3

e

2

e

1

e

0

900H to 9FFH

I

5

Not affected
Not affected
Not affected
Not affected

Stores 8-bit immediate data e in two, consecutive 4-bit locations in data memory.
The X-register is incremented by 2. An overflow in X does not affect the flags.

LBPX MX,18H

LBPX MX,36H

X register

0001 1110

0010 0000

0010 0010

Memory (1EH)

0010

1000

1000

Memory (1FH)

1111

0001

0001

Memory (20H)

0000

0000

0110

Memory (21H)

0111

0111

0011

This manual is related to the following products: