; mouse library routines and macros
title mouse.asm
public mse_init
.model small
.stack 100h
.data
.code

;*************************************
; mse_init
;	-- init mouse and show mouse ptr
;	input: none
;	output: ax=0 if no mouse installed
;		ax=1 if mse installed
;		bx=number of buttons
;*************************************
mse_init proc
	mov ax,0	;fn=init mse
	int 33h
	cmp ax,0
	je _no_mse
	mov ax,1	;fn=show mse
	int 33h
  _no_mse: ret
mse_init endp

end
