[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Direct access to disk drive in DOS 3.3?



Hi there,
What's the easiest way in a machine language program to access the 5.25 disk
drive directly E.G. not via RWTS?  I have one application in mind already.
I'd like to be able to make a copy of a copy protected disk.  Yes, I know
that programs E.G. copy II Plus do this, but I happen to know where the
protection is stored.  It's stored in track 2, sector 15 of the disk, in
such a form as to produce an I/O error under Dos.  The strange thing is that
the program works just fine on the emulator I use.  I guess the protected
sector is read correctly by ADT but you can't just copy that to another disk
using RWTS as it would no longer produce an error.  So what would be the
easiest way to write a program, either in machine language or in Basic using
a machine language call, to read in that sector and write that same sector,
complete with errors, to the same sector on another disk?