2
REF
Nunuhara Cabbage edited this page 2019-11-05 18:23:52 -08:00

REF

Instruction Arguments

None.

Stack Arguments

int32 pageno - The id of the page containing the variable
int32 varno - The index of the variable within the page

Description

Push a value from a page onto the stack.

Example

PUSHLOCALPAGE ; stack: [pageno]
PUSH 0x0      ; stack: [pageno, 0]
REF           ; stack: [v], where v = localpage[0]