Page 1 of 1
writing data to floppy
Posted: Mon Jan 17, 2005 7:13 pm
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
Re:writing data to floppy
Posted: Mon Jan 17, 2005 8:53 pm
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
Re:writing data to floppy
Posted: Mon Jan 17, 2005 9:44 pm
by mztan
oh dear god... are there any code bits i can snag from someone?
Re:writing data to floppy
Posted: Mon Jan 17, 2005 9:45 pm
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.