EasyManuals Logo

Tandy 1000 Programmer's Reference Guide

Default Icon
251 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #110 background imageLoading...
Page #110 background image
Chapter
1
I
System Calls
Open
Open
a
File
Function Call
3DH
Opens
a
file. The following values are allowed for the
ac-
cess code:
0
-
The file is opened for reading.
1
-
The file is opened for writing.
2
-
The
file
is
opened for both reading and writing.
The readiwrite pointer
is
set at the
first
byte of the file
and the record size of the file
is
1
byte. The returned
file handle
must be used for subsequent
IiO
to the file.
Entry Conditions:
AH
=
3DH
DS:DX
=
pointer to
ASCIIZ
pathname
for file to open
AL
=
access
code
(0
=
read,
1
=
write,
2
=
read
and
Exit Conditions:
Carry set:
Carry not set:
Error
Returns:
AX
=
12
write)
AX
=
error
code
AX
=
file
handle
number
Invalid access. The access specified in AL was not in
the range 0-2.
File not found. The path specified was invalid or not
found.
Access denied. The user attempted to open
a
directory
or volume
ID,
or open
a
read-only file for writing.
Too many open files. There were no free handles
available in the current process
or
the internal sys-
tem tables were full.
AX
=
2
AX
=
5
AX
=
4
108

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals