90 lines
2.1 KiB
HTML
90 lines
2.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type"
|
|
content="text-html; charset=Windows-1252">
|
|
<title>INT 13,8 - Get Current Drive Parameters (XT & newer)</title>
|
|
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1><a name="kap_interrupt_0490"></a>INT 13,8 - Get Current Drive
|
|
Parameters (XT & newer)</h1>
|
|
|
|
<p> AH = 08</p>
|
|
|
|
<p> DL = drive number (0=A:, 1=2nd floppy, 80h=drive 0, 81h=drive
|
|
1)</p>
|
|
|
|
<p> on return:</p>
|
|
|
|
<p> AH = status (see ~INT 13,STATUS~)</p>
|
|
|
|
<p> BL = CMOS drive type</p>
|
|
|
|
<p> 01 - 5¼ 360K 03 - 3½ 720K</p>
|
|
|
|
<p> 02 - 5¼ 1.2Mb 04 - 3½ 1.44Mb</p>
|
|
|
|
<p> CH = cylinders (0-1023 dec. see below)</p>
|
|
|
|
<p> CL = sectors per track (see below)</p>
|
|
|
|
<p> DH = number of sides (0 based)</p>
|
|
|
|
<p> DL = number of drives attached</p>
|
|
|
|
<p> ES:DI = pointer to 11 byte ~Disk Base Table~ (DBT)</p>
|
|
|
|
<p> CF = 0 if successful</p>
|
|
|
|
<p> = 1 if error</p>
|
|
|
|
<p> % Cylinder and Sectors Per Track Format</p>
|
|
|
|
<p> ¦F¦E¦D¦C¦B¦A¦9¦8¦7¦6¦5¦4¦3¦2¦1¦0¦ CX</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +------------ sectors per track</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +------------ high order 2 bits of
|
|
cylinder count</p>
|
|
|
|
<p> +------------------------ low order 8 bits of cylinder count</p>
|
|
|
|
<p> - the track/cylinder number is a 10 bit value taken from the
|
|
2 high</p>
|
|
|
|
<p> order bits of CL and the 8 bits in CH (low order 8 bits of
|
|
track)</p>
|
|
|
|
<p> - many good programming references indicate this function is
|
|
only</p>
|
|
|
|
<p> available on the AT, PS/2 and later systems, but all hard
|
|
disk</p>
|
|
|
|
<p> systems since the XT have this function available</p>
|
|
|
|
<p> - only the disk number is checked for validity</p>
|
|
|
|
<hr>
|
|
|
|
<table border="0" width="100%" cols="3">
|
|
<tr>
|
|
<td width="33%">Zurück zum <a href="inte1at0.htm">Interrupt
|
|
Info</a>. </td>
|
|
<td align="center" width="33%"><a
|
|
href="mailto:Roger.Morgan@htl-steyr.ac.at">Roger Morgan</a>
|
|
/ 1998 </td>
|
|
<td align="right" width="33%"><font size="1">L.Änderung <!--webbot
|
|
bot="Timestamp" s-type="EDITED" s-format="%d.%m.%y"
|
|
startspan -->29.03.99<!--webbot bot="Timestamp" endspan
|
|
i-checksum="13964" --> </font></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|