1
R_ASSIGN
Nunuhara Cabbage edited this page 2019-11-05 18:33:34 -08:00

R_ASSIGN

Instruction Arguments

None.

Stack Arguments

int32 dst_pageno - The id of the page containing the reference variable to assign to
int32 dst_varno - The index of the reference variable to assign to
int32 src_pageno - The id of the reference variable to read from
int32 src_varno - The index of the reference variable to read from

Description

Assign a value of one reference variable to another.

Example

PUSHLOCALPAGE ; stack: [pagno]
PUSH 0x0      ; stack: [pageno, 0]
PUSHLOCALPAGE ; stack: [pageno, 0, pageno]
PUSH 0x2      ; stack: [pageno, 0, pageno, 2]
R_ASSIGN      ; stack: [pageno, 2], and localpage[0] contains the same reference as localpage[2]