Difference between revisions of "FF8/Field/Script/Opcodes/001 CAL"
Jump to navigation
Jump to search
my_wiki>Myst6re |
my_wiki>Myst6re (After some tests...) |
||
Line 18: | Line 18: | ||
[[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]] : Subtraction | [[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]] : Subtraction | ||
[[FF8/Field/Script/Opcodes/001 CAL/002 MUL|002 MUL]] : Multiplication | [[FF8/Field/Script/Opcodes/001 CAL/002 MUL|002 MUL]] : Multiplication | ||
− | [[FF8/Field/Script/Opcodes/001 CAL/003 | + | [[FF8/Field/Script/Opcodes/001 CAL/003 DIV|003 DIV]] : Division |
− | [[FF8/Field/Script/Opcodes/001 CAL/004 | + | [[FF8/Field/Script/Opcodes/001 CAL/004 MOD|004 MOD]] : Modulo |
[[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]] : Equal | [[FF8/Field/Script/Opcodes/001 CAL/006 EQ|006 EQ]] : Equal |
Revision as of 02:35, 9 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 DIV : Division 004 MOD : Modulo 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