1
.GLOBALREF
Nunuhara Cabbage edited this page 2020-05-01 21:00:32 -07:00

.GLOBALREF <varname>

Macro Arguments

ident varname - Name of the global variable

Stack Arguments

None.

Description

Get the value of a global variable (putting it on the stack).

Macro Expansion

.GLOBALREF my_var

Expands to,

PUSHGLOBALPAGE
PUSH <varno>
REF

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