[Coco] FW: Color Computer DSKINI / RETRIEVE
Chad H
chadbh74 at hotmail.com
Sat Jan 17 11:01:10 EST 2015
Well Jeff was kind enough to respond to my side 1 issue with RETRIEVE. Unfortunatley his suggestion didn't work. I'm still trying to find out if I can 'patch' the HDBDOS DSKINI routine to check the drive number and write the appropriate head byte of 0 or 1 instead of always 0.
-----Original Message-----
From: Chad H [mailto:chadbh74 at gmail.com]
Sent: Saturday, January 17, 2015 9:59 AM
To: 'Jeff Vavasour'
Subject: RE: Color Computer DSKINI / RETRIEVE
Sorry, I tried covering the index holes and the PC wouldn’t read the floppy at all. Even the DOS "DIR" command, which usually results in some drive noise from head movement for a moment then ends in error, it remains 'silent' with no head movement and errors out with the index holes covered.
Since I'm on a HDBDOS EPROM, I've tracked down the spot in the HDBDOS assembly source where the 'head' byte is encoded in. It only seems to be referenced in the actual DISKINI routine itself. If I can somehow figure out how to compare the drive number (DCDRV ?) and if it's greater than CoCo drive # 1 then it's the other side of a disk so write a "1" instead of the usual "0" then maybe...just maybe it might work?
>From the HDBDOS assembly source in the DSKINI section (note it just clears the byte to 0 always)...
* BUILD A FORMATTED TRACK OF DATA IN RAM STARTING AT DFLBUF.
LD691 ldx >$1F
*LD691 LDX #DFLBUF START TRACK BUFFER AT DFLBUF
ldd #$204E GET SET TO WRITE 32 BYTES OF $4E
bsr LD6C2 GO WRITE GAP IV
clrb RESET SECTOR COUNTER
LD69A pshs B SAVE SECTOR COUNTER
ldu #DBUF1 POINT U TO THE TABLE OF LOGICAL SECTORS
ldb B,U * GET LOGICAL SECTOR NUMBER FROM TABLE AND
stb DSEC * SAVE IT IN THE DSKCON VARIABLE
ldu #LD6D4 POINT U TO TABLE OF SECTOR FORMATTING DATA
ldb #$03 * GET FIRST 3 DATA BLOCKS AND
bsr LD6C8 * WRITE THEM TO BUFFER
lda DCTRK = GET TRACK NUMBER AND STORE lT
sta ,X+ = IN THE RAM BUFFER
clr ,X+ CLEAR A BYTE (SIDE NUMBER) IN BUFFER
lda DSEC * GET SECTOR NUMBER AND
sta ,X+ * STORE IT IN THE BUFFER
ldb #$09 = GET THE LAST NINE DATA BLOCKS AND
bsr LD6C8 = WRITE THEM TO THE BUFFER
puls B GET SECTOR COUNTER
incb NEXT SECTOR
cmpb #SECMAX 18 SECTORS PER TRACK
blo LD69A BRANCH IF ALL SECTORS NOT DONE
ldd #$C84E WRITE 200 BYTES OF $4E AT END OF TRACK
* WRITE ACCA BYTES OF ACCB INTO BUFFER
-----Original Message-----
From: Jeff Vavasour [mailto:jeff.vavasour at shaw.ca]
Sent: Friday, January 16, 2015 11:15 PM
To: Chad H
Subject: Re: Color Computer DSKINI / RETRIEVE
Hi,
The problem is in your PC's floppy drive. It goes "blind" to data a moment after the index hole is sensed, but the CoCo does not. When the disk is formatted on the PC the track starts further away from the index hole than when it is formatted on the CoCo. The only workaround to read CoCo formatted disks on some drives on the PC is to put a sticker (such as a write protect tab) over the index hole, as it is not always needed.
- Jeff
----- Original Message -----
From: Chad H <chadbh74 at gmail.com>
To: jeff vavasour <jeff.vavasour at shaw.ca>
Sent: Wed, 14 Jan 2015 20:04:30 -0700 (MST)
Subject: Color Computer DSKINI / RETRIEVE
Hi, I've been using these tools on my floppy/CoCo 2 setup for a few years now with good results. Thank you for sharing these tools! J However, recently I've become reacquainted with a 'glitch' I've been wanting to iron out. You may or may not already be aware of the problem.
**
Floppy formatted by the CoCo will RETRIEVE side 0 OK.but not side 1.
Work around so far. DSKINI the floppy using your tool first, then it
works.
**
Since the issue only seems to effect one side of the floppy I thought I could conjur enough mental fortitude to spot some place in your assembly code for these to see why this might be happening. Unfortunately assembly was never my strong suit L
I was wondering if you might be able to give me a pointer or clue on something to try or anything you could do to help. I realize this project may be umm.retired? If that's the best way to put it? Thanks for any help you can give anyways!
More information about the Coco
mailing list