Jameco Electronics 3000, 2000 Control Instructions - Jumps and Calls, Miscellaneous Instructions

Models: 3000 2000

1 349
Download 349 pages 5.72 Kb
Page 266
Image 266
19.17 Control Instructions - Jumps and Calls

19.17 Control Instructions - Jumps and Calls

Instruction

clk

A

I S Z V C

Operation

 

CALL mn

12

 

- - - -

(SP-1) = PCH; (SP-2) = PCL;

 

 

 

 

PC = mn; SP = SP-2

DJNZ j

5

r

- - - -

B = B-1; if {B != 0} PC = PC + j

JP (HL)

4

 

- - - -

PC = HL

 

JP (IX)

6

 

- - - -

PC = IX

 

JP (IY)

6

 

- - - -

PC = IY

 

JP f,mn

7

 

- - - -

if {f} PC = mn

 

JP mn

7

 

- - - -

PC = mn

 

JR cc,e

5

 

- - - -

if {cc} PC = PC + e

JR e

5

 

- - - -

PC = PC + e (if e==0 next

 

 

 

 

seq inst is executed)

LCALL xpc,mn

19

 

- - - -

(SP-1) = XPC; (SP-2) = PCH;

 

 

 

 

(SP-3) = PCL;

XPC=xpc;

 

 

 

 

PC = mn; SP = (SP-3)

LJP xpc,mn

10

 

- - - -

XPC=xpc; PC = mn

LRET

13

 

- - - -

PCL = (SP); PCH = (SP+1);

 

 

 

 

XPC = (SP+2);

SP = SP+3

RET

8

 

- - - -

PCL = (SP); PCH = (SP+1);

 

 

 

 

SP = SP+2

 

RET f

8/2

 

- - - - if {f} PCL = (SP); PCH =

 

 

 

 

(SP+1); SP = SP+2

RETI

12

 

- - - -

IP = (SP); PCL = (SP+1);

 

 

 

 

PCH = (SP+2);

SP = SP+3

RST v

10

 

- - - -

(SP-1) = PCH; (SP-2) = PCL;

 

 

 

 

SP = SP - 2; PC = {R,v)

 

 

 

 

v=10,18,20,28,38 only

19.18 Miscellaneous Instructions

Instruction

clk

A

I S Z V C

Operation

CCF

2

f

- - - *

CF = ~CF

IPSET 0

4

 

- - - -

IP = {IP[5:0], 00}

IPSET 1

4

 

- - - -

IP = {IP[5:0], 01}

IPSET 2

4

 

- - - -

IP = {IP[5:0], 10}

IPSET 3

4

 

- - - -

IP = {IP[5:0], 11}

IPRES

4

 

- - - -

IP = {IP[1:0], IP[7:2]}

LD A,EIR

4

fr

* * - -

A = EIR

LD A,IIR

4

fr

* * - -

A = IIR

LD A,XPC

4

r

- - - -

A = MMU

LD EIR,A

4

 

- - - -

EIR = A

LD IIR,A

4

 

- - - -

IIR = A

LD XPC,A

4

 

- - - -

XPC = A

NOP

2

 

- - - -

No Operation

POP IP

7

 

- - - -

IP = (SP); SP = SP+1

PUSH IP

9

 

- - - -

(SP-1) = IP; SP = SP-1

SCF

2

f

- - - 1

CF = 1

User’s Manual

257

Page 266
Image 266
Jameco Electronics 3000, 2000 manual Control Instructions - Jumps and Calls, Miscellaneous Instructions, User’s Manual