On 9/21/08 5:24 PM, "Alexis" <thrashbarg at kaput.homeunix.org> wrote:
On Sun, 21 Sep 2008 09:37:51 pm Andrew Lynch wrote:
I have a working prototype on my bench and can
read and write sectors and
format tracks.
I never worked out how to format tracks on the 8272. It's one of the things
that puts me off using them. Could you describe how it's done?
The other thing that puts me off is the data clock separator. How are you
doing this?
Look at the code for the CompuPro Disk 1 interface. I don't have to code for
my CBIOS handy but I recall that you have to establish a 6-byte command
buffer (with the right parameters), establish the interleave (if formatting
with one) and then loop through all of the tracks sequentially, sending the
format command for each track. I used a hardware interleave so that my CBIOS
didn't have to do it.
The command buffer for my CP/M system looks like this. The fields come right
from the 8272 manual.
FMTDAT .DB F_FMT ; format command
.DB 00H ;HDS,DS1,DS0
.DB NFIELD ;N (0, 1, 2, 3) 0=128-byte sectors
.DB FSC ;Sector count (26,15,8) =1ah
.DB 01BH ;SPECIAL FORMAT GPL.
.DB 0E5H ;D (FILLER BYTE)
Rich
--
Rich Cini
Collector of Classic Computers
Build Master and lead engineer, Altair32 Emulator
http://www.altair32.com
http://www.classiccmp.org/cini