3 INSTRUCTION SET

LD A,Mn

Load memory into A-register

 

 

Source Format:

LD A,Mn

 

 

Operation:

A M(n3 to n0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

1

1

0

1

0

n3

n2

n1

n0

FA0H to FAFH

 

MSB

LSB

Type: IV

Clock Cycles: 5

Flag: C – Not affected

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

Description: Loads the contents of the data memory location addressed by Mn into the A- register.

Example:

 

LD A,M5

 

 

LD A,M6

 

A register

0100

 

1111

 

0100

 

Memory (05H)

1111

 

1111

 

1111

 

Memory (06H)

0100

 

0100

 

0100

LD B,Mn

Load memory into B-register

 

 

Source Format:

LD B,Mn

 

 

Operation:

B M(n3 to n0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

1

1

1

1

0

1

1

n3

n2

n1

n0

FB0H to FBFH

 

MSB

LSB

Type:

IV

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

 

C – Not affected

 

 

 

 

Z – Not affected

 

 

 

 

D – Not affected

 

 

 

 

I – Not affected

 

 

Description: Loads the contents of the data memory location addressed by Mn into the B- register.

Example:

 

LD B,M7

 

 

LD B,M8

 

B register

0100

 

0110

 

1010

 

Memory (07H)

0110

 

0110

 

0110

 

Memory (08H)

1010

 

1010

 

1010

S1C6200/6200A CORE CPU MANUAL

EPSON

47