comp.lang.ada
 help / color / mirror / Atom feed
* Bit Manipulations
@ 1999-12-20  0:00 Simon, Jb
  1999-12-21  0:00 ` Ted Dennison
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Simon, Jb @ 1999-12-20  0:00 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'


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
----------------------------------------------------------------------------








^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <B9063F55105FD21189FE0000F8103B5B0216503E@emss35m04.owg.fs.lmco .com>]

end of thread, other threads:[~1999-12-21  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-20  0:00 Bit Manipulations Simon, Jb
1999-12-21  0:00 ` Ted Dennison
1999-12-21  0:00 ` Mats Weber
1999-12-21  0:00 ` tmoran
1999-12-21  0:00   ` Matthew Heaney
1999-12-21  0:00 ` Robert I. Eachus
     [not found] <B9063F55105FD21189FE0000F8103B5B0216503E@emss35m04.owg.fs.lmco .com>
1999-12-21  0:00 ` Matthew Heaney

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