DOS API: Difference between revisions

Content deleted Content added
Electron9 (talk | contribs)
Common DOS services: trim ; present since 2.0
Electron9 (talk | contribs)
Line 42:
| DOS 2+<br />Create or truncate file
| CX=file attributes ; {{nowrap|DS:DX->[[C string|ASCIZ]] filename}}
| [[Carry flag|CF]]=1 on error ; AX=error code ; {{nowrap|AX=&#61;[[File descriptor|file handle]]}} <ref name="ctyme2778">{{cite web|title=Int 21/AH=3Ch, Creat|url=http://www.ctyme.com/intr/rb-2778.htm}} 090911 ctyme.com</ref>
|-
| AH = 3D
| DOS 2+<br />Open existing file
| AL=access and sharing modes ; DS:DX->ASCIZ filename ; {{nowrap|CL=&#61;attribute mask}}
| CF=1 on error ; AX=error code ; AX=file handle <ref name="ctyme2779">{{cite web|title=Int 21/AH=3Dh, Open|url=http://www.ctyme.com/intr/rb-2779.htm}} 090911 ctyme.com</ref>
|-