[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sciibin won't work



In article <Pine.SOL.3.91.960322132748.18685B-100000@general2.asu.edu>,
Adam Myrow  <hurry@imap2.asu.edu> wrote:
>     Hi, I am trying to use the Sciibin program on a Unix system to 
>decode BINSCII files before downloading.  I got the source code and 
>compiled it.  While it compiled without error, when I try to run it, it 
>says "crc error in header" over and over again no matter what BINSCII 
>file I give it.  I can download the BINSCII and decode it on my end just 
>fine.  However, it would be nice to decode BINSCIIS before downloading to 
>save time.
>
>     The version of Unix I am using is System V release 4.0 on a Spark 
>station running Solaris 2.4  Has anybody gotten Sciibin to work correctly 
>on such a platform?  If so, let me know either via e-mail at 
>adam.myrow@asu.edu or inn this newsgroup.
>

You've probably been hit by the byte swap problem.  In any 65xxx system, 
the data is read in with the lowest significant byte at the lowest 
address, and increasing addresses having higher significant bytes, 
sequentually.  Other systems, depending on the processor, may have 
bytes and/or words swapped from this order.  You need to verify the byte 
order in the encoded file, and make sure when transferred into memory, 
that it is the correct order to be read by your processor.
--
------------------------------------------------------------------------------
John Bowling             |Apple II GS can whip the pants off its little
johnlb@primenet.com      |brother (Mac) any time!
------------------------------------------------------------------------------