HP3000-L Archives

May 1996, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bob Brown <[log in to unmask]>
Reply To:
Bob Brown <[log in to unmask]>
Date:
Wed, 8 May 1996 09:51:23 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
     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]

ATOM RSS1 RSS2