Difference between revisions of "Jmp on"
From Unofficial QEdit Wiki Guide
(→Use) |
(→Syntax) |
||
Line 2: | Line 2: | ||
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_on </span>string</span> | ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>jmp_on </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_on 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 on.
Example
100: set R1
jmp_on 200, 3:1:2:3 //Only R1 set. No jump
set R2
jmp_on 200, 3:1:2:3 //Only R1 and R2 set. No jump
set R3
jmp_on 200, 3:1:2:3 //All registers are set. Jump to function 200
ret
200: window_msg 'All registers have been set'
winend
ret
Also see
set, window_msg, winend, ret