Date: Mon, 19 Oct 1998 11:35:59 +0300 (EDT) From: Toni Rasanen X-Sender: torasane AT paju DOT oulu DOT fi To: djgpp AT delorie DOT com Subject: Re: mouse mickeys wont go negative In-Reply-To: <362838f6.33923440@news.feist.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Reply-To: djgpp AT delorie DOT com On Sat, 17 Oct 1998, Diabelek wrote: > i'm using a the int 33 func Bh to read the mouse mickeys. it gets the > data just fine except when it should be negative it is a large > positive number. ie That's simply because intel's way to use negative numbers. 0xffff=-1, 0xfffe = -2 etc etc... Place them in a signed short -variable, and you should be able to use them in C(++) just fine. /// Toni Räsänen /// torasane AT mail DOT student DOT oulu DOT fi