{{htmlmetatags>metatag-robots=() metatag-title=(WAIT | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for WAIT) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(WAIT | ugBASIC User Manual) metatag-og:description=(Manual page for WAIT) }} ====== 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: * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_uncond_jumps_01.bas|control_uncond_jumps_01.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_uncond_jumps_02.bas|control_uncond_jumps_02.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_returning_01.bas|control_returning_01.bas]]'' * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/control_returning_02.bas|control_returning_02.bas]]'' ==== 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 [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON WAIT|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]