REPZ, REP

Perform next command or block for count times, with pauses skipping. REP is synonym for REPZ.

Syntax

repz [count]
  command
repz [count]
{
  command
  ...
  command
}

Parameters

count
  • Decimal number from 2 to 100, tells how many times next command or block will be retried.

Example 0x00

sleeps 500 ; Set sleeps = 500 ms
 
110001001000
 
CYCLE:     ; Define Label
 
; All of these bocks give the same results:
 
; =================================
; Block 1
repz    ; Do these commands without pauses
{
  rol   ; Circular Shift Left
  rol   ; Circular Shift Left
}
 
; =================================
; Block 2
repz    ; Do next command without pauses
  rol 2 ; Circular Shift Left for 2 times
 
; =================================
; Block 3
repz 2  ; Do next command twice and without pauses
  rol   ; Circular Shift Left
 
goto CYCLE ; Infinite cycle
exrepz.mlh_g.gif
exrepz.sqr_g.gif
exrepz.sqr_r.gifexrepz.sqr_p.gifexrepz.sqr_b.gif
exrepz.sqr_a.gifexrepz.sqr_c.gifexrepz.sqr_y.gif