4.62 While Directive
The MPASM WHILE directive loops over a block of assembly
code while some condition is true.
Suggested Replacement
There is no replacement for this directive, but the PIC Assembler's
REPT directive performs a similar task.
The block of code following REPT and terminated by
ENDM is output a number of times, based on the directive's
argument.
The following example shows a shift instruction that will be performed 4
times.
REPT 4
rlncf mask,f
ENDM