[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .DSK file to dir structure
Dan Campbell writes ...
>
> I am looking for a utility for Windows, MSDOS, or linux that will allow
> me to convert a .DSK file (I think the disks I need to convert are
> prodos, as well) to the equivalent directory structure on the native
> filesystem. I'm trying to port a very old program, and I need a way to
> extract the source to a usable format. Any suggestions? I'm currently
> digging through the archives I can find, but I haven't come across such
> a program (extract2 by ??? comes close, but seems to lose the directory
> structure).
....
In going from DOS 3.3 or ProDOS to standard MS-DOS, losing the Apple II
directory is probably unavoidable. Putting this another way: if you want
standard MS-DOS programs running on your PC to access the files, they will do
it under MS-DOS using MS-DOS's directories.
> Also, I will probably need a utility to convert .bas programs to .txt,
> though I think I can write this myself if need be. Anyone know of a
> unix or msdos based utility that will do that?
....
It is fairly easy to convert Applesoft BASIC programs on a .dsk disk
image to Text. Running an Apple II emulator (like AppleWin) you add a line to
the program which LISTs it to a Text file. Here is an example (ref: David
Cross in the FAQs):
0 HOME:PRINT CHR$(4)"OPEN A2BAS.TXT": PRINT CHR$(4)"WRITE A2BAS.TXT":
POKE 33,33: LIST 1,: PRINT CHR$(4)"CLOSE": END
RUNning the changed program creates a file on your disk image named
"A2BAS.TXT" which is a listing of the BASIC program.
Possibly your method for moving files from disk image to MS-DOS will
also convert the Text file to PC format. (An alternative would be to use
ShrinkIt to create a .shk file of the Text. The .shk file could be moved from
the .dsk disk image to MS-DOS where Nulib could extract it and convert it to
a TEXT file named A2BAS.TXT in PC format.)
Once you have an MS-DOS Text file in PC format, it can be edited by a PC
BASIC editor as necessary for running on the PC.
Rubywand