112 lines
2.6 KiB
HTML
112 lines
2.6 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,5 - Format Disk Track</title>
|
|
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1><a name="kap_interrupt_0460"></a>INT 13,5 - Format Disk Track</h1>
|
|
|
|
<p> AH = 05</p>
|
|
|
|
<p> AL = interleave value (XT only)</p>
|
|
|
|
<p> CX = track/cylinder number (see below for format)</p>
|
|
|
|
<p> DH = head number (0-15 dec.)</p>
|
|
|
|
<p> DL = drive number (0=A:, 1=2nd floppy, 80h=drive 0, 81h=drive
|
|
1)</p>
|
|
|
|
<p> ES:BX = pointer to block of "track address fields"
|
|
containing</p>
|
|
|
|
<p> four byte fields for each sector to be formatted of the form:</p>
|
|
|
|
<p> 1 byte track number</p>
|
|
|
|
<p> 1 byte head number Size #</p>
|
|
|
|
<p> 1 byte sector number Codes Bytes</p>
|
|
|
|
<p> 1 byte sector size code 0 128</p>
|
|
|
|
<p> 1 256</p>
|
|
|
|
<p> 2 512</p>
|
|
|
|
<p> 3 1024</p>
|
|
|
|
<p> on return:</p>
|
|
|
|
<p> AH = status (see ~INT 13,STATUS~)</p>
|
|
|
|
<p> CF = 0 if successful</p>
|
|
|
|
<p> = 1 if error</p>
|
|
|
|
<p> - BIOS disk write attempts should reset the controller on
|
|
error</p>
|
|
|
|
<p> - ~INT 13,17~ should be called to set the DASD type</p>
|
|
|
|
<p> - this function is capable of doing great damage if the
|
|
parameters</p>
|
|
|
|
<p> are incorrectly specified; only the drive number is checked</p>
|
|
|
|
<p> - initializes disk address fields and data sectors</p>
|
|
|
|
<p> - interleave is specified by ordering of track address fields</p>
|
|
|
|
<p> - after INT 13 disk format, if the disk is to be used with
|
|
DOS the</p>
|
|
|
|
<p> DOS data structure must be written</p>
|
|
|
|
<p> - only the disk number is checked for validity</p>
|
|
|
|
<p> - the parameters in CX change depending on the number of
|
|
cylinders;</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> ¦F¦E¦D¦C¦B¦A¦9¦8¦7¦6¦5-0¦ CX (cylinder value
|
|
0-1023 dec.)</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +----- unused</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +--------- high order 2 bits of
|
|
track/cylinder</p>
|
|
|
|
<p> +------------------------ low order 8 bits of track/cyl
|
|
number</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>
|