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 #123 background imageLoading...
Page #123 background image
Chapter
1
I
System Calls
DupZ
Force a Duplicate
of
a File Handle
Function Call
46H
Takes a file handle that is already open and returns a new han-
dle that refers to the same file at the same position.
If
there al-
ready
is
a file open on the handle specified in
CX,
it
is
closed
first.
Entry Conditions:
AH
=
46H
BX
=
existing file handle
CX
=
new
file handle
Exit Conditions:
Carry set:
AX
=
error
code
Carry not set:
No
error.
Error
Returns:
AX
=
6
Invalid handle. The handle passed in BX
is
not currently
open.
Too many open files. There were no free handles available in
the current process
or
the internal system tables were full.
AX
=
4
Example:
Dup2
equ
46H
mov
bx,
handle
mov
cx,
newhandle
mov
ah,
Dupe
int
21
H
121

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