1
SH_LOCALASSIGN
Nunuhara Cabbage edited this page 2019-11-05 21:41:12 -08:00

SH_LOCALASSIGN <varno> <value>

Instruction Arguments

int32 varno - The index of the variable to assign to
int32 value - The value to assign to the variable

Stack Arguments

None.

Description

Assign a compile-time constant value to a local variable.

Example

SH_LOCALASSIGN 0x3 0x10 ; stack: []

This is equivalent to,

PUSHLOCALPAGE ; stack: [pageno]
PUSH 0x3      ; stack: [pageno, 3]
PUSH 0x10     ; stack: [pageno, 3, 16]
ASSIGN        ; stack: [16], and localpage[3] = 16
POP           ; stack: []