1
SR_REF
Nunuhara Cabbage edited this page 2022-06-30 14:30:18 -07:00

SR_REF

Instruction Arguments

None.

Stack Arguments

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

Description

Push a copy of a structure object from a page onto the stack.

Example

PUSHLOCALPAGE ; stack: [pageno]
PUSH 0x0      ; stack: [pageno, 0]
SR_REF        ; stack: [v], where v = a copy of the structure at localpage[0]