FANDOM


A VM instruction that jumps to a label (lbl) or instruction block when the first value is greater than or equal to the second. Program execution will continue to the next instruction if the comparison is not satisfied.

Usage Edit

jge: [{num1}, {num2}, {label}]

hakkML Example Edit

name: jge_example
blocks:
  core:
  entry: {name: 'main', loc: [0,1]}
code:
  main:
    - jge: [6, 5, success]
    - out: "This will never be called."
    - lbl: success
    - jge: [5, 5, success_again]
    - out: "This will never be called either."
    - lbl: success_again
    - out: "jump instruction succeeded"
    - exit: 0