Date: Wed, 8 Jul 1998 11:49:59 +0300 (IDT) From: Eli Zaretskii To: dangfrancois AT my-dejanews DOT com, dangfrancois AT yahoo DOT com cc: djgpp AT delorie DOT com Subject: Re: Mouse program in djgpp In-Reply-To: <6ntr6e$sle$1@nnrp1.dejanews.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 7 Jul 1998 dangfrancois AT my-dejanews DOT com wrote: > I tried to adapt the program which returns the mouse coordinate(from > Turbo C) to djgpp but it doesn't work : it returns random figures. If that program uses int86 library functions, you need to read the description of the problems with the .x members in union REGS in the library reference (type "info libc alpha int86" from the DOS prompt), and you will probably need to AND the values int86 returns with 0xffff, to mask off the high 16 bits.