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 #125 background imageLoading...
Page #125 background image
Chapter
1
I
System
Calls
Alloc
Allocate Memory
Function Call
48H
Returns
a
pointer
to
a
free block
of
memory that has the re-
quested size in paragraphs,
Entry Conditions:
AH
=
48H
BX
=
size of
memory
to be allocated, in paragraphs
Exit Conditions:
Carry set:
BX
=
maximum
size that could be allocated, in paragraphs
(if the requested size was
not
available)
AX10
=
pointer
to
the allocated
memory
Carry not set:
Error
Returns:
AX
=
8
Not enough memory. The largest available free block
is
smaller than that requested
or
there is
no
free block.
Arena trashed. The internal consistency
of
the memory
arena has been destroyed. This is due
to
a user program
changing memory that does not belong
to
it.
AX
=
7
Example:
Alloc
equ
48H
mov
bx,
51ze
mov
ah,
Fllloc
Int
21
H
123

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