Tandy 600 Programmer's Reference Manual page 58

Bios programmers
Hide thumbs Also See for 600:
Table of Contents

Advertisement

FUNCTION
D2h
-
Return Absolute
File
Pointer
AX
BX
CX
DX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
ES
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
Entry:
AH
= D2h
(function
code)
BX =
file
handle
Exit
AX =
Absolute
file
address
status
code
DX
=
Size
of
file in
bytes
Function
D2h
is
used
to find
the absolute
memory
address
where
a
file is
stored.
The
user
specifies
the
handle
for
a previously
opened
file in
BX.
On
return
from
HH
O/S, the
carry
flag
will
be
set
if
an
error
occurred, otherwise the
memory
segment
address
of
the beginning
of
the
file
will
be contained
in
AX.
The
file
is
stored
in
contiguous,
ascending
memory
locations
beginning
at offset
within this
segment.
53

Advertisement

Table of Contents
loading

Table of Contents