◄Programming Tasks► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Statements and Functions Used for Managing Memory Statement or Task function Action ═════════════════════ ═══════════════ ═════════════════════════════════ Locating addresses SADD Returns the address (offset) of strings only) of string data of a string variable. SSEG Returns the address (segment) only) of a string variable. SSEG is typically used in mixed-language programming (along with SADD) to obtain far addresses before passing far strings to non-BASIC procedures. SSEGADD Returns the address (both segment and offset) of a string variable. SSEG is typically used in mixed- languages to obtain far addresses before passing far strings to non- BASIC procedures. Locating addresses VARPTR Returns the offset address of a of variables numeric variable or the offset address of a string descriptor. VARSEG Returns the segment address of a numeric variable or the segment address of a string descriptor. VARPTR$ Returns a string representation of a variable's address for use in DRAW and PLAY statements. Controlling the STACK Statement Resets the size of the stack. stack and heap STACK Function Returns the maximum stack size that can be allocated. CLEAR Reinitializes all program variables, closes any open files, and optionally sets the stack size. SETMEM Sets the amount of memory used by the far heap and returns information on the size of the far heap. Returning information FRE Returns information on remaining space in near memory, far memory, expanded memory, and in the stack. Setting segment DEF SEG Sets the current segment address. address