1
FT_ASSIGNS
Nunuhara Cabbage edited this page 2022-06-30 14:30:18 -07:00

FT_ASSIGNS

Instruction Arguments

None.

Stack Arguments

int32 pageno - The heap index of the page containing functype variable to assign to
int32 varno - The index of the variable to assign to
int32 fname - The name of the function to assign (heap index of a string)
int32 type - The type of the functype variable to assign to

Description

Assign a function to a functype variable by name.

Example

PUSHLOCALPAGE ; stack: [pagno]
PUSH 0x0      ; stack: [pageno, 0]
S_PUSH 0x4    ; stack: [pageno, 0, s] where s is the heap index of a string which names a function
PUSH 0x5      ; stack: [pageno, 0, s, 5] where 5 is the type of the functype variable at localpage[0]
FT_ASSIGNS    ; stack: [s] and localpage[0] now contains the function named by s