133 lines
2.9 KiB
HTML
133 lines
2.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type"
|
|
content="text-html; charset=Windows-1252">
|
|
<title>INT 21,6C - Extended Open/Create (DOS 4.</title>
|
|
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1><a name="kap_interrupt_2790"></a>INT 21,6C - Extended
|
|
Open/Create (DOS 4.x+)</h1>
|
|
|
|
<p> AH = 6C</p>
|
|
|
|
<p> AL = 00</p>
|
|
|
|
<p> BX = open mode (see below)</p>
|
|
|
|
<p> CX = file attribute (see ~FILE ATTRIBUTES~, bits 15-8 are
|
|
zero)</p>
|
|
|
|
<p> DX = function control indicator (see below)</p>
|
|
|
|
<p> DS:SI = ASCIIZ filespec</p>
|
|
|
|
<p> returns:</p>
|
|
|
|
<p> AX = handle if CF clear</p>
|
|
|
|
<p> = error code if CF set (see ~DOS ERROR CODES~)</p>
|
|
|
|
<p> CX = 01 file opened</p>
|
|
|
|
<p> = 02 file created and opened</p>
|
|
|
|
<p> = 03 file truncated and opened (replaced)</p>
|
|
|
|
<p> CF = 0 if successful</p>
|
|
|
|
<p> = 1 if error</p>
|
|
|
|
<p> % Open Mode in BX:</p>
|
|
|
|
<p> ¦F¦E¦D¦C¦B¦A¦9¦8¦7¦6¦5¦4¦3¦2¦1¦0¦ BX (Open
|
|
Mode)</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +-------- read/write
|
|
access mode</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +-------- reserve (must
|
|
be 0)</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +------------ sharing mode</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +------------ 1 = private, 0 =
|
|
inheritable</p>
|
|
|
|
<p> ¦ ¦ ¦ +-------------------- reserved</p>
|
|
|
|
<p> ¦ ¦ +-------------------- 0 = call INT 24, 1 = ignore INT
|
|
24</p>
|
|
|
|
<p> ¦ +-------------------- 0 = normal write, 1 = flush each
|
|
write</p>
|
|
|
|
<p> +-------------------- reserved</p>
|
|
|
|
<p> % Read/Write Access bits: Sharing Mode bits:</p>
|
|
|
|
<p> % 210 654</p>
|
|
|
|
<p> 000 read access 000 compatibility mode</p>
|
|
|
|
<p> 001 write access 001 read/write access</p>
|
|
|
|
<p> 010 read/write access 010 write access denied</p>
|
|
|
|
<p> 011 read access denied</p>
|
|
|
|
<p> 100 full access</p>
|
|
|
|
<p> % Function Control Indicator in DX:</p>
|
|
|
|
<p> ¦F¦E¦D¦C¦B¦A¦9¦8¦7¦6¦5¦4¦3¦2¦1¦0¦ DX
|
|
(Function Control)</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---------- file
|
|
existence behavior</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +----------------- creation behavior</p>
|
|
|
|
<p> +-------------------------------- reserved</p>
|
|
|
|
<p> % File Existence Behavior bits:</p>
|
|
|
|
<p> % 3210</p>
|
|
|
|
<p> 0000 if file exist, generate error, take no action</p>
|
|
|
|
<p> 0001 if file exists, open file</p>
|
|
|
|
<p> 0010 if file exists, truncate and open</p>
|
|
|
|
<p> % Creation Behavior bits:</p>
|
|
|
|
<p> % 7654</p>
|
|
|
|
<p> 0000 if file does not exist, generate error, take no action</p>
|
|
|
|
<p> 0001 if file does not exist, create</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>
|