<< Previous | Next >>

IPRES     Interrupt Priority Reset     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
ED 5D IPRES IP = {IP[1:0], IP[7:2]}

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
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.


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