REPT             Initiate repeat block                        Macro Directive

REPT expression
macro_body
ENDM

Initiates a repeat block, causing the assembler to process statements
expression times.

expression must evaluate to a constant and cannot contain any forward-
referenced symbol names.


Examples: label squares word
tmp = 0
REPT 255
dw (tmp * tmp)
tmp = tmp + 1
ENDM

label mul10_table word
tmp = 0
REPT 100
dw tmp * 10
tmp = tmp + 1
ENDM