OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 1:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: BIOS INT 13h with more than two HDD
PostPosted: Sat Oct 10, 2015 11:50 am 
Offline
Member
Member

Joined: Fri Feb 15, 2013 9:29 pm
Posts: 35
Hello, I was wondering, will the BIOS ever give values other than 80h & 81h for hard drives, what will it do if you have, lets say, six hard drives?
And if it won't, then how do you use INT 13h to access other hard drives?

Thanks,
Trevor

_________________
Programming is like fishing, you must be very patient if you want to succeed.


Top
 Profile  
 
 Post subject: Re: BIOS INT 13h with more than two HDD
PostPosted: Sat Oct 10, 2015 1:23 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5103
Hard drives are numbered sequentially, starting with 0x80. If there are six hard drives and the BIOS supports accessing all of them through int 0x13, you will see 0x80 through 0x85.

Modern operating systems don't use the BIOS like this, so you may come across systems where some drives can't be accessed using int 0x13.


Top
 Profile  
 
 Post subject: Re: BIOS INT 13h with more than two HDD
PostPosted: Sat Oct 10, 2015 8:31 pm 
Offline
Member
Member

Joined: Fri Feb 15, 2013 9:29 pm
Posts: 35
OK, thank you. I am just writing a small program that looks at the different drives attached to the system during boot.

_________________
Programming is like fishing, you must be very patient if you want to succeed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group