Difference between revisions of "Call arguments"

From Final Fantasy XII Wiki
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 13:56, 16 July 2019

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]