HiLMAs reference
Back

Miscellaneous Instructions

Next

MEMALLOC

MEMALLOC pointer,SIZE=num-bytes

 

Description

Dynamically allocate free storage.

This statement recall the appropiate operating system macro to obtain some free storage that can be used by the program. If this recall is successfull the Hilmas variable $RCCALL is 0. In this case, pointer is filled with the address of the start of this memory area.

The area so obtained cannot be directly used by Hilmas statement; the only statements you can use are PTR2VAR, VAR2PTR and PTR2PRT by which is possible move data from/to this area and Hilmas defined variables.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 pointer Output Integer A or F  
  SIZE= Input

Integer

F or H or const. Length in bytes

 

 

Examples

 


Back Start Next
SLEEP Top MEMFREE