[Coco] Reading/Writing Model I/III/4 Disks on a CoCo
Gene Heskett
gheskett at wdtv.com
Thu Sep 5 15:15:13 EDT 2013
On Thursday 05 September 2013 15:13:46 Luis Antoniosi (CoCoDemus) did
opine:
> Gene I tried this:
>
> OPEN #in,"image.dsk":READ
> OPEN #out,"/D0@":WRITE
> FOR t=34 TO 0 STEP -1
> FOR s=17 TO 0 STEP -1
> SEEK #in,(t*18)*256.
> GET #in,sector
> SEEK #out,(t*18)*256.
> PUT #out,sector
> NEXT s
> NEXT t
> CLOSE #in
> CLOSE #out
>
> It gives me error when T is higher than 34!
>
Show us the output of "dmode /d0" please.
> Why does it copy backwards ? Because I want to write the LSN0 at last.
> Maybe the problem is the SEEK and not the GET/PUT. I didn't go further,
> I made an asm routine and solved my problem.
>
> On Thu, Sep 5, 2013 at 2:43 PM, Gene Heskett <gheskett at wdtv.com> wrote:
> > On Thursday 05 September 2013 14:41:47 Luis Antoniosi (CoCoDemus) did
> >
> > opine:
> > > B09 won't support double sided.
> >
> > Huh? B09 only runs on os9. And supports whatever the device
> > descriptor says.
> >
> > > Also write to LSN0 at the end. Skip the first sector from both image
> > > and floppy, write all sectors and then reopen both image and floppy
> > > and then write to LSN0.
> > >
> > > Don't use seek, just read and ignore as the seek seems to not work
> > > properly with non os-9 disks.
> > >
> > > I have made a rawcopy tool for that, is at home I can send it you.
> > > it is in asm so it supports double sided disks as well. I made a
> > > dragon32 superdos disk using it.
> > >
> > > On Thu, Sep 5, 2013 at 10:24 AM, Al Hartman
> >
> > <alhartman6 at optonline.net>wrote:
> > > > Did it work? Have you successfully written an image?
> > > >
> > > > - Al -
> > > >
> > > > -----Original Message----- From: Gene Heskett
> > > >
> > > > Sure there is, it took me about an hour to knock it out in B09.
> > > > Write LSN0, close the path, then reopen, and write the whole
> > > > thing one sector at a time. The dbl write of lsn0 is to get rid
> > > > of the disk changed error.
> > > >
> > > > --
> > > > Coco mailing list
> > > > Coco at maltedmedia.com
> > > > http://five.pairlist.net/**mailman/listinfo/coco<http://five.pairl
> > > > ist. net/mailman/listinfo/coco>
> >
> > Cheers, Gene
> > --
> >
> > "There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> >
> > -Ed Howdershelt (Author)
> > My web page: <http://gene.homelinux.net:6309/gene> should be up!
> >
> > I tried the clone syscall on me, but it didn't work.
> >
> > -- Mike Neuffer trying to fix a serious time problem
> >
> > A pen in the hand of this president is far more
> > dangerous than 200 million guns in the hands of
> >
> > law-abiding citizens.
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > http://five.pairlist.net/mailman/listinfo/coco
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://gene.homelinux.net:6309/gene> should be up!
"Once they go up, who cares where they come down? That's not my
department."
-- Werner von Braun
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
More information about the Coco
mailing list