Mombu the Programming Forum

Mombu the Programming Forum > Programming > Programming languages > Endian Converter
REGISTER NOW! Mark Forums Read




Reply
 
Thread Tools Display Modes
1 21st July 14:19
Franz
programming
Mombu User
 
Join Date: Jul 2008
Location: Germany
Posts: 0
Franz is on a distinguished road
Default Endian Converter



Hello, i have a problem with endianess.
I'd like to send a message from a Intel machine to an Motorolla (little -> big endian). The receiving function on the Motorolla machine is specific. The code on the Intel side i can manipulate.
The messages have in ada the followin structure:
i.e.:
type TEST_rtype is
record
A :NATURAL_BITS_63_stype;
B :BOOLEAN;
C :NATURAL_BITS_18_stype;
D :MSB_MINUS_90_DEG_BITS_13_type;
...
end record;
for TEST_rtype use
record
A at 0 range 0 .. 62;
B at 7 range 63 .. 63;
C at 8 range 0 .. 17;
D at 9 range 3 .. 15;
...
end record;

Have someone a good idea to this problem?

Thanks.

Bye Franz
Franz is offline   Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666