Difference between revisions of "Jmpuexe"
From Unofficial QEdit Wiki Guide
Line 7: | Line 7: | ||
==Use== | ==Use== | ||
− | Used to compare the value of a register with | + | Used to compare the value of a register with another register. If they are NOT equal go to function. To compare register with another register use [[jmpiuexe|jmpi_!=]] |
==Example== | ==Example== |
Revision as of 11:18, 5 April 2011
Contents
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 another register 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