BIOS INT 13h with more than two HDD

Programming, for all ages and all languages.
Post Reply
tlf30
Member
Member
Posts: 35
Joined: Fri Feb 15, 2013 9:29 pm

BIOS INT 13h with more than two HDD

Post by tlf30 »

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.
Octocontrabass
Member
Member
Posts: 5513
Joined: Mon Mar 25, 2013 7:01 pm

Re: BIOS INT 13h with more than two HDD

Post by Octocontrabass »

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.
tlf30
Member
Member
Posts: 35
Joined: Fri Feb 15, 2013 9:29 pm

Re: BIOS INT 13h with more than two HDD

Post by tlf30 »

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.
Post Reply