Specifications

Saturn General Assembler Directives 4-35
Psy-Q Development System
To avoid this, set a variable each time round the loop to indicate that looping should
continue:
s equs "x"
looping = -1
while looping
dc.b "\s",0
s equs "\s\x"
looping = strlen("\s") < 4
endw
DO, UNTIL
Description These directives allow the programmer to repeat the code between the DO and
UNTIL statements, until the specified expression becomes true.
Syntax DO
...
UNTIL expression
See Also REPT, WHILE
Remarks Unlike the WHILE directive, string equates in an UNTIL expression will be re-
evaluated each time round the loop.
Examples MultP equ 16
...
Indic = MultP
do
move.w term(a0),d0
...
Indic = Indic-1
until Indic<=1