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 01:34:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.nospam@nospamassen.nospamdemon.co.uk (John McCabe) Newsgroups: comp.lang.ada Subject: Re: creating a 16 bit value from 2 8 bit values in Ada Date: Fri, 02 Aug 2002 08:36:34 GMT Message-ID: <3d4a4468.2766097@news.demon.co.uk> References: <3D49E975.F87A668@san.rr.com> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1028277219 nnrp-14:1694 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:27604 Date: 2002-08-02T08:36:34+00:00 List-Id: On Fri, 02 Aug 2002 02:07:24 GMT, Darren New wrote: >Mark wrote: >> 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 > >Wouldn't it be something along the lines of > result := lo + 256 * hi; That's pretty much what I would have said!