1
SH_STRUCTREF
Nunuhara Cabbage edited this page 2019-11-05 21:38:04 -08:00

SH_STRUCTREF <varno>

Instruction Arguments

int32 varno - The index of the struct member

Stack Arguments

None.

Description

Push the value of a member of the 'this' struct onto the stack (in the context of a method call).

Example

SH_STRUCTREF 0x3 ; stack: [v], where v is the value of structpage[3]

This is equivalent to,

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