Flag byte

X'80'
Function requests a CLOSE call.

The CLOSE call is not enabled by default. Each time the external function is called, it is able to set (or reset) this flag to indicate that it needs to perform some extra processing (releasing storage, for example) before being deleted. The external function might therefore set the flag on one call and reset it on another.

If the flag is set at the end of the assembly, HLASM calls the function with a CLOSE code to allow it to release resources.

The assembler maintains the Flag Byte and provides it to the external function on all calls.