3
.STRUCTREFREF
Nunuhara Cabbage edited this page 2020-05-02 08:04:44 -07:00

.STRUCTREFREF <struct_type> <member_name>

Macro Arguments

ident struct_type - Name of the struct type
ident member_name - Name of the struct member

Stack Arguments

None.

Description

Dereference the value of a struct member (putting it on the stack).

Macro Expansion

.STRUCTREFREF struct_type member_name

Expands to,

PUSHSTRUCTPAGE
PUSH <varno>
REFREF

where <varno> is the index of the member my_var in the struct page of the current function. my_var must be a reference to an immediate type (int or float).