2
PUSHGLOBALPAGE
Nunuhara Cabbage edited this page 2019-11-05 21:27:35 -08:00

PUSHGLOBALPAGE

Instruction Arguments

None.

Stack Arguments

None.

Description

Push the index of the global page onto the stack. The global page stores all global variables.

Example

To obtain the value of a global variable,

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