// Repetition Example:

ADDSP 2         // leave space for x and rv
PUSHIMM 1       // push 1 on the stack
STOREOFF 1      // store the value 1 for x
looplabel:      // label the loop starting at the condition
PUSHOFF 1       // retrieve the value of x
PUSHIMM 5       // push the value to compare x with
LESS            // is x < 5 ? push 1 if so; otherwise, 0
JUMPC continue  // if x < 5, do statements under continue
done:           // x >= 5, so move to statement after the while-block
PUSHOFF 1       // retrieve the value of x
STOREOFF 0      // store the value of x as the rv
ADDSP -1        // deallocate x
STOP            // stop processing and return the rv value
continue:       // the block of statements that follow the loop
PUSHOFF 1       // retrieve the value of x
PUSHIMM 1       // push 1 onto the stack
ADD             // add 1 to the current value of x
STOREOFF 1      // store the new value of x
JUMP looplabel  // repeat the loop (goto loop condition)
