How can I use assembly to read from a U disk?
Posted: Wed Feb 10, 2016 7:59 am
(Please do not laugh at my poor English - I am not a native English speaker, but I will try my best to avoid grammar mistakes.)
I want to make a boot loader, and my boot loader is in a U disk. After choosing "booting from USB" when starting the computer, the first sector of the U disk will be loaded in memory automatically. But the rest of the boot loader is still in the U disk, so I have to write some code so that the content in the U disk will be read into memory. I have read this page: http://wiki.osdev.org/USB. But my English is not good, so I cannot read it at all. And I think it just contains some hardware-based information, without how to read from USB by using assembly.
So, would anyone like to tell me how to use assembly to read from a U disk?
I will really appreciate it if you can give me some code.
Thank you a lot!
I want to make a boot loader, and my boot loader is in a U disk. After choosing "booting from USB" when starting the computer, the first sector of the U disk will be loaded in memory automatically. But the rest of the boot loader is still in the U disk, so I have to write some code so that the content in the U disk will be read into memory. I have read this page: http://wiki.osdev.org/USB. But my English is not good, so I cannot read it at all. And I think it just contains some hardware-based information, without how to read from USB by using assembly.
So, would anyone like to tell me how to use assembly to read from a U disk?
I will really appreciate it if you can give me some code.
Thank you a lot!