1
DELETE
Nunuhara Cabbage edited this page 2019-11-05 21:14:34 -08:00

DELETE

Instruction Arguments

None.

Stack Arguments

int32 pageno - The page to delete

Description

Decrement the reference count of a page.

Example

Supposing global variable 3 contains a reference to a page-allocated variable,

PUSHGLOBALPAGE ; stack: [ref_pageno]
PUSH 0x3       ; stack: [ref_pageno, 3]
REF            ; stack: [pageno]
DELETE         ; stack: [], and the page with id pageno is deleted if its reference count fell to 0