Jumps

Code

Function

@100

Unconditional jump

@121

Jump if unequal

@122

Jump if equal

@123

Jump if less or equal

@124

Jump if less

@125

Jump if greater or equal

@126

Jump if greater

@111

Case block

Unconditional jump

Command

@100

Parameter

K or R

The parameter describes the jump destination. This must have an indication of direction ('+' or '-').

Sample 1:

N10 .. 
...
N120 @100 K-10

In this example, execution continues from line 10 after line 110 has been interpreted. The sign indicates the direction in which the line to be searched can be found.

Jump if unequal

Command

@121

 

Parameter 1

R<n>

Comparison value

Parameter 2

K or R<m>

Comparison value

Parameter 3

K

Jump destination with direction indication

Sample 2:

N10 ..
...
R1=14
N120 @121 R1 K9 K-10
N130 ...

Jump if equal

cf. Jump if not equal

Jump if less or equal

cf. Jump if not equal

Jump if less

cf. Jump if not equal

Jump if greater or equal

cf. Jump if not equal

Jump if greater

cf. Jump if not equal

Case block

Command

@111

 

Parameter 1

R<n>

Comparison value

Parameter 2

K or R<m>

First comparison value

Parameter 3

K

First jump destination

Parameter 4

K or R<m>

Second comparison value

...

 

 

Sample 3:

N100 R2=12 (R2=13) (R2=14)
N200 @111 R2 K12 K300
K13 K400
K14 K500

N300 R0=300
N310 @100 K5000

N400 R0=400
N410 @100 K5000

N500 R0=500
N510 @100 K5000

N5000 M30

A case block is made in line 200. If R2 = 12 a jump is made to line 300.

If R2 = 13, the jump destination is line 400. If R2 = 14, the jump destination is line 500.

In the event that none of the conditions is satisfied, execution simply continues with the next line (in this case, line 300).