10.8. 10.8 Repetitive Compilation (Compile Time Loops)

HLA's #while..#endwhile and #for..#endfor statements provide compile time loop constructs. The #while statement tells HLA to process the same sequence of statements repetitively during compilation. This is very handy for constructing data tables as well as providing a traditional looping structure for compile time programs. Although you will not employ the #while statement anywhere near as often as the #if statement, this compile time control structure is very important when you write advanced HLA programs.

The #while statement uses the following syntax:

#while( constant_boolean_expression )

     < text >

#endwhile

When HLA encounters the #while statement during compilation, it will evaluate the ...

Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.