Category:Sinclair ZX81 BASIC: Difference between revisions

Content added Content deleted
(Created page with "{{stub}}{{language|Sinclair ZX81 BASIC}}")
 
No edit summary
Line 1: Line 1:
{{stub}}{{language|Sinclair ZX81 BASIC}}
{{stub}}{{language|Sinclair ZX81 BASIC}}
{{implementation|BASIC}}




Sinclair ZX81 BASIC is the dialect of BASIC resident in ROM on the ZX81 home computer (1981) and compatibles (Timex Sinclair 1000, Lambda 8300, and many others). It was developed by John Grant and Steve Vickers. Today, ZX81 emulators exist for a wide range of platforms and operating systems.

ZX81 BASIC is almost a subset of [[ZX Spectrum Basic]], but not quite: the exponentiation operator is spelled <code>**</code> rather than <code>↑</code> (mapped to ASCII <code>^</code>), the unconditional jump and subroutine call keywords are spelled <code>GOTO</code> and <code>GOSUB</code> rather than <code>GO TO</code> and <code>GO SUB</code>, etc. Note also that the ZX81 uses an idiosyncratic (non-ASCII) character set, so that the <code>CODE</code> and <code>CHR$</code> functions do not return the same values as they would on the Spectrum. Floating point operations, some string handling, and low-resolution graphics are supported; colour, sound, user-defined functions, the <code>READ</code>, <code>DATA</code>, and <code>RESTORE</code> keywords, and assorted other features are not.