1
.LOCALCREATE
Nunuhara Cabbage edited this page 2020-05-02 07:58:10 -07:00

.LOCALCREATE <var_name> <struct_type>

Macro Arguments

ident var_name - Name of the local variable
ident struct_type - Name of the struct type to initialize

Stack Arguments

None.

Description

Initialize a local struct variable.

Macro Expansion

.LOCALCREATE var_name struct_type

Expands to,

PUSHLOCALPAGE
PUSH <varno>
DUP2
REF
DELETE
DUP2
NEW struct_type -1
ASSIGN
POP
POP
POP

where <varno> is the index of the variable var_name in the local page of the current function.