wait

Wait for interrupt

Halts the processor until an interrupt arrives.

Forms

  • wait

This simulator delivers no interrupts, so there would be nothing to wake it; rather than hang, 'wait' does nothing and execution continues. It is accepted so that kernel-style code assembles unchanged.

# With no interrupt pending, this simulator steps past wait. Inspect $t2: 1.
wait
li $t2, 1