Specifications

Saturn General Assembler Directives 4-33
Psy-Q Development System
REPT, ENDR
Description These directives allow the programmer to repeat the code between the REPT and
ENDR statements. The number of repetitions is determined by the value of count.
Syntax REPT count
...
ENDR
See Also DO, WHILE
Remarks When used in a Macro, REPT is frequently associated with the NARG function.
Examples rept 12
dc.w 0,0,0,0
endr
cbb macro string
lc = 0
rept strlen(\string)
cc substr lc+1,lc+1,\string
dc.b "\cc"^($A5+lc)
lc = lc+1
endr
endm