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 15: Line 15:
 
Calculate ''value1'' '''Argument''' ''value2'' and push the ''result'' into the stack. Possible values for '''Argument''':
 
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]] : Addition
  [[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]] : Subtraction
  [[FF8/Field/Script/Opcodes/001 CAL/002 MUL|002 MUL]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/002 MUL|002 MUL]] : Multiplication
  [[FF8/Field/Script/Opcodes/001 CAL/003 MOD|003 MOD]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/003 MOD|003 MOD]] : Modulo
  [[FF8/Field/Script/Opcodes/001 CAL/004 DIV|004 DIV]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/004 DIV|004 DIV]] : Division
  [[FF8/Field/Script/Opcodes/001 CAL/005 MIN|005 MIN]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/005 MIN|005 MIN]] :
  [[FF8/Field/Script/Opcodes/001 CAL/006 EQ|006 EQ]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/006 EQ|006 EQ]] : Equal
  [[FF8/Field/Script/Opcodes/001 CAL/007 GT|007 GT]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/007 GT|007 GT]] : Greater
  [[FF8/Field/Script/Opcodes/001 CAL/008 GE|008 GE]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/008 GE|008 GE]] : Greater or Equal
  [[FF8/Field/Script/Opcodes/001 CAL/009 LS|009 LS]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/009 LS|009 LS]] : Less
  [[FF8/Field/Script/Opcodes/001 CAL/00A LE|00A LE]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/00A LE|00A LE]] : Less or Equal
  [[FF8/Field/Script/Opcodes/001 CAL/00B NT|00B NT]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/00B NT|00B NT]] : Not Equal
  [[FF8/Field/Script/Opcodes/001 CAL/00C AND|00C AND]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/00C AND|00C AND]] : And
  [[FF8/Field/Script/Opcodes/001 CAL/00D OR|00D OR]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/00D OR|00D OR]] : Or
  [[FF8/Field/Script/Opcodes/001 CAL/00E EOR|00E EOR]]
+
  [[FF8/Field/Script/Opcodes/001 CAL/00E EOR|00E EOR]] : Exclusive Or

Revision as of 21:47, 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 : Addition
001 SUB : Subtraction
002 MUL : Multiplication
003 MOD : Modulo
004 DIV : Division
005 MIN : 
006 EQ : Equal
007 GT : Greater
008 GE : Greater or Equal
009 LS : Less
00A LE : Less or Equal
00B NT : Not Equal
00C AND : And
00D OR : Or
00E EOR : Exclusive Or