EasyManua.ls Logo

Radio Shack TRS-80 PC-3 User Manual

Radio Shack TRS-80 PC-3
289 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 #70 background imageLoading...
Page #70 background image
Now RUN
the
modified
program.
The
GOTO
statement
causes
the
program
to
loop (keep repeating
the
same
operation).
Since
you
put
no
limit
on
the
loop it will
keep going forever (an
"infinite"
loop).
To
stop
this program
hit
the
BREAK (
~
) key.
When
you
have
stopped
a
program
using
the
~
key,
you
can
restart
it using
the
CONT
command.
CONT
stands
for CONTinue.
With
the
CONT
command,
the
program will
restart
on
the
line which was being
executed
when
the
~
key was pressed.
Example 4 - More Complex Programming
The following program
computes
N Factorial (N!). The program begins with 1 and
computes
N!
up
to
the
limit which
you
enter.
Enter
th
is
program.
100
F = 1: WAIT
128
110
INPUT
"LIMIT?
";
L
120
FOR N = 1 TO L
130
F = F *N
140
PRINT
N, F
150
NEXT
N
160
END
Several new
features
are
contained
in
this program.
The
WAIT verb
in
line
100
controls
the
length
of
time
that
displays are held
before
the
program
continues.
The
numbers
and
their
factorials are displayed as
they
are
computed.
The
time
they
appear
on
the
display
is
set
by
the
WAIT
statement
to
approximately
2 seconds, instead
of
waiting for
you
to
press
(ENTER)
.
Also on line
100,
notice
that
there
are
two
statements
on
the
same line
separated
by a
colon
(
:).
You
may
put
as
many
statements
as
you
wish
on
one
line, separating each by a
colon,
up
to
the
80-character
maximum
including
(ENTER)
. Multiple
statement
69

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Radio Shack TRS-80 PC-3 and is the answer not in the manual?

Radio Shack TRS-80 PC-3 Specifications

General IconGeneral
TypeProgrammable Calculator
ModelTRS-80 PC-3
CategoryCalculator
RAM1.9 KB
Display24-character LCD
Power Source2x CR2032 batteries

Summary

Limited Warranty

Radio Shack Limited Warranties

Details warranty period, conditions, and remedies for equipment defects.

Limitation of Liability

Outlines restrictions on Radio Shack's liability for damages.

Service Policy

Chapter 2: Introduction to the PC-3

Reset and Battery Management

Procedures for resetting the PC-3 and replacing batteries.

Chapter 3: Using the PC-3 as a Calculator

Simple Calculations

Performing basic arithmetic and understanding input/output.

Handling Errors

Addressing error messages and their solutions.

Chapter 4: Concepts and Terms of BASIC

Variables and Expressions

Understanding constants, variables, and their usage.

Chapter 5: Programming the PC-3

BASIC Statements and Commands

Introduction to BASIC syntax, verbs, and commands.

Chapter 7: Using the PC-3 Printer/Cassette Interface

Cassette Recorder Operations

Saving and loading programs and data on tape.

Chapter 8: BASIC Reference

Commands Reference

Instructions for controlling the computer's environment.

Verbs Reference

Action words used within BASIC programs.

Functions Reference

Mathematical and string manipulation operations.

Chapter 10: Troubleshooting

Machine Operation Issues

Solutions for common problems with device functionality.

BASIC Debugging Tips

Strategies for finding and correcting program errors.

Appendix A: Error Messages

Appendix F: Specifications

Related product manuals