.pg .x loop .x continue .x break .x end .lt ------------------------------------------------------------------------ LOOP CONTINUE ... BREAK END ------------------------------------------------------------------------ .el .b 3 The LOOP macro begins a iterative control structure. .b The BREAK macro will generate code to branch to the next instruction after the corrensponding END macro. The BREAK macro is optional. .b The CONTINUE macro will generate code to branch to the instruction just before the corrensponding END macro. The CONTINUE macro is optional. .b The END macro generates a branch back to the corresponding LOOP macro and also generates the appropriate label for the BREAK macro. For every LOOP macro specified, a corresponding END macro must also be specified. .b The WHILE macro, the REPEAT-UNTIL macro and the REPEAT-FOREVER macro are implemented using the LOOP and IF macros. .b The default branch displacement for LOOP is WORD (see BRANCH). .b For example: .b .lt loop statements-1 end .el .b will generate the following code .b .lt 20000$: statements-1 brw 20000$ 20001$: .el .b See also WHILE and REPEAT