www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/19/04:37:56

Date: Mon, 19 Oct 1998 11:35:59 +0300 (EDT)
From: Toni Rasanen <torasane AT mail DOT student DOT oulu DOT fi>
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: <Pine.SGI.3.95.981019113402.17188A-100000@paju.oulu.fi>
MIME-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019