[Coco] Copying over an IO ERROR

Bill cwgordon at carolina.rr.com
Tue Feb 3 18:13:42 EST 2015


By modifying this code a little, can it be made to write directly to a .dsk mounted on DriveWire?

Sure would make it easier. I've got a large number of Rainbow on Tape and Rainbow on Disk that are damaged, and I'd love just to be able to write them directly to a .dsk image.

Thanks

-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Allen Huffman
Sent: Tuesday, February 03, 2015 5:15 PM
To: CoCoList for Color Computer Enthusiasts
Subject: Re: [Coco] Copying over an IO ERROR

> On Feb 3, 2015, at 3:32 PM, Bill <cwgordon at carolina.rr.com> wrote:
> 
> Now, how do I know if this is an error in READING the source, or an error in WRITING to the destination?

Ah. Two ways:

1. There is a variable that shows the line that had the error, and you could "just know" what the line number is.

But better:

2. Expanded to work like this:

XX ON ERR GOTO YYY
XX DSKI$ ....
XX ON ERR GOTO ZZZ
XX DSKO$ ...

END
YYY PRINT "ERROR READING" ...
YYY GOTO ...
ZZZ PRINT "ERROR WRITING" ...
ZZZ GOTO ...


-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list