From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aac6281ad4fb7480,start X-Google-Attributes: gid103376,public From: "Simon, Jb" Subject: Bit Manipulations Date: 1999/12/20 Message-ID: #1/1 X-Deja-AN: 563103271 Content-Transfer-Encoding: 7BIT To: "'comp.lang.ada@ada.eu.org'" Content-return: allowed Content-Type: text/plain X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 945718914 9722 137.194.161.2 (20 Dec 1999 19:41:54 GMT) Organization: ENST, France X-BeenThere: comp.lang.ada@ada.eu.org Mime-Version: 1.0 Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Date: 20 Dec 1999 19:41:54 GMT Newsgroups: comp.lang.ada Date: 1999-12-20T19:41:54+00:00 List-Id: 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 ----------------------------------------------------------------------------