Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Dennis Payne Newsgroups: scee.yaroze.beginners Subject: Re: -***Please, Please help me. *** Date: Tue, 18 May 1999 20:03:15 -0400 Organization: Identical Software Lines: 6 Message-ID: <3741FFC3.3C84EC03@identicalsoftware.com> References: <7hp9cb$llu8@chuka.playstation.co.uk> <37429b07.1888335@news.playstation.co.uk> NNTP-Posting-Host: 207.60.36.51 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.35 i486) > > int padState(int port) { return ~(*(bb[port]+3) || * (bb[port]+2) <<8); } I think you want a bitwise OR '|' not a logical one. Dennis Payne dulsi@identicalsoftware.com