Table of Contents

ugBASIC User Manual

WAIT ✓

SYNTAX

   WAIT delay CYCLES|TICKS|MILLISECONDS

PURPOSE

Engages the CPU in a wait. The timing can be given as number of CPU cycles (CYCLES), number of 50th/seconds (TICKS) or milliseconds (MILLISECONDS or MS).

EXAMPLE

  WAIT #10 MILLISECONDS
  WAIT timing MILLISECONDS
  WAIT #2 TICKS
  WAIT timing TICKS
  WAIT #42 CYCLES
  WAIT delay CYCLES

See also the following example files:

ABBREVIATION

 Wt

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY