3 INSTRUCTION SET

LDPX MX,i Load immediate data i into MX, increment X by 1

Source Format:

LDPX MX,i

 

 

 

 

 

 

 

 

Operation:

M(X) i3 to i0, X

X + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

0

0

 

1

1

0

i3

i2

i1

i0

E60H to E6FH

 

MSB

 

 

 

 

 

 

LSB

 

Type: IV

Clock Cycles: 5

Flag: C – Not affected

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

Description: Loads immediate data i into the data memory location addressed by IX. X is incremented by 1. Incrementing X does not affect the flags.

Example:

 

LDPX MX,7

 

LDPX MX,0AH

 

X register

1000 0011

1000 0100

1000 0101

 

Memory (83H)

0010

 

0111

0111

 

Memory (84H)

1001

 

1001

1010

LDPX r,q

Load q-register into r-register, increment X by 1

Source Format:

LDPX r,q

 

 

 

 

 

 

 

 

 

 

Operation:

r q, X

X + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

1

1

0

1

1

1

0

r1

r0

q1

q0

EE0H to EEFH

 

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 q-register into the r-register. X is incremented by 1. Incrementing X does not affect the flags.

Example:

 

LDPX A,B

 

LDPX B,MY

 

X register

0100 1001

 

0100

1010

0100 1011

 

A register

1010

 

1101

1101

 

B register

1101

 

1101

0000

 

Memory (MY)

0000

 

0000

0000

S1C6200/6200A CORE CPU MANUAL

EPSON

49