General Vritual Machine architecture

From Final Fantasy XII Wiki
Revision as of 09:12, 15 July 2019 by Admin (talk | contribs) (Created page with "Final Fantasy XII contains a stack based '''virtual machine''' that runs field and event scripts. The implementation seems to be exactly the same starting with Japanese PS2 re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Final Fantasy XII contains a stack based virtual machine that runs field and event scripts. The implementation seems to be exactly the same starting with Japanese PS2 release, through PS4, PC and Nintendo Switch versions. The only thing that changes are available calls. Each subsequent version supports all previous calls and includes a few dozen of new ones at most.


General VM specifications are as follows:

VM's general specifications
Type stack based
Integer registers 4 (I0 to I3)
Float registers 4 (F0 to F3)
Special registers 3 (X, Y, A)
Number of instructions 100
Maximum stack size unknown