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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-01 18:40:45 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ma740988@pegasus.cc.ucf.edu (Mark) Newsgroups: comp.lang.ada Subject: creating a 16 bit value from 2 8 bit values in Ada Date: 1 Aug 2002 18:40:44 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 132.170.29.130 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1028252445 21467 127.0.0.1 (2 Aug 2002 01:40:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Aug 2002 01:40:45 GMT Xref: archiver1.google.com comp.lang.ada:27592 Date: 2002-08-02T01:40:45+00:00 List-Id: 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.