Jmpiugl

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: jmpi_< register1, xxxxxxxx, function

  • register1 = Register to compare.
  • xxxxxxxx = Integer to compare with.
  • function = Function to jump to if conditions are true.

Use

Used to compare the value of a register with an integer value. If register 1 is less than integer go to function. To compare register with another register use jmp_<

Example


100:     leti R1, 00000002
         thread 101 //Threads Function 101.
         ret 
101:     jmp_< R1, 00000001, 102 //If R1 is less than xxxxxxxx go to function 102
         subi R1, 00000001
         jmp 101
102:     nop //This example does nothing.
         ret 

Also see

leti, thread, subi, ret, nop, jmp