1
SH_LOCALREF
Nunuhara Cabbage edited this page 2019-11-05 21:36:19 -08:00

SH_LOCALREF <varno>

Instruction Arguments

int32 varno - The index of the local variable

Stack Arguments

None.

Description

Push the value of a local variable onto the stack.

Example

SH_LOCALREF 0x3 ; stack: [v], where v is the value of localpage[3]

This is equivalent to,

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