comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: creating a 16 bit value from 2 8 bit values in Ada
Date: Fri, 02 Aug 2002 02:07:24 GMT
Date: 2002-08-02T02:07:24+00:00	[thread overview]
Message-ID: <3D49E975.F87A668@san.rr.com> (raw)
In-Reply-To: a5ae824.0208011740.7f2df9dc@posting.google.com

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;
?

-- 
Darren New 
San Diego, CA, USA (PST). Cryptokeys on demand.
** http://home.san.rr.com/dnew/DNResume.html **
** http://images.fbrtech.com/dnew/ **

Things to be thankful for, #37:
   No sausage was served at the Last Supper.



  reply	other threads:[~2002-08-02  2:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-02  1:40 creating a 16 bit value from 2 8 bit values in Ada Mark
2002-08-02  2:07 ` Darren New [this message]
2002-08-02  8:36   ` John McCabe
2002-08-02 18:21 ` Stephen Leake
2002-08-03 14:37   ` Robert Dewar
2002-08-03  0:52 ` Kevin Krieser
2002-08-03  1:59 ` SteveD
2002-08-03  2:02 ` creating a 16 bit value from 2 8 bit values in Ada (again) SteveD
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox