Table of Contents

ugBASIC User Manual

WAIT VBL

SYNTAX

   WAIT VBL [raster line]

PURPOSE

The WAIT VBL command pauses program execution until a “vertical blank” is encountered. This is a signal that is triggered at each screen refresh, which usually occurs at 50 Hz in PAL standard and 60 Hz in NTSC standard.

Some video chipsets also allow you to specify a specific raster line, so execution will continue when that specific line is reached. If the chipset does not allow this, this constraint will be ignored, while still respecting the arrival of a vertical blank.

EXAMPLE

  WAIT VBL 100

ABBREVIATION

 WtVb

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