Difference between revisions of "FF8/Field/Script/Opcodes/001 CAL"
Jump to navigation
Jump to search
my_wiki>Aali |
my_wiki>Myst6re |
||
Line 1: | Line 1: | ||
+ | * 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. | ||
+ | |||
[[FF8/Field/Script/Opcodes/001 CAL/000 ADD|000 ADD]] | [[FF8/Field/Script/Opcodes/001 CAL/000 ADD|000 ADD]] | ||
[[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]] | [[FF8/Field/Script/Opcodes/001 CAL/001 SUB|001 SUB]] |
Revision as of 17:52, 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.
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