include	clib.inc
include	cursor.inc

PPROC	getcursor, cursor:dword
	mov	ah,3
	mov	bh,0
	int	10h
	xor	ax,ax
	les	bx,cursor
	mov	es:[bx],dx
	mov	es:[bx+2],cx
	cmp	cx,CURSOR_HIDDEN
	jz	getcursor_end
	inc	ax
    getcursor_end:
	ret
PEND   	getcursor

	END
