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

.STRUCTREF <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

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

Macro Expansion

.STRUCTREF struct_type member_name

Expands to,

PUSHSTRUCTPAGE
PUSH <memberno>
REF

where <memberno> is the index of the member memeber_name in the struct page of the current function.