include	libmacro.inc

beglib

item	'minit','*'
	push	ax
	mov	ax, 0
	int	33h
;	push	ax

item	'mshow','*'
	push	ax
	mov	ax, 1
	int	33h
	pop	ax

item	'mhide','*'
	push	ax
	mov	ax, 2
	int	33h
	pop	ax

item	'mquery','*'
	push	ax
	mov	ax, 3
	int	33h
	pop	ax
	xchg	ax, bx
	mov	[bx], ax
	pop	bx
	mov	[bx], dx
	pop	bx
	mov	[bx], cx
	pop	ax
;	push	bx
;	push	dx
;	mov	ax, cx

item	'mset','*'
	mov	dx, ax
	mov	ax, 4
	pop	cx
	int	33h
	pop	ax

item	'mquerypressed','*'
	mov	bx, ax
	mov	ax, 5
	int	33h
	push	cx
	push	dx
	mov	ax, bx

item	'mqueryreleased','*'
	mov	bx, ax
	mov	ax, 6
	int	33h
	push	cx
	push	dx
	mov	ax, bx

item	'mhrange','*'
	mov	dx, ax
	mov	ax, 7
	pop	cx
	int	33h
	pop	ax

item	'mvrange','*'
	mov	dx, ax
	mov	ax, 8
	pop	cx
	int	33h
	pop	ax

item	'mshape','*'
	mov	dx, ax
	mov	ax, 9
	pop	cx
	pop	bx
	int	33h
	pop	ax

item	'mmask','*'
	mov	dx, ax
	mov	ax, 0ah
	pop	cx
	pop	bx
	int	33h
	pop	ax

item	'mspeed','*'	
	mov	dx, ax
	mov	ax, 0fh
	pop	bx
	int	33h
	pop	ax

item	'mexclusion','*'
	mov	di, ax
	mov	ax, si
	pop	si
	pop	dx
	pop	cx
	push	ax
	mov	ax, 10h
	int	33h
	pop	si
	pop	ax

endlib



