3 INSTRUCTION SET

JP Z,s

Jump if zero

 

 

 

 

 

 

 

 

Source Format:

JP Z,s

 

 

 

 

 

 

 

 

Operation:

PCB NBP, PCP

NPP, PCS s7 to s0

if Z = 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

0

1

1

0

s7

s6

s5

s4

s3

s2

s1

s0

 

600H to 6FFH

 

MSB

 

 

 

 

 

LSB

 

Type:

I

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

I – Not affected

 

 

 

 

 

 

 

 

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

Example:

 

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

Source Format:

LBPX MX,e

 

 

 

 

 

 

Operation:

M(X) e3 to e0, M(X+1)

e7 to e4, X

X + 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

0

0

1

e7

e6

e5

e4

 

e3

e2

e1

e0

900H to 9FFH

 

MSB

 

 

 

 

LSB

Type: I

Clock Cycles: 5

Flag: C – Not affected

Z– Not affected D – Not affected I – Not affected

Description: 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.

Example:

 

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

46

EPSON

S1C6200/6200A CORE CPU MANUAL