3 INSTRUCTION SET

LD r,SPH

Load SPH into r-register

Source Format:

LD r,SPH

Operation:

r

SPH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

1

1

0

0

1

r1

r0

FE4H to FE7H

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

Type:

V

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

Z – Not affected

 

D – Not affected

 

I – Not affected

Description:

Loads the four high-order bits of the stack pointer into the r-register.

Example:

 

 

 

 

 

 

 

 

 

LD MX,SPH

 

 

LD A,SPH

 

SPH

0111

 

0111

 

0111

 

 

A register

0000

 

0000

 

0111

 

 

Memory (MX)

1100

 

0111

 

0111

 

LD r,SPL

Load SPL into r-register

Source Format:

LD r,SPL

Operation:

r

SPL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

1

1

1

0

1

r1

r0

FF4H to FF7H

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

Type: V

Clock Cycles: 5

Flag: C – Not affected

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

Description: Loads the four low-order bits of the stack pointer into the r-register.

Example:

 

LD A,SPL

 

 

LD MY,SPL

 

SPL

1001

 

1001

 

1001

 

A register

0010

 

1001

 

1001

 

Memory (MY)

0000

 

0000

 

1001

52

EPSON

S1C6200/6200A CORE CPU MANUAL