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
writing data to floppy
Re:writing data to floppy
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
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
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.
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.