Tandy 600 Programmer's Reference Manual page 43

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

Advertisement

FUNCTION
48h
-
Allocate
Memory
Block
AX
BX
CX
DX
SP:
BP:
SI:
Dl:
IP:
FLG
CS
DS
SS
FS
XXXXXXXX
XXXXXXXX
XXXXXXXX
XXXXXXXX
Entry:
BX
-
Number
of
paragraphs requested
Exit
AX
-
Paragraphs address
of
allocated
memory
or Error
code
This
function
will
allocate
a
block
of
memory
of
the
requested
size
in
the
O/S
absolute
memory
region.
A
block
allocated
in
this
manner
is
guaranteed
not
to
move
from
the time
it
is
allocated
until
it
is
released.
If
the carry
flag
is
cleared
on
return,
AX
will
contain the
paragraph address
of
the
requested
memory
block.
If
the carry
flag
is
set,
an
error
occurred,
and
the
error
code
is
in
AX.
The
allocated
memory
block
is
reserved
for
use
by
the requestor
until
it
is
released through
function
49h, or
until
the
allocating
program
terminates.
All
memory
blocks allocated
by
a
program
are freed
when
it
terminates.
38

Advertisement

Table of Contents
loading

Table of Contents