Date: Mon, 14 Jul 2003 00:08:56 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: culikr AT uol DOT com DOT br Message-Id: <2561-Mon14Jul2003000856+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <001201c340bc$f8096360$0105a8c0@luiz> (culikr@uol.com.br) Subject: Re: problem with mouse References: <001201c340bc$f8096360$0105a8c0 AT luiz> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Luiz Rafael Culik Guimaraes" > Date: Wed, 2 Jul 2003 14:11:17 -0300 > > int getpos(void) > { > union REGS r; > r.x.ax=3; > int86(0x33&r,&r); > return r.x.cx/8; > } > > this return weird numbers like 132514, 125465 Please read the section in the libc reference manual that describes the int86 function: info libc alpha int86 (search for "_DOS_REGS" anda read there).