RST v
Reset PC to Interrupt Vector Address
Rabbit 2000/3000/4000 Instruction
|
| ---- |
RST v |
8 (2,2,2,2) |
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2; PC = Restart Address |
|
D7
|
RST 10
|
8 (2,2,2,2)
|
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x20
|
|
DF
|
RST 18
|
8 (2,2,2,2)
|
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x30
|
|
E7
|
RST 20
|
8 (2,2,2,2)
|
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x40
|
|
EF
|
RST 28
|
8 (2,2,2,2)
|
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x50
|
|
FF
|
RST 38
|
8 (2,2,2,2)
|
(SP-1) = PChigh; (SP-2) = PClow; SP = SP-2;
PC = IIR:0x70
|
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.