Best way to access USB Floppy
Best way to access USB Floppy
In your opinion, What is the "Best" and also "Easy" way to access USB floppies in protected mode?.
1. Drop protected mode access disks and re-enter protected mode.
2. With virtual 8086 mode.
3. Writing real USB driver.
or another way?
How your operating system access it?
1. Drop protected mode access disks and re-enter protected mode.
2. With virtual 8086 mode.
3. Writing real USB driver.
or another way?
How your operating system access it?
- Combuster
- 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:
Re: Best way to access USB Floppy
4. None of the above.
For floppies, the easiest and possibly also the best way is to just load everything from the floppy into memory before leaving the bootloader in the first place.
By the time you actually need to get to writing to a floppy, you can write a proper driver.
For floppies, the easiest and possibly also the best way is to just load everything from the floppy into memory before leaving the bootloader in the first place.
By the time you actually need to get to writing to a floppy, you can write a proper driver.
Re: Best way to access USB Floppy
TBH I think it's more effort than it is worth to support floppies in a modern operating system. I can't remember the last time I used one on a real computer; in fact none of my computers has a floppy drive. They really are yesterday's technology.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: Best way to access USB Floppy
USB floppy drives typically show up as regular Mass Storage devices. I know some of them also support LS-120/SuperDisk media as well.
If you can find them, ATAPI LS-120 drives support 1.44M floppies as well and are useful for testing your ATAPI code with something other than DVD/CDROM devices.
If you can find them, ATAPI LS-120 drives support 1.44M floppies as well and are useful for testing your ATAPI code with something other than DVD/CDROM devices.
Re: Best way to access USB Floppy
I am not talking about real floppies I'm just talking about USB flash drives emulated as floppies.
-
- Member
- Posts: 116
- Joined: Wed Oct 22, 2008 2:21 am
- Location: Roma,Italy
Re: Best way to access USB Floppy
Writing real USB driver.
Re: Best way to access USB Floppy
But it is impossible for me.djmauretto wrote:Writing real USB driver.
- Combuster
- 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:
Re: Best way to access USB Floppy
Then use something exist- oh wait, you can't because you didn't write that yourself eithermuazzam wrote:But it is impossible for me.
(But seriously, it's more often than not wrong to use the word "impossible")
Re: Best way to access USB Floppy
The pragmatic solution is to use devices that you can support.While the difficult takes time, the impossible just takes a little longer
Re: Best way to access USB Floppy
If you boot from a USB stick (BIOS booting), emulated as a floppy disk (e.g. 1.44 MB), you need to use the "INT 0x13, AH=0x02, Read Sectors" service at least once.
Re: Best way to access USB Floppy (about dex-os)
Have you ever seen dex-os? This is my favorite hobby OS. How dex-os access USB-Flash-Drives or USB floppies?
Re: Best way to access USB Floppy
Why not look at the source code and see?How dex-os access USB-Flash-Drives or USB floppies?
Re: Best way to access USB Floppy
Dex-OS code is not very readable. And also I am not good at reading code written by others.iansjack wrote: Why not look at the source code and see?
Re: Best way to access USB Floppy
Even well-written assembler code can be difficult to follow, and very few people seem to produce well-written code. This is one of the reasons that higher-level languages were developed and sensible programmers use them rather than assembler. But if you are determined that assembler is the only true path to follow then you really need to concentrate on improving your skills at reading other people's code, well or badly written. (You should also take the opportunity to study many processors, not just the x86 family.)muazzam wrote:Dex-OS code is not very readable. And also I am not good at reading code written by others.iansjack wrote: Why not look at the source code and see?
Treat this as an opportunity to develop those skills and, as a bonus, learn about programming USB devices.