Programming the FDC?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Curufir

Re:Programming the FDC?

Post by Curufir »

Perica Senjak wrote: Hey,

Thanks for explaining that, but the functions you just diplayed is not what i want to do, what i want to do is get a Byte from a Certain Area of the FloppyDisk (Using NO FileSystem -- Just reading the Byte into Memory, From a Selected Location in a Sector!);

Now, i don't know how i would do this?? So... Can Somebody Please help me out.....
The minimum you can pull off a disk on any one read is 512 bytes. There is no mechanism whatsoever in the FDC to read a single byte. So in order to read a single byte you must first read the complete sector it is contained in, then move the specific byte you're interested in to its final destination.

Everything prior to the final move of the byte is completely standard to any floppy disk driver (Which everyone else treats like a block device as Pype has already mentioned).

If you have the documentation for the FDC then it already tells you which commands to use. If you don't then I suggest you look at the links section of KJ's pages which contain a nice neat FDC programming example in asm.
Post Reply