Counter

The Counter operation writes a value into a counter register. Counters are used by repetition helpers and by operations that need a small amount of per-thread state.

The first argument is the counter index, the second argument is the value.

; Counter example

COUNTER 0, 3
; ... code using counter 0

Syntax

COUNTER <counter index>, <value>