Page 1 of 1

x86 assembly floppy disk driver.

Posted: Sat May 04, 2019 1:37 am
by cvdcamilleri
Hi, I'm writing a kernel in x86, but am getting stuck on the floppy disk driver. How would I read/write to a floppy in pure assembly.
(No BIOS, I'm in protected mode)

Re: x86 assembly floppy disk driver.

Posted: Sat May 04, 2019 1:50 am
by alexfru
The code that used to work some 25 years ago may fail to work on modern hardware.
The BIOS may be your best choice.

Re: x86 assembly floppy disk driver.

Posted: Sat May 04, 2019 1:52 am
by cvdcamilleri
What about a hard disk driver?

Re: x86 assembly floppy disk driver.

Posted: Sat May 04, 2019 4:08 am
by iansjack
Check the wiki - there's plenty of information there.

You're making life harder for yourself by using assembler rather than a high-level language, but that's your choice.