Science Fair Projects Ideas - Sinclair BASIC

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Sinclair BASIC

Sinclair BASIC (taking its name from innovator Sir Clive Sinclair) is a dialect of the BASIC programming language used in the home computers from Sinclair Research and Timex Sinclair. Sinclair BASIC was made by Nine Tiles Networks Ltd.

Originally developed in 1979 to fit in the 4 KB ROM of the ZX80, it was initially an incomplete implementation of the 1978 ANSI minimal BASIC standard and evolved through the 8K ROM ZX81 and Timex Sinclair 1000 (TS1000) to be an almost complete version in the 16K ROM ZX Spectrum.

Contents

Original Sinclair BASIC

Reserved words

On the Spectrum there are 86 reserved words in Sinclair BASIC, denoting commands, statements, combined commands/statements, functions, and other keywords :

ABS, ACS, AND1, ASN, AT, ATN, ATTR, BEEP, BIN, BORDER, BRIGHT, CAT2, CHR$3, CIRCLE, CLEAR, CLOSE#2, CLS, CODE3, CONTINUE, COPY, COS, DATA, DEF FN, DIM, DRAW, ERASE2, EXP, FLASH, FN, FOR, FORMAT2, GO SUB, GO TO, IF4, IN, INK, INKEY$3, INPUT, INT, INVERSE, LEN, LET5, LINE, LIST, LLIST, LN, LOAD, LPRINT, MERGE, MOVE2, NEW, NEXT, NOT1, OPEN#2, OR1, OUT, OVER, PAPER, PAUSE, PEEK, PI, PLOT, POINT, POKE, PRINT, RANDOMIZE, READ, REM, RESTORE, RETURN, RND, RUN, SAVE, SCREEN$3, SGN, SIN, SQR, STEP, STR$3, TAB, TAN, THEN 4, TO, USR, VAL3, VAL$3, VERIFY

Statements/commands found exclusively on the ZX81, TS1000 and TS1500 are:

FAST, SCROLL, SLOW, UNPLOT, GOSUB/GOTO (vs the Spectrum's GO SUB/GO TO)

The 128K models introduced two commands:

PLAY, SPECTRUM

Timex BASIC, used on the Spectrum-compatibles TS2048 and TS2068, has the following six keywords on top of the ordinary Sinclair BASIC ones:

DELETE, FREE, ON ERR, RESET, SOUND, STICK

Notes

  1. AND, NOT, and OR are logical operators.
  2. CAT, CLOSE#, ERASE, FORMAT, MOVE, and OPEN# are Microdrive-related file system commands/statements.
  3. String variables must only be one alphabetical character.
    Thus, «LET A=5», «LET Apples=5», and «LET A$="Hello"» are all good, while «LET APPLES$="Fruit"» is not.
  4. There is no ELSE operator in the IF - THEN (- ELSE) chain.
    Thus, instead of
       10 IF V=5 THEN GO TO 50 ELSE GO TO 100
    it is
       10 IF V=5 THEN GOTO 50
       20 GO TO 100
  5. LET is compulsory (i.e., «LET A=1» but never «A=1»).

Sinclair Extended BASIC

This extended version of Sinclair BASIC was used on the Amstrad-developed/manufactured Spectrum +2 and +3 machines.


References

External links

Last updated: 08-03-2005 17:00:14
03-10-2013 05:06:04
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice