Extended BASIC for the TS 1000

Author(s): Dick Wagner
Publication: ZX-Appeal
Date: July/August 1986
Pages: 9

Extended Basic will put new life into your computer, give you FAST performanc, and will provide you with some new programming tools now used on the 2068 computer. Extended Basic is a program that uses machine code stored in REM 0 and is accessed ANY time in your program with REM and then the command written out (no keywords). Thus you can mix Sinclair Basic with Entended Basic freely, use Extended Basic or Sinclair Basic alone. The interpreter is called with GOSUB 0 in the line ahead of the REM Extended Basic statement.

There are 22 new commands at your disposal, you can put multiple commands and statements in a line, you can use all 24 lines, and PRINT automatically.

Here are some of the commands that make this program so interesting–DRAW, UNDRAW, RESTORE, DATA, READ, FILL, MOVE, CIRCLE, UNCIRCLE, PAPER, UNPAPER, and SCROLL. Some of these are duplicates of 2068 commands.

So called “standard” commands such as LEFT$, MID$, and RIGHT$ are provided which is helpful for other makes of computers. DATA, READ, and RESTORE permit the use of a DATA statement and then READ it into a program. Thus you can use many 2068 programs using such data input methods.

INPUT and OUTPUT are new to you. KEY replaces INKEYS$ while IN and OUT permit access to the rear port to control peripheral equipment. KEY will return values of multiple key presses. IN and OUT works in either FAST or SLOW modes and control and get data from any I/O mapped device and maintain a continuous display.

There are 11 ERROR CODES that indicate the kind of error and where it happened. This program can be merged with any program of less than 8K length and be put into REM 0 so it works properly.

EXTENDE BASIC is available on cassette from Thomas B. Woods for U.S.$19.95 + $1.50 p&h. Send to P.O. Box 64, Jefferson, NH 03583.

The following is reprinted from The Plotter, Vol 2, # 7 & 8.