[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to extract file from DSK?
In article <716ba3e9.0306172306.1cfa0a07@posting.google.com>,
Jason <jake1138@yahoo.com> wrote:
> Does anyone know how I can extract a file from a DSK image? There is
> a file on a DSK image that holds AppleSoft BASIC source code that I
> would like to get in a text document on Windows. I do not have an
> Apple computer, I'm working with the AppleWin emulator. Any help is
> much appreciated. Thanks.
One way could be to use the free "fid" utility, available at my
Apple II page at
http://home.tiscali.se/pausch/apple2/dsk.html
It comes with C source, which has been successfully compiled
and run on 16-bit MS-DOS, 32-bit MS-Windows, and several flavors
of UNIX. It also comes with executables for MS-DOS and Windows
which you can run directly on these OS'es.
True, it has a quite simple and not that user friendly command-line
user interface. But it does the job for you: you can list the files
on one or several DSK images, and then extract any files of your
choice as to the host file system. While extracted, files can be
converted to ASCII (probably what you want this time), or extracted
verbatim in binary format. You can extract text, binary, Applesoft,
Integer Basic and S-C Assembler files (the last two are both file
type "I" on Apple II DOS disks; fid will figure out automatically
whether it's an Integer Basic file or an S-C Assembler file).
When converted to ASCII form, text files need little conversion of
course (basically the hi bit is stripped, and eventual gaps in the
file allocation are replaced by blocks of $00 bytes - yes, Apple DOS
allows sparse files, but in practice only text files will ever be
sparse); Basic and Assembler source files are converted to the same
format you get when you "LIST" the program in respective environment;
and binary files are converted to a format which later enables yo to,
from within the Apple II monitor, to EXEC the file to restore the
original contents and addresses of the binary file - that format is
of course also easily read by humans.
--
----------------------------------------------------------------
Paul Schlyter, Grev Turegatan 40, SE-114 38 Stockholm, SWEDEN
e-mail: pausch at stockholm dot bostream dot se
WWW: http://www.stjarnhimlen.se/
http://home.tiscali.se/pausch/