FDC Read without INT and DMA
FDC Read without INT and DMA
Is it possible to read sectors from the floppy without using interrupt and DMA? The reason I'm using is because I'm trying to add a small floppy driver to my bootloader (not bootsector) and I don't want any extra code in it.
Re:FDC Read without INT and DMA
hi,
to access the floppy drive in your bootloader you may use bios functions - with interrupt 13 afaik- well you better take a look at ralf browns interrupt list (should be linked in the faq) to be sure. This will only work in real mode, but that shouldn't be a problem as you want to use it in your boot loader.
If you meant these bios functions with your "without interrupt and dma" then you could write a fdc driver that just uses drive polling instead of interrupts and single byte transfer instead of letting the dma do it for you. (Hope I remember the spec right, but I think one could set it up for polling)
to access the floppy drive in your bootloader you may use bios functions - with interrupt 13 afaik- well you better take a look at ralf browns interrupt list (should be linked in the faq) to be sure. This will only work in real mode, but that shouldn't be a problem as you want to use it in your boot loader.
If you meant these bios functions with your "without interrupt and dma" then you could write a fdc driver that just uses drive polling instead of interrupts and single byte transfer instead of letting the dma do it for you. (Hope I remember the spec right, but I think one could set it up for polling)
Re:FDC Read without INT and DMA
Your right OZ, according to all doc i have read you can do single byte transfer using floppy, but i have try and alot of other people have tryed, but i have not heard of anyone getting it to work.OZ wrote:If you meant these bios functions with your "without interrupt and dma" then you could write a fdc driver that just uses drive polling instead of interrupts and single byte transfer instead of letting the dma do it for you. (Hope I remember the spec right, but I think one could set it up for polling)
If it a case of size then your best bet is BIOS, if you are in realmode. A simple pmode driver not using BIOS, but using DMA would be about 1k not including buffers.
This bootloader Has welL commented nasm code, if using BIOS. http://alexfru.chat.ru/epm.html#bootprog
Re:FDC Read without INT and DMA
wish to know how to access flopy without bios service int 13
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:FDC Read without INT and DMA
That's more simple; there are plenty of driver/tutorials that tell you that. We even have guidelines in the FAQasmboozer wrote: wish to know how to access flopy without bios service int 13