FANDOM


A VM instruction that designates a target point for control flow operations.

The VM normally processes instructions in sequential order. Labels can be used by goto, call and jump instructions (je, jne, jl, jle, jg, jge) to change the order of execution in your hakks.

Usage Edit

lbl: {label}

hakkML Example Edit

name: label_example
blocks:
  core:
  entry: {name: 'main', loc: [0,1]}
code:
  main:
    - rem: instruct VM to goto a label
    - goto: leave
    - out: "This line is skipped over and will never execute."
    - lbl: leave
    - exit: 0