include libmacro.inc

beglib

item	'terminate','*'
	mov	ah,0
	int	21h

item	'dosver','*'
	mov	ah, 20h
	int	21h
	push	ax

item	'mavail','*'
	mov	ah, 48h
	xor	al, al
	mov	bx, 0ffffh
	int	21h
	push	bx

item	'malloc','*'
	pop	bx
	mov	ah, 48h
	int	21h
	push	ax

item	'mfree','*'
	mov	ah, 49h
	pop	es
	int	21h

item	'mresize','*'
	pop	bx
	pop	es
	int	21h

item	'setintvector','*'
	pop	bx
	pop	ax
	mov	ds, [bx+0]
	mov	dx, [bx+2]
	mov	ah, 025h
	push	si
	int	021h
	pop	si

item	'getintvector','*'
	pop	bx
	pop	ax
	mov	ah, 035h
	push	bx
	push	si
	int	021h
	pop	si
	pop	dx
	xchg	dx, bx
	mov	[bx+0], es
	mov	[bx+2], dx

endlib


	