1
SH_GLOBALREF
Nunuhara Cabbage edited this page 2019-11-05 21:34:26 -08:00

SH_GLOBALREF <varno>

Instruction Arguments

int32 varno - The index of the global variable

Stack Arguments

None.

Description

Push the value of a global variable onto the stack.

Example

SH_GLOBALREF 0x3 ; stack: [v], where v is the value of globalpage[3]

This is equivalent to,

PUSHGLOBALPAGE ; stack: [pageno]
PUSH 0x3       ; stack: [pageno, 3]
REF            ; stack: [v], where v is the value of globalpage[3]