CounterJump: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(New page: CounterJump (frame, comparison, valctr, ctr) *frame: name of frame to jump to if the test passes *comparison: one of the following: :'''less''' or 0: '''valctr is a constant''' - jump if ...) |
|||
Line 23: | Line 23: | ||
==See also== | ==See also== | ||
*[[CounterOp]] | |||
*[[List of codepointers]] | *[[List of codepointers]] | ||
*[[SetCounter]] | *[[SetCounter]] | ||
[[Category:Codepointers]] | [[Category:Codepointers]] |
Revision as of 08:32, 11 January 2011
CounterJump (frame, comparison, valctr, ctr)
- frame: name of frame to jump to if the test passes
- comparison: one of the following:
- less or 0: valctr is a constant - jump if ctr < valctr
- lessorequal or 1: valctr is a constant - jump if ctr <= valctr
- greater or 2: valctr is a constant - jump if ctr > valctr
- greaterorequal or 3: valctr is a constant - jump if ctr >= valctr
- equal or 4: valctr is a constant - jump if ctr == valctr
- notequal or 5: valctr is a constant - jump if ctr != valctr
- and or 6: valctr is a constant - jump if ctr & valctr
- less_counter or 7: valctr is a counter number - jump if ctr < valctr
- lessorequal_counter or 8: valctr is a counter number - jump if ctr <= valctr
- greater_counter or 9: valctr is a counter number - jump if ctr > valctr
- greaterorequal_counter or 10: valctr is a counter number - jump if ctr >= valctr
- equal_counter or 11: valctr is a counter number - jump if ctr == valctr
- notequal_counter or 12: valctr is a counter number - jump if ctr != valctr
- and_counter or 13: valctr is a counter number - jump if ctr & valctr
- valctr: the value (or counter number holding the value) to compare against
- ctr: the counter to compare
Performs a counter-versus-value comparison and jumps to "frame" if the test passes.