F$Mem

From NitrOS-9
Jump to: navigation, search
Memory Changes process’s data area size
OS9 F$Mem 103F 07

Entry Conditions

D size of the new memory area (in bytes);

0 = return current size and upper bound

Exit Conditions

Y address of the new memory area upper bound

D actual size of the new memory (in bytes)

Error Output

CC carry set on error

B error code (if any)

Additional Information

  • The Memory call expands or contracts the process’s data memory area to the specified size. Or, if you specify zero as the new size, the call returns the current size and upper boundaries of data memory.
  • NitrOS-9 rounds off the size to the next page boundary. In allocating additional memory, NitrOS-9 continues upward from the previous highest address. In deallocating unneeded memory, it continues downward from that address.

krnp2