1
.GLOBALASSIGN
Nunuhara Cabbage edited this page 2020-05-02 07:48:00 -07:00

.GLOBALASSIGN <varname> <value>

Macro Arguments

ident varname - Name of the global variable
int32 value - The value to assign

Stack Arguments

None.

Description

Assign the value of a global variable.

Macro Expansion

.GLOBALASSIGN var_name value

Expands to,

PUSHGLOBALPAGE
PUSH <varno>
PUSH value
ASSIGN
POP

where <varno> is the index of the global variable var_name.