User Tools

Site Tools


ugbasic:user:kw:wait
Translations of this page:


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

  • Commodore 128 (Zilog Z80)
  • Commodore 128 (MOS 8502)
  • SEGA SG-1000
  • ZX Spectrum 48
  • Commodore 64
  • Commodore PLUS/4
  • Commodore VIC-20
  • Atari (400/800)
  • VG-5000
  • Amstrad CPC 664
  • SEGA SC-3000
  • ColecoVision
  • TRS-80 Color Computer 3
  • MSX
  • TRS-80 Color Computer

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