Difference between revisions of "Jmpuexe"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Syntax==
 
==Syntax==
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_!= </span>register1, xxxxxxxx, function</span>
+
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_!= </span>register1, register2, function</span>
  
 
* register1 = Register to compare  
 
* register1 = Register to compare  
* xxxxxxxx = Integer value to compare with
+
* register2 = Register to compare with
 
* function = Function to jump to if conditions are true.
 
* function = Function to jump to if conditions are true.
  
 
==Use==
 
==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 [[jmpiuexe|jmpi_!=]]
+
Used to compare the value of a register with another register. If they are NOT equal go to function. To compare register with an integer use [[jmpiuexe|jmpi_!=]]
  
 
==Example==
 
==Example==
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='font-size:12px;font-family:courier'>
  <span style='color:blue'>100:    </span><span style='color:green'>jmp_!= </span>R1, R2, 101 <span style='color:orange'>//If R1 is NOT equal to 0 go to function 102</span>
+
  <span style='color:blue'>100:    </span><span style='color:green'>jmp_!= </span>R1, R2, 101 <span style='color:orange'>//If R1 is NOT equal to R2 go to function 101</span>
 
  <span style='color:green'>        leti </span>R1, 00000001
 
  <span style='color:green'>        leti </span>R1, 00000001
 
  <span style='color:green'>        jmp </span>100
 
  <span style='color:green'>        jmp </span>100

Latest revision as of 11:19, 5 April 2011

Syntax

Syntax: jmp_!= register1, register2, function

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

Use

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

Example


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

Also see

leti, ret, nop, jmp