EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 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 #353 background imageLoading...
Page #353 background image
Chapter
11
TECHNICAL INFORMATION
This chapter provides various information of a technical nature.
If you are just beginning to use BASIC, you may want
to
skip
this chapter until later.
Interfacing with Assembly-Language
Subroutines
This section is for users who call subroutines written in other
languages from their BASIC programs. BASIC provides for inter-
facing with subroutines through the
USR
function and through
the CALL and the CALLS statements.
You can load your assembly language subroutine into BASIC’s
work area or into another segment of memory. We will show you
both methods.
Memory Allocation Outside BASIC’s
Work
Area
When you load BASIC, the DS (data segment) register is set to
the address of BASIC’s work area. To access an area of memory
outside this work area, execute
a
DEF SEG statement to specify
the address of the segment of memory you are accessing. If you
don’t execute
a
DEF SEG statement, your CALL, CALLS, or
USR
statements transfer control to an area within BASIC’s work
area. After returning from the subroutine, execute another DEF
SEG statement to restore the DS register to its original value.
See DEF SEG in Chapter
10
for more information.
Memory Allocation Inside BASIC’s
Work
Area
To set aside memory space for an assembly language subroutine
within BASIC’s work area, use the
IM:
switch when you load
BASIC. See Chapter
2
for a review
of
the start-up procedure.
351

Table of Contents

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