VM instructions / opcodes

From Final Fantasy XII Wiki
Revision as of 09:42, 15 July 2019 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:Final Fantasy XII VM instructions / opcodes}} Final Fantasy XII VM supports 100 known opcodes. There are three types of instructions. Instructions '''with an i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Final Fantasy XII VM supports 100 known opcodes. There are three types of instructions. Instructions with an immediate, which are 3 bytes long, instructions without immediate, which are 1 byte long and special instructions like NOP and LABEL that have a defined size of zero and thus can't be used, because it causes the VM to loop indefinitely. These are probably used only by compiler and never put in the code itself.

Name Opcode Size Immediate Arguments Description
NOP 0x00 0 no 0 Don't use. It causes eternal loop
LABEL 0x01 0 no 0 Don't use. It causes eternal loop
TAG 0x02 0 no 0 Don't use. It causes eternal loop
SYSHALT 0x03 0 no 0