3 INSTRUCTION SET

INC SP

Increment stack pointer by 1

 

 

 

Source Format:

INC SP

 

 

 

Operation:

SP SP + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

1

0

1

1

0

1

1

 

FDBH

 

MSB

LSB

 

Type: VI

Clock Cycles: 5

Flag: C – Not affected

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

Description: Increments the contents of the stack pointer by 1. This operation does not affect the flags.

Example:

 

INC SP

 

SP

1110 1111

1111 0000

 

C flag

0

0

 

Z flag

0

0

INC X

Increment X-register by 1

 

 

 

 

Source Format:

INC X

 

 

 

 

Operation:

X X + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

0

1

1

1

0

0

0

0

0

 

EE0H

 

MSB

 

LSB

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

Z – Not affected

 

 

 

 

 

D – Not affected

 

 

 

 

 

I

– Not affected

 

 

 

 

Description: Increments the contents of register X by 1. This operation does not affect the flags.

Example:

 

INC X

 

X register

1111 1110

1111 1111

 

C flag

1

1

 

Z flag

0

0

42

EPSON

S1C6200/6200A CORE CPU MANUAL