2
.STRUCTASSIGN
Nunuhara Cabbage edited this page 2020-05-02 08:04:06 -07:00

.STRUCTASSIGN <struct_type> <member_name> <value>

Macro Arguments

ident struct_type - Name of the struct type
ident member_name - Name of the struct member
int32 value - The value to assign

Stack Arguments

None.

Description

Assign the value of a struct member.

Macro Expansion

.STRUCTASSIGN struct_type member_name value

Expands to,

PUSHSTRUCTPAGE
PUSH <memberno>
PUSH value
ASSIGN
POP

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