From: ma740988@pegasus.cc.ucf.edu (Mark)
Subject: creating a 16 bit value from 2 8 bit values in Ada
Date: 1 Aug 2002 18:40:44 -0700
Date: 2002-08-02T01:40:45+00:00 [thread overview]
Message-ID: <a5ae824.0208011740.7f2df9dc@posting.google.com> (raw)
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 reply other threads:[~2002-08-02 1:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 1:40 Mark [this message]
2002-08-02 2:07 ` creating a 16 bit value from 2 8 bit values in Ada 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
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