<< Previous | Next >>

RST v     Reset PC to Interrupt Vector Address     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- RST v (SP-1) = PChigh
(SP-2) = PClow
SP = SP-2;
PC = Restart Address
D7 RST 10 (SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x20
DF RST 18 (SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x30
E7 RST 20 (SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x40
EF RST 28 (SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x50
FF RST 38 (SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x70

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
8
n/a
n/a
Rabbit 5000
11
11
11

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

Transfers program execution to the interrupt vector address specified by IIR:v, where IIR is the address of the interrupt vector table and v is the offset. The vector table is always on a 100h boundary. Its address can be read and set by the instructions LD A,IIR and LD IIR,A respectively, where A is the upper nibble of the 16-bit vector table address.


Rabbit Instructions << Previous | Next >> rabbit.com