[Coco] [Color Computer] Creating a DSK file on a real coco..

Bob Devries bdevries at gil.com.au
Fri Dec 23 05:56:28 EST 2005

Here's a modified version to read the disk in RAW mode, and write a .dsk 

PROCEDURE dskcreat
DIM inpath,outpath:BYTE
DIM block(256):BYTE
DIM vfile:STRING[30]
DIM drive:STRING[30]
INPUT "emulator file:",vfile
INPUT "disk to read from (must have format /DX@):",drive
OPEN #outpath,vfile:WRITE
OPEN #inpath,drive:READ
WHILE NOT(EOF(#inpath)) DO
GET #inpath,block
PUT #outpath,block
CLOSE #inpath,#outpath

Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

More information about the Coco mailing list