3 INSTRUCTION SET

LD r,i

Load immediate data i into r-register

 

Source Format:

LD

r,i

 

Operation:

r

i3 to i0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

0

0

0

r1

r0

i3

i2

i1

i0

 

E00H to E3FH

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

 

Type: II

Clock Cycles: 5

Flag: C – Not affected

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

Description: Loads immediate data i into the r-register.

Example:

 

LD A,6

 

 

LD MY,0

 

A register

0101

 

0110

 

0110

 

Memory (MY)

1001

 

1001

 

0000

LD r,q

Load q-register into r-register

Source Format:

LD r,q

Operation:

r

q

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

0

1

1

0

0

r1

r0

q1

q0

EC0H to ECFH

 

MSB

 

 

 

 

 

 

 

 

 

 

LSB

Type: IV

Clock Cycles: 5

Flag: C – Not affected

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

Description: The contents of the q-register are loaded into the r-register.

Example:

 

LD A,B

 

 

LD B,MY

 

A register

0010

 

0000

 

0000

 

B register

0000

 

0000

 

0110

 

Memory (MY)

0110

 

0110

 

0110

S1C6200/6200A CORE CPU MANUAL

EPSON

51