Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Code WHILE Blocks
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: .WHILE condition
statements
.ENDW
See also: WHILE, .REPEAT, .BREAK, .CONTINUE, .IF, Comparison Operators
Description:
Used for clear coding of common loop blocks. Generates code so
that, while <condition> is true, the processor loops through the
following block of statements.
The .ENDW statement marks the end of the <statements> block,
causing the processor to return to the .WHILE directive to
reevaluate whether <condition> is still true. If <condition> is
initially false, the <statements> will not be executed.
.WHILE blocks can be nested, and the assembler will optimize to get
the best possible code.
-♦-