Two-Way Radio User Manual

3. Instruction Set
3-59
Program example 3:
Users can adopt CJ instruction to skip a specified FOR ~ NEXT loop. When X1 = ON, CJ
instruction executes to skip the most inner FOR ~ NEXT loop.
X0
TMR T0 K10
P0
FOR K4X100
X0
INC D0
K2
X0
D1
K3
X0
D2
K4
X0
WDT
D3
X1
CJ P0
FOR K5
X0
X0
INC D4
NEXT
NEXT
NEXT
NEXT
NEXT
END
FOR
INC
FOR
INC
FOR
INC