[SOLVED] Int 13 08H return values

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.
Post Reply
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

[SOLVED] Int 13 08H return values

Post by qw »

Hi everybody,

According to Ralf Brown's Interrupt List, int 13H 08H returns the maximum cylinder number, the maximum head number and the maximum sector number. In CHS adressing, the cylinder and head are zero based and the sector is one based. This should mean that the number of cylinders is the maximum cylinder number plus one, the number of heads is the maximum head number plus one and the number of sectors equals the maximum sector number.

Could someone confirm this please?
Last edited by qw on Tue Jan 19, 2010 12:58 pm, edited 1 time in total.
User avatar
XanClic
Member
Member
Posts: 138
Joined: Wed Feb 13, 2008 9:38 am

Re: Int 13 08H return values

Post by XanClic »

I confirm that (and Wikipedia does so, too: INT 13). :wink:
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Int 13 08H return values

Post by qw »

I'd never expect to find INT 13 on Wikipedia... What's next, INT 13 in the Encyclopedia Britannica? Thanks for your reply!

Roel
Post Reply