[fpc-devel] Freepascal in microcontrollers
Michael Schnell
mschnell at lumino.de
Thu Feb 28 12:17:35 CET 2008
> Enable_Mode : Enable_Set; // bit 14 .. 15/leftmost bits
>
With an x86 the "leftmost bits" will be in the "rightmost" (second) of
the two bytes,
with an 68K the "leftmost bits" will be in the "leftmost" (first) of the
two bytes,
So the two can't communicate this record via files or via network.
If you want to have them understand each other, you need to define the
edianess of the record independently of that of the processor.
Enumerated types don't help here.
-Michael
More information about the fpc-devel
mailing list