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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e9860765413318c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-22 08:56:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Hi byte and Lo Byte Question Date: 22 Aug 2001 10:56:17 -0500 Organization: LJK Software Message-ID: References: <9m0gn6$b6j$1@zeus.orl.lmco.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 998495368 2441 192.135.80.34 (22 Aug 2001 15:49:28 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 22 Aug 2001 15:49:28 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:12245 Date: 2001-08-22T10:56:17-05:00 List-Id: In article <9m0gn6$b6j$1@zeus.orl.lmco.com>, "mop" writes: > > 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. Check the section on "Representation clauses" in your Ada text. > 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;