need help with HD and floopy

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
xavmoss
Posts: 14
Joined: Thu Oct 12, 2006 2:56 am

need help with HD and floopy

Post by xavmoss »

i want to write file in HD and floppy disk using asm. but I can't using interrupt because I work in protected mode. Can any one give me any sugestion. Thx
dvdr
Posts: 1
Joined: Thu Nov 16, 2006 9:42 pm

Post by dvdr »

I don't know a lot. Probably by going into vm86 mode, there you can write to your disks, or else you'll need to write your own drivers.
xavmoss
Posts: 14
Joined: Thu Oct 12, 2006 2:56 am

Post by xavmoss »

Ya, I mean I need help to write a driver or routine that allow me to write to a disk or floopy
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I suggest write your own. The documentation for these devices are readily available on the internet.
About the Floppy Drive Controller
About Harddisks, CDs and the like
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

You can use dex OS floppy driver commented to go with the intel pdf manual.
Coded in fasm.
http://www.dex4u.com/DexFloppy/FloppyDriver.zip
It will just need link into you timer and floppy irq.

For hdd see here: http://www.osdev.org/phpBB2/viewtopic.php?t=12268
But it more the fat part that you will have problems coding, not as in hard, but more as in time.
Post Reply