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 #29 background imageLoading...
Page #29 background image
Chapter
1
I
System Calls
Calling MS-DOS Functions
Most
of
the MS-DOS function calls require input
to
be
passed
to
them in registers. After setting the proper reg-
ister values, the function may be invoked in one
of
the
following ways:
1.
2.
3.
Place the function number in AH and execute
a
long
call
to
offset 50H in your Program Segment Prefix.
Note that programs using this method will not oper-
ate correctly on earlier versions
of
MS-DOS.
Place the function number in AH and issue Interrupt
21H. All
of
the examples in this chapter use this
method.
An additional method exists
for
programs that were
written with different calling conventions. This method
should be avoided
for
all new programs. The function
number is placed in the CL register and other regis-
ters are set according to the function specification.
Then an intrasegment call is made to location 5 in
the current code segment. That location contains a
long call to the MS-DOS function dispatcher. Register
AX
is always destroyed if this method is used; other-
wise, it is the same
as
normal function calls. Note
that this method is valid only for Function Requests
OOH through 024H.
CP/M
ā€ā€™
-Compatible Calling Sequence
A
different sequence can be used
for
programs that must
conform
to
CPiM calling conventions:
1. Move any required data into the appropriate regis-
ters (just as in the standard sequence).
2.
Move the function number into the
CL
register.
3.
Execute an intrasegment call to location 5 in the
current code segment.
This method can be used only with the functions OOH
through 24H that do not pass a parameter in AL. Regis-
ter
AX
is
always destroyed when
a
function is called in
this manner.
27

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