sleep
Sleep
sleep
Enters Sleep power-saving mode (Supervisor only).
Details
The TARGET instruction mnemonic 'sleep' places the thread into a power-saving mode where it does not execute instructions and may consume less power than in active mode.
Pseudocode Operation
r4 <- r3 shifted by r5
Programming Note
The sleep instruction is useful for reducing power consumption when no computation is needed. It should be used sparingly as it halts execution, potentially affecting real-time performance. Ensure proper synchronization to avoid race conditions when resuming from sleep.
Example
sleep
Encoding
Binary Layout
31
0
/
6
/
11
/
16
/
21
/
31