comp.lang.ada
 help / color / mirror / Atom feed
From: "Simon, Jb" <jb.simon@lmco.com>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: Bit Manipulations
Date: 1999/12/20
Date: 1999-12-20T19:41:54+00:00	[thread overview]
Message-ID: <B9063F55105FD21189FE0000F8103B5B0216503E@emss35m04.owg.fs.lmco.com> (raw)


Howdie,

I recently was put onto a project which is written in Ada83. As it has been
some time since I last used Ada, I can't remember how to do basic Bit
Maipulations
(and can't find it in the books I have).

For instance, I get a byte from a hardware port and want to mast off the 
parity bit ( 16#07F#). 

I want to do...

char_data := char_data AND 16#07F#

how do I do it ?

Thanks,
Joe

----------------------------------------------------------------------------
He who dies with the most toys, still dies
----------------------------------------------------------------------------
Although the moon is smaller than the earth, it is further away.
----------------------------------------------------------------------------
Joseph B. Simon, WB2JQT
Lockheed Martin Federal Systems, Owego, New York
607-751-3296
----------------------------------------------------------------------------








             reply	other threads:[~1999-12-20  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-20  0:00 Simon, Jb [this message]
1999-12-21  0:00 ` Bit Manipulations Robert I. Eachus
1999-12-21  0:00 ` tmoran
1999-12-21  0:00   ` Matthew Heaney
1999-12-21  0:00 ` Ted Dennison
1999-12-21  0:00 ` Mats Weber
     [not found] <B9063F55105FD21189FE0000F8103B5B0216503E@emss35m04.owg.fs.lmco .com>
1999-12-21  0:00 ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox