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

SR_POP

Instruction Arguments

None.

Stack Arguments

int32 structno - The heap index of a structure

Description

Decrement the stack pointer and decrease the reference count of the structure object at the top of 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]
SR_POP        ; stack: []