EasyManuals Logo

Sinclair ZX81 User Manual

Sinclair ZX81
92 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 #20 background imageLoading...
Page #20 background image
Chapter 8 - Computer programming
And now at last you shall write a computer program. Turn the computer off & on, just to make sure that it is
clear. Now type
10
LET
BUTTER=75 (&
NEWLINE
)
& the screen will look like this:
This is different from what happened with EGGS in chapter 6; if you type
PRINT
BUTTER
you will see (from the report 2) that the variable BUTTER has not been set up. (Press
NEWLINE
again &
the screen should go back to looking like the picture.)
Because the
LET
statement had a number, 10, in front of it, the computer did not execute it straight
away, but saved it for later. 10 is its line number
, & is used to refer to it rather in the same way that names
are used to refer to variables. A set of these stored statements is called a
program
. Now type
20
PRINT
BUTTER
& the screen should look like this:
This is a listing of your program. To have the program carried out (or executed or run), type
RUN
(don't forget the
NEWLINE
)

Other manuals for Sinclair ZX81

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair ZX81 and is the answer not in the manual?

Sinclair ZX81 Specifications

General IconGeneral
ProcessorZilog Z80A
Processor Speed3.25 MHz
ROM8 KB
InputMembrane keyboard
StorageCassette tape
Power Supply9V DC
Dimensions167 mm x 40 mm x 175 mm
Release Year1981
ManufacturerSinclair Research
Weight350 g
Operating SystemSinclair BASIC
RAM1 KB
PortsTV out, expansion port
DisplayTelevision (RF modulator output)

Related product manuals