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...")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
Pops 2 arguments from the stack, performs logical OR operation and '''pushes the result onto stack'''.
 
Pops 2 arguments from the stack, performs logical OR operation and '''pushes the result onto stack'''.
 +
 +
{{Clear}}
  
 
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>

Latest revision as of 20:25, 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