Open main menu

Difference between revisions of "SCUMM/V6 opcodes"

616 bytes added ,  14:06, 3 May 2007
lor, lt, mul from http://www.scummvm.org/docs/specs/scrp-v6.php
m (→‎land: formatting)
(lor, lt, mul from http://www.scummvm.org/docs/specs/scrp-v6.php)
Line 527: Line 527:


==lor==
==lor==
'''Encoding'''
''19''
'''Stack'''
''( in1  in2  :  out)''
'''Operation'''
out:=in1  ||  in2
Performs a logical or operation on the stack (not a bitwise or). Note the order.
The boolean values are as in C, with 0 for false and non-zero for true.


==lt==
==lt==
'''Encoding'''
''11''
'''Stack'''
''( value1  value2  :  bool)''


==MM c9 miscOps==
'''Operation'''


If value1<value2 , set bool to 1, otherwise set it to 0
Compares the top two values on the stack. Note the order.
==MM C9 miscOps==
==mul==
==mul==
'''Encoding'''
''16''
'''Stack'''
''( in1  in2  :  out)''
'''Operation'''
out:=in1× in2
Performs a multiplication operation on the stack. Note the order.


==neq==
==neq==
334

edits