3 INSTRUCTION SET

SLP

Sleep

 

 

 

 

 

 

 

 

Source Format:

SLP

 

 

 

 

 

 

 

 

Operation:

Stop CPU and peripheral oscillator

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

1

1

1

1

1

1

1

1

0

0

1

FF9H

 

 

 

 

MSB

 

 

 

LSB

 

 

 

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Not affected

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

I

– Not affected

 

 

 

 

 

 

 

 

Description:

Stops the CPU and the peripheral oscillator. When an interrupt occurs PCP and

 

PCS are pushed onto the stack as the return address and the interrupt service

 

routine is executed.

 

 

 

 

 

 

 

 

Example:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

 

State

 

PCP

PCS

I flag

 

 

 

 

 

 

 

 

 

 

 

RUN

 

0100

0011 0000

1

 

 

 

 

 

 

 

 

SLP

 

 

 

 

0100

0011 0001

1

 

 

 

 

 

 

 

 

 

 

 

 

SLEEP

 

 

 

 

 

 

Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOP5

 

RUN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0001

0000 0001

0

 

SUB r,q

Subtract q-register from r-register

 

Source Format:

SUB r,q

 

 

 

 

 

 

 

 

 

Operation:

r

 

r - q

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

 

0

1

0

1

0

1

0

r1

r0

q1

q0

 

AA0H to AAFH

 

MSB

 

 

 

 

 

 

LSB

 

Type:

IV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Set if a borrow is generated; otherwise, reset.

 

Z – Set if the result is zero; otherwise, reset.

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

 

I

– Not affected

 

 

 

 

 

 

 

 

 

Description:

Subtracts the contents of the q-register from the r-register.

Example:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB A,B

 

 

A register

 

1100

 

1001

 

 

 

 

B register

 

0011

 

0011

 

 

 

 

C flag

 

1

 

0

 

 

 

 

Z flag

 

0

 

0

 

 

 

80

EPSON

S1C6200/6200A CORE CPU MANUAL