3 INSTRUCTION SET

JP C,s

Jump if carry flag is set

 

 

 

 

Source Format:

JP C,s

 

 

 

 

 

 

 

 

Operation:

PCB NBP, PCP

NPP, PCS

s7 to s0

if C = 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

0

0

1

0

s7

s6

s5

s4

s3

s2

s1

s0

 

200H to 2FFH

 

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 carry flag is set.

Example:

 

ADD A,8

 

PSET 06H

 

JP C,10H

 

PCB

0

 

0

0

 

0

 

NBP

0

 

0

0

 

0

 

PCP

0010

 

0010

0010

 

0110

 

NPP

0001

 

0001

0110

 

0110

 

PCS

0011 1100

 

0011 1101

0011 1110

 

0001 0000

 

A register

1000

 

0000

0000

 

0000

 

C flag

0

 

1

1

 

1

 

 

 

 

 

 

 

 

 

 

JP NC,s

Jump if not carry

 

 

 

 

 

 

 

 

Source Format:

JP NC,s

 

 

 

 

 

 

 

 

Operation:

PCB NBP, PCP

NPP, PCS

s7 to s0

if C = 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

0

0

1

1

s7

s6

 

s5

s4

s3

s2

s1

s0

 

300H to 3FFH

 

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 carry flag is not set.

Example:

 

PSET 11H

 

JP NC,10H

 

PCB

0

 

0

1

 

NBP

0

 

1

1

 

PCP

1001

 

1001

0001

 

NPP

0001

 

0001

0001

 

PCS

1000 1111

 

1001 0000

0001 0000

 

C flag

0

 

0

0

44

EPSON

S1C6200/6200A CORE CPU MANUAL