A Question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

A Question

Post by digo_rp »

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 ?












/
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: A Question

Post by Tosi »

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.
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: A Question

Post by digo_rp »

tnx Tosi,

:-D
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: A Question

Post by Chandra »

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 !
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: A Question

Post by digo_rp »

I´m so sorry for that.
User avatar
Combuster
Member
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

Post by Combuster »

digo_rp wrote:I´m so sorry for that.
Apologies alone do not fix the problem... :roll:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked