WAIT

Waits for an input message.

Syntax

WAIT ;code:111

Description

This instruction suspends execution of VM code until there is a message from input. If the input message queue is not empty while calling this instruction, it will do nothing.

This instruction doesn't receive the message from the queue. You must do it using IN instruction.

You should use this instruction in every program except real-time programs, like games. It prevents virtual machine from using 100% of real CPU power. Program will execute only in response of input messages.