<< Previous | Next >>

IPRES     Interrupt Priority Reset     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation

ED 5D

IPRES

4 (2,2)

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


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

Description

The IPRES instruction rotates the contents of IP 2 bits to the right, replacing the current priority with the previous priority.

This is a chained-atomic instruction, meaning that an interrupt cannot take place between this instruction and the instruction following it.

Example

If IP contains 00000110, the execution of the instruction


IPRES

would cause IP to contain 10000001.


<< Previous | Next >>