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,2370fc34f084c855 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-02 18:59:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: "SteveD" Newsgroups: comp.lang.ada References: Subject: Re: creating a 16 bit value from 2 8 bit values in Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1028339954 12.225.227.101 (Sat, 03 Aug 2002 01:59:14 GMT) NNTP-Posting-Date: Sat, 03 Aug 2002 01:59:14 GMT Organization: AT&T Broadband Date: Sat, 03 Aug 2002 01:59:15 GMT Xref: archiver1.google.com comp.lang.ada:27634 Date: 2002-08-03T01:59:15+00:00 List-Id: "Mark" wrote in message news:a5ae824.0208011740.7f2df9dc@posting.google.com... > Could someone show me how to concatenate the Hi and Lo components? > The end result - obviously - would be a 16 bit value. I've waded > through my ada books here and keep coming up short? > > > type SOME_TYPE is > record > Lo : BYTE; > Hi : BYTE; > X : BOOLEAN; > -- more stuff > end record; > > for SOME_TYPE use > record > Lo at 0 range 0 .. 6; > Hi at 0 range 7 .. 15; > -- more stuff > end record; > > In an earlier post i made a reference to 'intrinsics' that might aid > in my objective, but that appears to be a tartan utility.