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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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 09:21:30 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9m0gn6$b6j$1@zeus.orl.lmco.com> Subject: Re: Hi byte and Lo Byte Question Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 22 Aug 2001 12:21:09 EDT Organization: http://www.newsranger.com Date: Wed, 22 Aug 2001 16:21:09 GMT Xref: archiver1.google.com comp.lang.ada:12250 Date: 2001-08-22T16:21:09+00:00 List-Id: In article <9m0gn6$b6j$1@zeus.orl.lmco.com>, mop says... >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. You mean attributes or subprograms of course. Ada has no macros (which I am quite happy about). >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; This doesn't tell us much. What do these macros do *exactly*? If it has something to do with byte values in multi-byte words, how does what they do differ on big-endian and little-endian machines? --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com