3 INSTRUCTION SET

HALT

Halt

 

 

 

 

 

 

 

Source Format:

HALT

 

 

 

 

 

 

 

Operation:

Stops CPU

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

1

1

1

1

1

1

1

1

0

0

0

FF8H

 

MSB

 

 

 

 

 

LSB

 

Type:

VI

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

5

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

 

C – Not affected

 

 

 

 

 

 

 

 

 

Z – Not affected

 

 

 

 

 

 

 

 

 

D – Not affected

 

 

 

 

 

 

 

 

 

I

– Not affected

 

 

 

 

 

 

 

Description: Stops the CPU. 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

 

 

HALT

RUN

0001

0011 0011

1

 

 

 

HALT

 

 

 

 

Interrupt

 

 

0001

0011 0100

1

 

 

 

RUN

0001

Interrupt vector address

0

INC Mn

Increment memory by 1

 

 

 

 

Source Format:

INC Mn

 

 

 

 

Operation:

M(n3 to n0) M(n3 to n0) + 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

 

1

1

1

0

1

1

0

n3

n2

n1

n0

F60H to F6FH

 

MSB

 

 

LSB

Type:

IV

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

 

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

 

 

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

 

 

D – Not affected

 

 

 

 

 

 

I

– Not affected

 

 

 

 

Description: The contents of the data memory location addressed by Mn is incremented by 1.

Example:

 

INC M1

 

 

INC M3

 

INC M0DH

 

Memory (01H)

0100

 

0101

 

0101

 

0101

 

Memory (03H)

1111

 

1111

 

0000

 

0000

 

Memory (0DH)

0111

 

0111

 

0111

 

1000

 

C flag

0

 

0

 

1

 

0

 

Z flag

1

 

0

 

1

 

0

S1C6200/6200A CORE CPU MANUAL

EPSON

41