Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Sinclair BASIC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Official versions== ===4K BASIC=== ''4K BASIC'' for ZX80<ref>{{Cite web|url=https://www.petervis.com/Sinclair/Sinclair_ZX80_Manual/4k-basic.html|title = Sinclair ZX80 User Manual 4K Basic for ZX80}}</ref> (so named for residing in 4 [[kibibyte|KiB]] [[read-only memory]] (ROM)), was developed by John Grant of Nine Tiles for the ZX80. It has integer-only arithmetic. * System Commands: <code>NEW</code> <code>RUN</code> <code>LIST</code> <code>LOAD</code> <code>SAVE</code> * Control Statements: <code>GOTO</code> <code>IF</code> <code>THEN</code> <code>GOSUB</code> <code>STOP</code> <code>RETURN</code> <code>FOR</code> <code>TO</code> <code>NEXT</code> <code>CONTINUE</code> * Input/Output Statements: <code>PRINT</code> <code>INPUT</code> * Assignment Statement: <code>LET</code> * Other Statements: <code>CLEAR</code> <code>CLS</code> <code>DIM</code> <code>REM</code> <code>RANDOMIZE</code> <code>POKE</code> * Functions: <code>ABS</code> <code>CHR$</code> <code>CODE</code><code>PEEK</code> <code>RND</code> <code>STR$</code> <code>TL$</code> <code>USR</code> ===8K BASIC=== ''8K BASIC'' is the ZX81 BASIC (also available as an upgrade for the ZX80<ref name="8Kupgrade" />), updated with floating-point arithmetic by [[Steve Vickers (computer scientist)|Steve Vickers]], so named for residing in 8 KiB ROM. * Statements: <code>PRINT</code> <code>RAND</code> <code>LET</code> <code>CLEAR</code> <code>RUN</code> <code>LIST</code> <code>GOTO</code> <code>CONT</code> <code>INPUT</code> <code>NEW</code> <code>REM</code> <code>PRINT</code> <code>STOP</code> <code>BREAK</code> <code>IF</code> <code>STOP</code> <code>FOR</code> <code>NEXT</code> <code>TO</code> <code>STEP</code> <code>SLOW</code> <code>FAST</code> <code>GOSUB</code> <code>RETURN</code> <code>SAVE</code> <code>LOAD</code> <code>CLS</code> <code>SCROLL</code> <code>PLOT</code> <code>UNPLOT</code> <code>PAUSE</code> <code>LPRINT</code> <code>LLIST</code> <code>COPY</code> <code>DIM</code> <code>POKE</code> <code>NEW</code> * Functions: <code>ABS</code> <code>SGN</code> <code>SIN</code> <code>COS</code> <code>TAN</code> <code>ASN</code> <code>ACS</code> <code>ATN</code> <code>LN</code> <code>EXP</code> <code>SQR</code> <code>INT</code> <code>PI</code> <code>RND</code> <code>FUNCTION</code> <code>LEN</code> <code>VALSTR$</code> <code>NOT</code> <code>CODE</code> <code>CHR$</code> <code>INKEY$</code> <code>AT</code> <code>TAB</code> <code>INKEY$</code> <code>PEEK</code> <code>USR</code> ===48 BASIC=== ''48 BASIC'' is the BASIC for the original 16/48 KB [[random-access memory|RAM]] ZX Spectrum (and clones), with colour and more peripherals added by Steve Vickers and John Grant. It resides in 16 KB ROM and began to be called 48 BASIC with the introduction of the ZX Spectrum 128 at which time the 16 KB Spectrum was no longer sold and most existing ones in use had been upgraded to 48 KB.<ref name="worldofspectrum.org">{{Cite web|url=https://worldofspectrum.org/ZXSpectrum128+3Manual/chapter7.html|title=World of Spectrum - Documentation - ZX Spectrum +3 - Chapter 7|website=worldofspectrum.org}}</ref> ===128 BASIC=== ''128 BASIC'' is the BASIC for the ZX Spectrum 128.<ref name=":0">{{Cite web|url=https://worldofspectrum.org/ZXSpectrum128Manual/sp128p06.html|title=World of Spectrum - Documentation - ZX Spectrum 128 Manual Page 6|website=worldofspectrum.org}}</ref> It offers extra commands and uses letter-by-letter input. * New commands: <code>LOAD !</code> <code>SAVE !</code> <code>MERGE !</code> <code>ERASE !</code> <code>PLAY</code> <code>SPECTRUM</code> ===+3 BASIC=== ''+3 BASIC'' is the BASIC with disk support for the ZX Spectrum +3 and +2A.<ref name="worldofspectrum.org" /> * New commands: <code>FORMAT</code> <code>COPY</code> ===T/S 2000 BASIC=== ''T/S 2000 BASIC'' is used on the Spectrum-compatible [[Timex Sinclair 2068]] (T/S 2068) and adds the following six new keywords: * <code>DELETE</code> deletes BASIC program line ranges.<!-- {{keypress|CAPS SHIFT|0}} with the <code>K</code> cursor produces the command <code>DELETE</code>.--> * <code>FREE</code> is a function that gives the amount of free RAM. <code>PRINT FREE</code> will show how much RAM is free. * <code>ON ERR</code> is an error-handling function mostly used as <code>ON ERR GO TO</code> or <code>ON ERR CONT</code>. * <code>RESET</code> can be used to reset the behaviour of <code>ON ERR</code>. It was also intended to reset peripherals. * <code>SOUND</code> controls the [[General Instrument AY-3-8910|AY-3-8192]] [[sound chip]]. * <code>STICK</code> is a function that gives the position of the internal joystick (Timex Sinclair 2090). ===BASIC64=== ''BASIC64'' by [[Timex of Portugal]], is a [[software extension]]<ref>{{Cite web|url=http://timex.comboios.info/tmxtechb64-2048.html|title=Timex tech info β Basic 64 for TC2048|website=timex.comboios.info}}</ref> to allow better Basic programming with the 512Γ192 and dual display areas graphic modes available only on [[Timex Sinclair]] computers. This extension adds commands and does a complete memory remap to avoid the system overwriting the extended screen memory area. Two versions exist due to different memory maps β a version for [[TC 2048]] and a version for T/S 2068 and [[TC 2068]]. * <code>PRINT #</code> prints to a specific output channel. * <code>LIST #</code> lists the program to a specific output channel. * <code>CLS*</code> clears both display areas. * <code>INK*</code> sets ink colour for both display areas * <code>PAPER*</code> sets paper colour both display areas * <code>SCREEN$</code> selects the high / normal resolution modes. * <code>PLOT*</code> plots a pixel and updates the drawing position. * <code>LINE</code> draws a line from the previous PLOT position, supporting arc drawing * <code>CIRCLE*</code> draws a circle or oval, depending on screen mode. ===Timex Extended Basic=== ''Timex Extended Basic'' by Timex of Portugal is used on the [[Timex Computer 3256]], adding ''TEC β Timex Extended Commands'' commands supporting the AY-3-8912 sound chip, RS-232 network and the 512x192 pixel high resolution graphic mode.<ref>{{Cite web|url=https://loadzx.com/wp-content/uploads/simple-file-list/LITERATURA/JORNAIS/Microsete/Microsete-n46.pdf|title=Microsete N.ΒΊ46, Maio 1987|website=loadzx.com}}</ref><ref>{{Cite web|url=https://k1.spdns.de/Vintage/Sinclair/82/Timex%20Computer%203256%20(unreleased)/|title=Timex Computer 3256, Timex Portugal|website=k1.spdns.de}}</ref> * RAM drive commands: <code>LOAD!</code> <code>SAVE!</code> <code>CAT!</code> <code>MERGE!</code> <code>ERASE!</code> <code>CLEAR!</code> * RS-232 commands: <code>FORMAT!</code> <code>LPRINT</code> <code>LLIST</code> * AY-3-8912 commands: <code>BEEP!</code> * 512 x 192 resolution commands: <code>SCREEN$</code> <code>DRAW!</code> <code>PLOT!</code> <code>CIRCLE!</code>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)