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=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e9860765413318c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-22 08:00:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!coop.net!newsfeed1.global.lmco.com!news.orl.lmco.com!news From: "mop" Newsgroups: comp.lang.ada Subject: Hi byte and Lo Byte Question Date: Wed, 22 Aug 2001 10:48:03 -0400 Organization: Lockheed Martin -- Information Systems Center Message-ID: <9m0gn6$b6j$1@zeus.orl.lmco.com> NNTP-Posting-Host: orlsr006538.orl.lmco.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:12240 Date: 2001-08-22T10:48:03-04:00 List-Id: I need to parse data into hi byte and lo byte. Does Ada have some built in macros or .... I could use? From the looks of it no. here's the C version .... Need the Ada version as am new to Ada. lo = LOBYTE(Value); -- need Ada version for this LOBYTE macro hi = HIBYTE(Value); -- need Ada version for this HIBYTE macro WORD.Data.Word5_Data_Value_In_HB_LB_Order[0] = hi; WORD.Data.Word5_Data_Value_In_HB_LB_Order[1] = lo;