1
ASSIGN
Nunuhara Cabbage edited this page 2019-11-05 18:28:08 -08:00

ASSIGN

Instruction Arguments

None.

Stack Arguments

int32 pageno - The id of the page containing the variable to assign to
int32 varno - The index of the variable to assign to
int32 value - The value to assign to the variable

Description

Assign a value to a variable.

Example

PUSHLOCALPAGE ; stack: [pagno]
PUSH 0x0      ; stack: [pageno, 0]
PUSH 0x1      ; stack: [pageno, 0, 1]
ASSIGN        ; stack: [1], and page[varno] = 1