Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!samsung!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucsdhub!hp-sdd!hp-pcd!hpmcaa!nacer From: nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) Newsgroups: comp.lang.pascal Subject: accessing registers in a mouse handler Message-ID: <1490007@hpmcaa.mcm.hp.com> Date: 9 Feb 90 18:26:37 GMT Organization: HP McMinville Division Lines: 33 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 @ 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)