![]() |
|
| << Previous | Next >> | |
| | |
IPSET 0
IPSET 1
IPSET 2
IPSET 3 Interrupt Priority Set Rabbit 2000/3000/4000/5000 Instruction
ED 46 IPSET 0 IP = {IP[5:0], 00} ED 56 IPSET 1 IP = {IP[5:0], 01} ED 4E IPSET 2 IP = {IP[5:0], 10} ED 5E IPSET 3 IP = {IP[5:0], 11}
Rabbit 2000/3000/4000 Rabbit 5000
Description
IP is an 8-bit register that forms a stack of the current priority and the other previous 3 priorities. IPSET 0 forms the lowest priority; IPSET 3 forms the highest priority.
These are chained-atomic instructions, meaning that an interrupt cannot take place between one of these instructions and the instruction following it.
IPSET 0:shifts IP 2 bits to the left, then sets bits 0 and 1 of IP to 00
IPSET 1:shifts IP 2 bits to the left, then sets bits 0 and 1 of IP to 01
IPSET 2:shifts IP 2 bits to the left, then sets bits 0 and 1 of IP to 10
IPSET 3:shifts IP 2 bits to the left, then sets bits 0 and 1 of IP to 11
| Rabbit Instructions | << Previous | Next >> | rabbit.com |