Radio Shack TRS-80 Model 100 Basic Manual page 10

Basic language lab
Hide thumbs Also See for TRS-80 Model 100:
Table of Contents

Advertisement

To access the BASIC interpreter, simply position the Cursor over the word BASIC
and press
CEmR.l.
The Display will then look like this:
TRS-8~
Model 100 Software
(cpr. 1983 Microsoft
21190 Bytes free
Ok
The number 2 11 9
QI
indicates the number of free bytes for creating any programs and
it may vary depending upon the capacity of your machine and whether any other files
have been created and saved.
The word 0
k
and the flashing cursor symbol below it, indicate that you are in the
Command Mode of BASIC and ready to begin programming.
Experiment #1 Entering a Command
A command is an instruction to the Computer ordering it to do something
immediately. In this experiment you will learn how to enter a simple command.
First you will attempt to have the Model 100 print out a name on the display. Type
the name:
JOHN SMITH
You may use any other name. Now, press
~.
As soon as you do this, the
Computer displays the message:
?8N Error
This message indicates that an error, specifically a syntax error, has been made. The
syntax error occurred because the Computer doesn't recognize John Smith as part of
its vocabulary (also known as the Instruction Set).
The correct way to instruct the Computer to print the name is to type:
PR I NT
II
JOHN 8M I TH
II
(ENTER)
Be sure to press
~
at the end of the line. The key word PRINT and the
quotation marks enclosing the name are recognized as part of the Computer's
vocabulary. This way no syntax error occurs and the name appears printed right below
the command.
4

Advertisement

Table of Contents
loading

Table of Contents