include	clib.inc

PPROC	emmfree, handle:WORD
	mov	dx,handle	 	; DX EMM handle
	mov	ah,45h			; RELEASE HANDLE AND MEMORY
	int	67h
	test	ah,ah
	jnz	emmfree_err
	xor	ax,ax
    emmfree_end:
	ret
    emmfree_err:
	mov	ax,-1
	jmp	emmfree_end
PEND	emmfree

	END
