Difference between revisions of "Jmpiuexe"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
Line 1: Line 1:
.
+
==Syntax==
 +
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmpi_!= </span>register1, xxxxxxxx, function</span>
 +
 
 +
* register1 = Register to compare
 +
* xxxxxxxx = Integer value to compare with
 +
* function = Function to jump to if conditions are true.
 +
 
 +
==Use==
 +
Used to compare the value of a register with a integer value. If they are NOT equal go to function. To compare register with another register use [[jmpuexe|jmp_!=]]
 +
 
 +
==Example==
 +
<span style='font-size:12px;font-family:courier'>
 +
<span style='color:blue'>100:    </span><span style='color:green'>jmpi_!= </span>R1, 00000000, 101 <span style='color:orange'>//If R1 is NOT equal to 0 go to function 101</span>
 +
<span style='color:green'>        leti </span>R1, 00000001
 +
<span style='color:green'>        jmp </span>100
 +
<span style='color:green'>        ret </span>
 +
<span style='color:blue'>101:    </span><span style='color:green'>nop </span><span style='color:orange'>//This example does nothing.</span>
 +
<span style='color:green'>        ret </span>
 +
</span>
 +
 
 +
==Also see==
 +
[[leti]], [[ret]], [[nop]], [[jmp]]

Latest revision as of 11:21, 5 April 2011

Syntax

Syntax: jmpi_!= register1, xxxxxxxx, function

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

Use

Used to compare the value of a register with a integer value. If they are NOT equal go to function. To compare register with another register use jmp_!=

Example


100:     jmpi_!= R1, 00000000, 101 //If R1 is NOT equal to 0 go to function 101
         leti R1, 00000001
         jmp 100
         ret 
101:     nop //This example does nothing.
         ret 

Also see

leti, ret, nop, jmp