Difference between revisions of "FF8/Field/Script/Opcodes/001 CAL"

From Final Fantasy Inside
< FF8‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Myst6re
my_wiki>Myst6re
Line 9: Line 9:
 
==== Stack ====
 
==== Stack ====
  
..., value1, value2 => ..., result
+
..., ''value1'', ''value2'' => ..., ''result''
  
 
==== Description ====
 
==== Description ====
  
Calculate value1 Argument value2 and push the result into the stack.
+
Calculate ''value1'' '''Argument''' ''value2'' and push the ''result'' into the stack. Possible values for '''Argument''':
  
 
  [[FF8/Field/Script/Opcodes/001 CAL/000 ADD|000 ADD]]
 
  [[FF8/Field/Script/Opcodes/001 CAL/000 ADD|000 ADD]]

Revision as of 21:43, 8 February 2012

  • Opcode: 0x01
  • Short name: CAL
  • Long name: Calculate

Argument

Operation to perform (see description).

Stack

..., value1, value2 => ..., result

Description

Calculate value1 Argument value2 and push the result into the stack. Possible values for Argument:

000 ADD
001 SUB
002 MUL
003 MOD
004 DIV
005 MIN
006 EQ
007 GT
008 GE
009 LS
00A LE
00B NT
00C AND
00D OR
00E EOR