Call arguments

From Final Fantasy XII Wiki
Revision as of 13:56, 16 July 2019 by Admin (talk | contribs) (Created page with "All arguments for called functions are pushed onto stack in order of appearance in function signature. In other words, top of the stack contains the last argument. E.g. a c-l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All arguments for called functions are pushed onto stack in order of appearance in function signature. In other words, top of the stack contains the last argument.

E.g. a c-like call

setpos(posx, posy, posz);

Is represented by

PUSHV [posx]
PUSHV [posy]
PUSHV [posz]
CALLPOPA [setpos]