Subject: | |
From: | |
Reply To: | |
Date: | Wed, 8 May 1996 09:51:23 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Bruce wrote:
>Mark Landin writes:
>> We are trying to convert some data from a VAX system to use
>>on our 3000's. We have received a DAT tape with ASCII data
>>and are using FCOPY to read it. It reads fine, and all
>>character data is cool. However, integer data and
>> double integer data come across as garbage! ...
>> Anyone have any clues?
>The VAX byte order for integers is backwards: on two-byte integers, the
>high-order 8 bits are in the rightmost byte, and on four-byte integers, the
>four bytes are completely reversed (I think... there's one machine that
>stores 4-byte integers as B1-B0-B3-B2 (where normal order is 3-2-1-0), but I
>don't think it's the VAX.)
You're right, Bruce, the bytes are completely reversed. I once wrote a
routine to translate this nonsense to something useful (on a field by field
basis).
-Bob
[log in to unmask]
|
|
|