1
PUSHLOCALPAGE
Nunuhara Cabbage edited this page 2019-11-05 21:26:46 -08:00

PUSHLOCALPAGE

Instruction Arguments

None.

Stack Arguments

None.

Description

Push the index of the current local page onto the stack. The local page stores arguments and local variables for the current function.

Example

To obtain the value of a local variable,

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