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

Bob Devries bdevries at gil.com.au
Fri Dec 23 05:38:27 EST 2005


That programme could be enhanced by making use of the EOF() function to 
check for the end of file, thereby making it possible to use any size source 
disk.
--
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/

----- Original Message ----- 
From: "Willard Goosey" <goosey at virgo.sdc.org>
To: <coco at maltedmedia.com>
Sent: Friday, December 23, 2005 8:27 PM
Subject: Re: [Coco] [Color Computer] Creating a DSK file on a real coco..


>I don't know of a utility offhand... but this shouldn't be too hard to
> reverse...
>
> PROCEDURE dskwrite
> DIM inpath,outpath:BYTE
> DIM block(256):BYTE
> DIM count:INTEGER
> DIM vfile:STRING[30]
> DIM drive:STRING[30]
> INPUT "emulator file:",vfile
> INPUT "disk to write to (os-9 format ss 35 track):",drive
> OPEN #inpath,vfile:READ
> OPEN #outpath,drive:WRITE
> FOR count=1 TO 630
> GET #inpath,block
> PUT #outpath,block
> NEXT count
> CLOSE #inpath,#outpath
> END
>
>
> Note that this is set up for a single-sided 35 track disk image.  JV
> DSK files are raw sector dumps.  DMK images have more data, but the
> CoCo only needs those for a handful of games with really nasty copy
> protection...
>
> Also note I didn't write this, it was posted on the list at some
> point.  I have hacked on it some, but my versions are on a crashed
> hard drive. :-(
>
> The trick is to open the disk as /dX@ -- which signifies you want
> absolute addressing on the disk.  You have to be (supposedly anyway)
> user 0 for that to work, but who actually uses OS-9LII multiuser?
>
> Maybe we could convince the author of os9dsk (sorry I forgot your name
> again) to add a -put option?
>
> Willard
> -- 
> Willard Goosey  goosey at sdc.org
> Socorro, New Mexico, USA
> "I've never been to Contempt!  Isn't that somewhere in New Mexico?"
>   --- Yacko
>
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.4/211 - Release Date: 22/12/2005
>
> 




More information about the Coco mailing list