Difference between revisions of "Jmp off"
From Unofficial QEdit Wiki Guide
(→Syntax) |
|||
Line 2: | Line 2: | ||
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_off </span>string</span> | ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_off </span>string</span> | ||
− | * ''string:'' contains function to jmp to and registers to test. If the following format: [function], [number of registers] | + | * ''string:'' contains function to jmp to and registers to test. If the following format: [function], [number of registers]:[register]:[...] |
==Use== | ==Use== |
Latest revision as of 19:32, 19 February 2013
Contents
Syntax
Syntax: jmp_off string
- string: contains function to jmp to and registers to test. If the following format: [function], [number of registers]:[register]:[...]
Use
Used for jumping to a function if all specified registers are off.
Example
100: set R1
jmp_off 200, 3:1:2:3 //R1 set. No jump
set R2
jmp_off 200, 3:1:2:3 //R1 and R2 set. No jump
set R3
jmp_off 200, 3:1:2:3 //All registers are set. No jump
clear R1
clear R2
clear R3
jmp_off 200, 3:1:2:3 //All registers are off. Jump to function 200
ret
200: window_msg 'All registers have been cleared'
winend
ret
Also see
set, clear, window_msg, winend, ret