wait

Wait for interrupt

Continues immediately in this simulator. A loop around wait still consumes instructions.

Forms

  • wait

In this simulator 'wait' does nothing and execution continues at once: Count counts instructions, so a loop around 'wait' is how a program idles until the timer or a device interrupts it.

# In this simulator wait returns at once: Count counts instructions, so a loop
# around wait keeps running until an interrupt arrives. Inspect $t2: 1.
wait
li $t2, 1