Guys I´m trying to create a atapi driver for my cdrom, but now is a question.
How can I now where do I boot from.
example: did I came from floppy disk 0? floppy disk 1? ide master, slave channel ?
how can I do that ?
/
A Question
-
- Member
- Posts: 255
- Joined: Tue Jun 15, 2010 9:27 am
- Location: Flyover State, United States
- Contact:
Re: A Question
It is passed in dl in the bootloader (I think). Other than that, you can get it from the BIOS data area, by calling the BIOS directly, or through the information passed by a multiboot-compliant bootloader if you're using that.
Re: A Question
Please use appropriate title so that replies are attracted. And of course, please do make best efforts to use proper grammar.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Re: A Question
I´m so sorry for that.
- 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: A Question
Apologies alone do not fix the problem...digo_rp wrote:I´m so sorry for that.