1
.GLOBALREFREF
Nunuhara Cabbage edited this page 2020-05-01 21:07:09 -07:00

.GLOBALREFREF <varname>

Macro Arguments

ident varname - Name of the global variable

Stack Arguments

None.

Description

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

Macro Expansion

.GLOBALREFREF my_var

Expands to,

PUSHGLOBALPAGE
PUSH <varno>
REFREF

where <varno> is the index of the global variable my_var. my_var must be a reference to an immediate type (int or float).