writing data to floppy

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.
Post Reply
mztan

writing data to floppy

Post by mztan »

How can that be done? I need to use software interrupts right? I've been reading a lot about file system design and whatnot, but I can't figure out how to actually write data onto a floppy or a hard drive. Does someone have a simple C function for read and write?

Thanks
AR

Re:writing data to floppy

Post by AR »

If you're in 16bit realmode then you can use the BIOS Interrupts:
http://www.ctyme.com/intr/rb-0607.htm - read
http://www.ctyme.com/intr/rb-0608.htm - write

If you're in protected mode then you will have to program the floppy disk controller directly.
http://www.nondot.org/sabre/os/files/Disk/FLOPPY.TXT
mztan

Re:writing data to floppy

Post by mztan »

oh dear god... are there any code bits i can snag from someone?
ASHLEY4

Re:writing data to floppy

Post by ASHLEY4 »

In this post, under ASHLEY4.
http://www.mega-tokyo.com/forum/index.p ... eadid=7200
you will find a C floppy driver for read/write floppy.

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post Reply