delorie.com/archives/browse.cgi | search |
Date: | Sat, 4 Mar 2000 07:34:08 +0500 (MVT) |
From: | Prashant TR <prashant_tr AT yahoo DOT com> |
X-Sender: | prashant_tr AT midpec DOT com |
To: | Peter Stewart <peters AT goldenriver DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: bit masking |
In-Reply-To: | <89od42$bvp$1@supernews.com> |
Message-ID: | <Pine.LNX.4.10.10003040731200.1184-100000@midpec.com> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | dj-admin AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, 4 Mar 2000, Peter Stewart wrote: > int err; > . > . > . > > > data=_bios_serialcom(_COM_RECEIVE,0,0); /*read from com1*/ > > if(err=(data&0x1300)) > { > switch(err) > { > case 0x0100: /* bit 9 */ break; > case 0x0200: /* bit 10 */ break; > case 0x0300: /* bit 11 */ break; > case 0x1000: /* bit 15 */ break; > default: /* eek some other top bit */ break; > } > } > else > { > /* data OK */ > } What exactly do you want?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |