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 #116 background imageLoading...
Page #116 background image
Chapter
1
I
System
Calls
Move
a
File Pointer Function Call
42H
Moves the readlwrite pointer a specified number of bytes accord-
ing
to
the following methods:
0
-
The pointer is moved to the specified offset from
1
-
The pointer
is
moved
to
the current location plus
2
-
The pointer is moved
to
the end of file plus the
the beginning of the file.
the offset.
offset.
Entry Conditions:
AH
=
42H
CX:DX
=
distance to move the pointer, offset in bytes
(CX
contains the most significant part)
AL
=
method of moving
(0,
1,
or
2;
see above)
BX
=
file
handle
Exit Conditions:
Carry set:
Carry not set:
Error Returns:
AX
=
6
AX
=
error code
DX:AX
=
new
file
pointer position
Invalid handle. The handle passed in BX is not cur-
rently open.
Invalid function. The function passed in AL was not
in the range
0-2.
AX
=
1
Example:
LSeek
eq"
42H
mov
dx,offsetlow
mov
cx,offsethigh
mov
a1
,method
mQV
bx
,handle
mQv
ah,LSeek
Int
21
H
114

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