29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
From nntp.teleport.com!newsfeed.direct.ca!hunter.premier.net!news.mathworks.com!newsfeed.internetmci.com!vixen.cso.uiuc.edu!prairienet.org!dkrull Sun Aug 11 14:38:51 1996
|
|
Path: nntp.teleport.com!newsfeed.direct.ca!hunter.premier.net!news.mathworks.com!newsfeed.internetmci.com!vixen.cso.uiuc.edu!prairienet.org!dkrull
|
|
From: dkrull@prairienet.org (Don Krull)
|
|
Newsgroups: comp.lang.asm.x86
|
|
Subject: Re: DOS Sector => Physical Sector
|
|
Date: 5 Aug 1996 11:41:54 GMT
|
|
Organization: University of Illinois at Urbana
|
|
Lines: 14
|
|
Message-ID: <4u4mm2$2kn@vixen.cso.uiuc.edu>
|
|
References: <4tiluk$d8c@josie.abo.fi>
|
|
Reply-To: dkrull@prairienet.org (Don Krull)
|
|
NNTP-Posting-Host: firefly.prairienet.org
|
|
|
|
|
|
In a previous article, bhallstr@abo.fi asks:
|
|
|
|
> Does anyone have a formula for converting DOS Sectors to
|
|
> Physical Sectors (Head, Cylinder, Sector) such as used in
|
|
> INT 13h?
|
|
|
|
DOS_sector_num = BIOS_sector_num - 1 + Head_num*Sectors_per_track
|
|
+ Track_num*Sectors_per_track*Total_heads
|
|
|
|
BIOS_sector_num = 1 + (DOS_sector_num MOD Sectors_per_track)
|
|
|
|
Don
|
|
--
|
|
|