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 #335 background imageLoading...
Page #335 background image
Chapter
10
I
BASIC
Keywords
USR
Function
USR[
nu
m
ber] (argument)
Calls a user’s assembly-language subroutine identified with
number
and passes
argument
to
that subroutine.
The
number
you specify must be the same
as
the corresponding
DEF
USR
statement
for
that routine. If you omit
number,
BASIC
assumes zero.
USR
lets you call
as
many as
10
assembly-language subroutines
and then continue execution
of
your BASIC program.
Before you can execute
a
USR
function call, you must define the
subroutine’s address in a DEF SEG and DEF
USR
statement.
The DEF SEG defines the address
of
the segment containing the
subroutine. The DEF
USR
statement defines the subroutine
being called and its offset from the beginning
of
the segment set
by DEF SEG. See DEF SEG, DEF
USR,
and the section “Inter-
facing With Assembly-Language Subroutines” in Chapter
11.
333

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