From: "SteveD" <nospam_steved94@attbi.com>
Subject: Re: creating a 16 bit value from 2 8 bit values in Ada
Date: Sat, 03 Aug 2002 01:59:15 GMT
Date: 2002-08-03T01:59:15+00:00 [thread overview]
Message-ID: <SNG29.230706$Wt3.200171@rwcrnsc53> (raw)
In-Reply-To: a5ae824.0208011740.7f2df9dc@posting.google.com
"Mark" <ma740988@pegasus.cc.ucf.edu> 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.
next prev parent reply other threads:[~2002-08-03 1:59 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
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 [this message]
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