[net.micro.cbm] SEQ/PGM file type translation

dave@zinfandel.UUCP (06/10/84)

#N:zinfandel:19800010:000:1039
zinfandel!dave    Jun  8 09:28:00 1984

[munch, munch]

Does anyone have access to a program that translates SEQ files to 
PGM files (and vice versa)?  I will write one if I can't get hold
of one easily.  Why do I want to do this?  I have a couple of assemblers.
One of them stores source files as type PGM, the other stores source 
files as SEQ.  It would be nice to convert all my assembler source to
run with my favorite assembler.

I don't see any major problems in doing this.  The storage format on the
diskette is essientially the same -- both types start out with the track
and sector address of the *next* track and sector in the file, followed
by 254 bytes of data.  SEQ uses $0D as record terminators, and PGM uses
three zero bytes as EOF.  The length of the file is available on the
directory track (along with the starting address).

If anybody has tried this, I would appreciate any caveats found, etc.


Dave Funk
Zehntel, Inc.
2625 Shadelands Drive
Walnut Creek, CA  92598
(415) 932-6900 x309

     ....!decvax!sytek!zehntel!dave
     ...."zehntel!dave"@BERKELEY

calway@ecsvax.UUCP (06/18/84)

There is one quickie way of mixing SEQuential and ProGraM files. If your software is expecting to get a PGM file, you
can append ,S,R to the name and retrievea SEQ file. Likewise, you can create
a SEQ file by appending ,S,W
I don't think it works in the other direction, however.

James Calloway
The News and Observer
Box 191
Raleigh, N.C.  27602
(919) 829-4570
{akgua,decvax}!mcnc!ecsvax!calway