[comp.lang.pascal] accessing registers in a mouse handler

nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) (02/10/90)

Mouse interrupt 51 ($33) function 12 (i think) allows you to install
a user-defined interrupt handler for mouse events so I wrote smth like:

  PROC   MSE_HANDLER_INSTALL(
		HANDLER_SEG,
		HANDLER_OSF  : INTEGER ) ;
 BEGIN
  ...
  REGS .ES := HANDLER_SEG ;
  REGS .DS := HANDLER_OFS ; 
  ...
 END ;
 
 PROC. MOUSE_HANDLER  (?) ?
 BEGIN ...?... END ;

 and I intend to call with MSE_HANDLER_INSTALL( 
				SEG( MOUSE_HANDLER ),
				OFS( MOUSE_HANDLER )  ) ;

 The interrupt functions says that when MOUSE_HANDLER is called
 information will be passed in AX, BX, ... ES registers ;
 
1)  Now the questions is how do I declare the interface to MOUSE_HANDLER ?
2) if I cannot receive these registeres thru the parameter list, do I have
   to use inline? how?
3) Would the @<proc-func-name> operator be more suitable than seg() and ofs()
   how can I use it in this instance.

I am using TP 5.0, try to be explicit in your answers.
Thank you.
--Abdenacer 	(nacer@hpmcaa.mcm.hp.COM)