Difference between revisions of "OPLOR (instruction)"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
(Created page with "{{Instruction|op_name=OPLOR|op_code=0x05|op_size=1|op_args=2|op_desc=Logical OR (disjunction)}} Pops 2 arguments from the stack, performs logical OR operation and '''pushes t...")
 
Line 5: Line 5:
 
In c-like syntax:<syntaxhighlight lang="c++">
 
In c-like syntax:<syntaxhighlight lang="c++">
 
(value1 || value2)
 
(value1 || value2)
 +
</syntaxhighlight>
 +
 +
Example assembler usage:<syntaxhighlight lang="asm">
 +
PUSHV value1
 +
PUSHV value2
 +
OPLOR
 +
POPXNCJMP jmp_label
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 20:23, 16 July 2019

OPLOR size: 1
args: 2
0x05
Logical OR (disjunction)

Pops 2 arguments from the stack, performs logical OR operation and pushes the result onto stack.

In c-like syntax:

(value1 || value2)

Example assembler usage:

PUSHV value1
PUSHV value2
OPLOR
POPXNCJMP jmp_label