Sinclair BASIC

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Sinclair BASIC
Paradigm Imperative
Designed by John Grant, Steve Vickers
Developer Nine Tiles Networks,
Sinclair Research
First appeared 1979; 39 years ago (1979)
Platform ZX80, ZX81, ZX Spectrum
License Proprietary

Sinclair BASIC is a dialect of the programming language BASIC used in the 8-bit home computers from Sinclair Research and Timex Sinclair. The Sinclair BASIC interpreter was made by Nine Tiles Networks Ltd.[1]

History[edit]

Sinclair BASIC was originally developed in 1979 for the ZX80 by Nine Tiles. The programmers were John Grant, the owner of Nine Tiles, and Steve Vickers.

It was initially an incomplete implementation of the 1978 American National Standards Institute (ANSI) minimal BASIC standard with integer arithmetic only, termed the 4K BASIC (for its ROM size) for the ZX80. It evolved through the floating-point 8K BASIC for the ZX81 and TS1000 (which was also available as an upgrade for the ZX80[2]), and became an almost complete version in the 16 KB ROM ZX Spectrum. It is present in all ZX Spectrum compatibles.

As of 2015, interpreters exist for modern operating systems, and older systems, that allow Sinclair Basic to be used easily.

Syntax[edit]

New BASIC programmers might start with a simple program, perhaps using the language's PRINT statement to display a message on the screen; a well-known and often-replicated example is Kernighan and Ritchie's Hello world program:

  10 PRINT "Hello, World!"
  20 STOP

Keywords[edit]

On the 16K/48K ZX Spectrum, there are 88 keywords in Sinclair BASIC, denoting commands (of which there were 51), functions and logical operators (32), and other keywords (5):

Keyword Parameters[note 1] Entered Using[note 2] Type Summary
ABS number Extended Mode then G Function Returns the absolute value of number[3]
ACS number Extended Mode then Symbol Shift+W Function Returns the arccosine of number[4]
AND Symbol Shift+Y Logical operator Returns true if both conditions on either side of the AND keyword are true, else returns false[note 3][5]
ASN number Extended Mode then Symbol Shift+Q Function Returns the arcsine of number[6]
AT line, column; Symbol Shift+I Other Used in a PRINT statement to print at the line and column specified;[7] for example, PRINT AT 5,10;"*" puts a star in column 10 of line 5.
ATN number Extended Mode then Symbol Shift+E Function Returns the arctangent of number[4]
ATTR (line, column) Extended Mode then Symbol Shift+L Function Returns a byte containing information on the colours of the text cell on the screen, corresponding to the specified line and column;note that, unlike most Sinclair BASIC keywords, the parentheses are required; the first three bits indicate the ink (foreground)colour, the fourth, fifth and sixth bits the paper (background) colour, the seventh bit whether the colours are bright or not, and the eight, whether they are flashing[8]
BEEP duration, pitch Extended Mode then Symbol Shift+Z Command Produces sound from the computer’s speaker; duration is in seconds, pitch is in semitones above (positive value) or below (negative value) middle C[9]
BIN number Extended Mode then B Command Indicates number is in binary notation[10]
BORDER number B Command Sets the outer border of the screento the colour specified by the number[note 4][11]
BRIGHT number Extended Mode then Symbol Shift+B Command Makes all following colours brighter if number is 1, or its normal shade if 0[note 5][12]
CAT number Extended Mode then Symbol Shift+9 Command Displays contents of ZX Microdrive specified by number[note 6][13]
CHR$ number Extended Mode then W Function Returns the character corresponding to the decimal number in the computer’s character set[14]
CIRCLE x, y, r Extended Mode then Symbol Shift+H Command Draws a circle with its centre at coordinates (x,y) and radius r[15]
CLEAR address X Command Sets the maximum RAM address to be used by BASIC[16] and clears the screen[17] (address is a decimal number, not hexadecimal)
CLOSE # number Extended Mode then Symbol Shift+5 Command Closes the specified stream number for access[note 6]
CLS V Command Clears all text and graphics from the screen[17]
CODE string Extended Mode then I Function Returns the number corresponding to the first character in string in the computer’s character set;[14] also used to save arbitrary chunks memory to tape, disk, etc. and load them back in — see LOAD, SAVE and VERIFY for details
CONTINUE C Command Restarts a program after it has stopped due to an error or the user pressing the Caps Shift+Space or Break keys[18]
COPY Z Command Sends the currently displayed screen to the printer[19]
COS number Extended Mode then W Function Returns the cosine of number[20]
DATA comma-separated values Extended Mode then D Command Provides numbers and/or strings to use with the READ command[21] and allows saving the contents of an array to tape when used with the SAVE command[22] (as SAVE filename DATA array name()
DEF FN name(variable) = operation Extended Mode then 1 Command Defines a custom function that can be used with the FN command;function definitions must be of the form f(x)=operations, for example f(x)=x*2 and the function name may not consist of more than one letter, plus a $-symbol if the function returns a string[23]
DIM variable(dimensions) D Command Declares an array with the specified dimensions, which may be multi-dimensional (for example, DIM a(10,10); if used with strings, the last dimension indicates the length of each of the strings (thus, DIM a$(2,5) is an array of two strings each of five characters long, and DIM b$(5) is one string of five characters)[24]
DRAW x, y [, r] W Command Draws a line in the current INK colour to coordinates (x,y) from the coordinates used by the previous PLOT or DRAW command; if the optional r is supplied, it indicates the radius of the circle segment to be drawn, in radians[25]
ERASE drive;"filename" Extended Mode then Symbol Shift+7 Command Deletes the specified file from a ZX Microdrive[note 6][26]
EXP number Extended Mode then X Function Returns e to the power number[27]
FLASH number Extended Mode then Symbol Shift+V Command Makes all following text alternate its foreground (INK) and background (PAPER) colours[note 5]
FN function(value) Extended Mode then Symbol Shift+2 Function Calls the function defined earlier in the program using DEF FN[23]
FORMAT drive;"name" Extended Mode then Symbol Shift+0 Command Formats the tape in the indicated Microdrive and assigns it the identifier name[note 6][28]
FOR variable = F Command Starts a FOR-NEXT loop;[29] must be followed by a number, TO and another number to indicate the range to be iterated over; the variable name may only be one character long[30]
GO SUB number H Command Makes the program jump to the BASIC line specified by number; when the program encounters the command RETURN, it will jump back to the statement after the GO SUB[31]
GO TO number G Command Makes the program jump to the BASIC line specified by number
IF condition THEN U Command Evaluates the condition, and if true, executes the statement that follows the keyword THEN that must come after the condition,[32] for example IF a=1 THEN LET b=2[note 7]
IN address Extended Mode then Symbol Shift+I Function Returns a byte read from the hardware [Memory-mapped I/O|input/output port] corresponding to the address[33]
INK number Extended Mode then Symbol Shift+X Command Sets the foreground colour for text and graphics[note 4][note 5][34]
INKEY$ Extended Mode then Symbol Shift+Z Function Returns a string representing the key being pressed on the keyboard at the moment the function is called, or an empty string if none is,[35] but does not wait for a keypress
INPUT [prompt,] variable I Command Halts program execution until the user types in something on the keyboard and presses the Enter key, then stores the entered value in the specified variable; if the optional prompt is supplied, this will be shown on the screen[36]
INT number Extended Mode then R Function Returns the integer value of number, rounding down to the nearest whole number[3] (thus, INT -1.1 returns −2, not −1)
INVERSE number Extended Mode then Symbol Shift+M Command Reverses the colours on all following text if number is 1, so that it uses the current ink colour for the background and the current paper colour for the text, or sets them back to normal if number is 0[note 5][37]
LEN string Extended Mode then K Function Returns the number of characters (bytes) in string[38]
LET variable=value L Command Assigns value to the named variable[39]
LINE Extended Mode then Symbol Shift+3 Other When used in an INPUT statement right before the variable, the latter will not put quote marks ("") around its prompt,[7] for example INPUT "Name: "; LINE n$; LINE can also be used in a SAVE statement so that when the BASIC program being saved is loaded again, it starts automatically at the line number indicated[40]
LIST [number] K Command Outputs the current BASIC program to the screen; if the optional number is provided, it omits all lines with a lower number[41]
LLIST [number] Extended Mode then Symbol Shift+V Command As LIST except the listing is output to the printer[19]
LN number Extended Mode then Symbol Shift+Z Function Returns the natural logarithm of number[42]
LOAD DATA variable()] J Command Loads a program or data into RAM from tape, ZX Microdrive, disk, etc., deleting any existing BASIC program and variables;[36] if an empty string ("") is provided, this loads the first program found, else it will search the tape for the program named in the string; if the optional CODE is provided, will load the program into memory at the address it had when it was saved, or at the specified address (length is intended as a safety, to try and load the right program in case there are multiple on the tape with the right name but of different lengths);[43] if the optional DATA variable() is provided, will load the data from the tape into the array named variable()[22]
LPRINT text Extended Mode then Symbol Shift+C Command As PRINT except output is sent to the printer[19]
MERGE "[filename]" Extended Mode then Symbol Shift+T Command As LOAD, except it doesn’t delete the current program and variables; if a line number exists in both, that of the newly loaded program overwrites the existing one[44]
MOVE stream1 TO stream2 Extended Mode then Symbol Shift+6 Command Moves data from one stream (keyboard, screen, file, printer, network, etc.) to another[note 6][45]
NEW A Command Erases the current BASIC program and all variables[36]
NEXT variable N Command Closes a FOR-NEXT loop; the variable must match that of the corresponding FOR command[46] — “empty” NEXTs to refer to the immediately preceding FOR in the program are not allowed
NOT condition Symbol Shift+S Logical operator Returns true if the condition is false, else returns false[note 3][5]
OPEN # stream Extended Mode then Symbol Shift+4 Command Opens a stream for reading from and/or writing to[note 6][47]
OR Symbol Shift+Y Logical operator Returns true if either of the conditions on either side of the OR keyword are true, else returns false[note 3][5]
OUT address, value Extended Mode then Symbol Shift+O Command Sends the value (a byte) to the hardware [Memory-mapped I/O|input/output port] corresponding to the address[33]
OVER number Extended Mode then Symbol Shift+N Command Will make following text overprint what is already on the screen if number is 1, instead of erasing it, or erase it if number is 0[note 5][37]
PAPER number Extended Mode then Symbol Shift+C Command Sets the background colour for text and graphics[note 4][note 5][34]
PAUSE delay M Command Halts program execution for the specified delay, in of a second in Europe or in North America[48] (thus, DELAY 50 halts for one second in Europe)
PEEK address Extended Mode then O Function Returns a byte representing the contents of the memory location pointed to by address[49]
PI Extended Mode then M Function Returns the value of pi to seven decimal places (3.1415927)[42]
PLOT x, y Q Command Draws a pixel in the current INK colour on the screen at the coordinates (x,y)[50]
POINT (x,y) Extended Mode then Symbol Shift+8 Function Returns 1 if the pixel pointed at graphical coordinates (x,y) is currently in the ink (foreground) colour, else returns 0[15]
POKE address, value O Command Sets the contents of address in RAM to value[51]
PRINT [AT x,y;] text P Command Prints text (which must be a string or a number) to the screen;[39] if used with AT, will print at the specified text coordinates, else in the first column of the line after that used by the last PRINT statement[7]
RANDOMIZE [number] T Command Initializes the random number generator; if used without a number (or with 0), it does this based on the computer’s internal clock, else it uses the number supplied, which must be in the range [1,65535][52]
READ variable Extended Mode then A Command Takes a value from a DATA statement and stores it in the named variable: the first time READ is used, it gets the first value after the first DATA, the second time it gets the next one, and so on[21]
REM text E Command Begins a comment in the source code, meaning that everything after the REM statement is ignored, until the end of the line[36] — note this includes everything after a colon, which normally begins a new segment: 10 REM Nothing to see here : PRINT "Unprintable" will not produce any output, for example
RESTORE [number] Extended Mode then S Command Resets where READ commands look for values in DATA statements: if used without a number, the next READ will use the first DATA in the program, with a number it will use the first DATA on or after the line whose number is indicated[53]
RETURN Y Command Returns execution to the first statement following the last GO SUB command that was executed[31]
RND Extended Mode then T Function Returns a pseudo-random number with eight significant figures in the range [0,1)[54]
RUN [number] R Command Starts the current BASIC program, from its first line if no number is specified, else from the line with that number (or the first one after, if it does not exist)[55]
SAVE LINE number] S Command Saves the current BASIC program to tape or other storage device, with the filename specified; if the optional LINE followed by a line number is used, then the program will start automatically at the indicated line number when it is LOADed back in; with the optional DATA, the command saves the contents of the array named by the variable instead of the current BASIC program[22]
SCREEN$ [(line, column)] Extended Mode then Symbol Shift+ Function Used after the filename in a LOAD or SAVE command to indicate that the contents of the display memory should be loaded or saved; this essentially makes it a shortcut for CODE 16384,6912[note 8] but does not work with VERIFY because the contents of the display memory will be different by the time that command reads back the saved data;[56] alternatively, used to retrieve the character at the specified line and column on the screen[7]
SGN number Extended Mode then F Function Returns 1 if number is positive, 0 if it is 0, and −1 if it is negative[3]
SIN number Extended Mode then Q Function Returns the sine of number[20]
STEP number Symbol Shift+D Other Indicates the interval used by a FOR statement,[30] for example FOR n=2 TO 6 STEP 2 will skip n=3 and n=5 in the loop
STOP Symbol Shift+A Command Ends execution of the current program, exiting to the BASIC editor; can also be given when the computer is waiting for input using the INPUT command;[55] once the program is stopped, it can be resumed with CONTINUE
SQR number Extended Mode then H Function Returns the square root of number[23]
STR$ number Extended Mode then Y Function Returns the character from the computer’s character set corresponding to number[57]
TAB column Extended Mode then P Other In a PRINT statement, makes sure that the text to be output begins in the column specified, wrapping to the next line as necessary, but never more than one line[17]
TAN number Extended Mode then E Function Returns the tangent of number[58]
THEN statement Symbol Shift+G Other Follows the condition in an IF statement to indicate what should happen when the condition evaluates to true[note 7][32]
TO Symbol Shift+F Function Indicates a range from the number to the left of TO to the number of the right of it, inclusive;[59] when used with FOR both numbers must be supplied, while if used to slice strings, either may be left off to indicate the start or end of the string
USR string or address Extended Mode then L Function When called with a single-character string, this returns the memory address at which the glyph for that character is defined;[10] if called with an address, it starts machine code execution at that address and returning the contents of the Z80’s BC register pair[60]
VAL string Extended Mode then J Function Evaluates the string as a number and returns the result;[61] this can perform calculations: VAL "1+2" returns 3, for example, and also evaluates variables and even other VAL statements: LET a=1: VAL "a+VAL ""2"""[note 9] also returns 3
VAL$ string Extended Mode then Symbol Shift+J Function Similar to VAL but evaluates the string as a string[3]
VERIFY "[filename]" Extended Mode then Symbol Shift+R Command Reads a program from tape or other storage, much like LOAD, but instead of loading it into memory, compares it to the program that is currently in memory; this is intended to make sure the program, has been SAVEd correctly[62]

The keywords are entered via Sinclair's unique keyword entry system, as indicated on the table. The most common commands need one keystroke only; for example, pressing only P at the start of a line on a Spectrum produces the full command PRINT. Less frequent commands require more complex key sequences: BEEP (for example) is keyed by pressing CAPS SHIFT plus SYMBOL SHIFT to access extended mode (later models include an EXTENDED MODE key), keeping SYMBOL SHIFT held down and pressing Z. Keywords are color-coded on the original Spectrum keyboard to indicate which mode is required:[63]

  • White: key only
  • Red on the key itself: Symbol Shift plus the key
  • Green above the key: Extended Mode followed by the key
  • Red below the key: Extended Mode followed Symbol Shift plus the key

The ZX81 8K BASIC used the shorter forms GOTO, GOSUB, CONT and RAND, whereas the Spectrum used the longer forms GO TO, GO SUB, CONTINUE and RANDOMIZE. The ZX80 4K BASIC also used these longer forms but differed by using the spelling RANDOMISE. The ZX81 8K BASIC was the only version to use FAST, SCROLL, SLOW and UNPLOT. The ZX80 4K BASIC had the exclusive function TL$(); it was equivalent to the string operator ( TO ) in later versions.

Unique code points are assigned in the ZX80 character set, ZX81 character set and ZX Spectrum character set for each keyword or multi-character operator, i.e. <=, >=, <>, "" (tokenized on the ZX81 only), ** (replaced with on the Spectrum). These are expanded by referencing a token table in ROM. Thus, a keyword uses one byte of memory only, a significant saving over traditional letter-by-letter storage. This also meant that the BASIC interpreter could quickly determine any command or function by evaluating one byte, and that the keywords need not be reserved words like in other BASIC dialects or other programming languages, e.g., it is allowed to define a variable named PRINT and output its value with PRINT PRINT. This is also related to the syntax requirement that every line start with a command keyword, and pressing the one keypress for that command at the start of a line changes the editor from command mode to letter mode. Thus, variable assignment requires LET (i.e., LET a=1 not only a=1). This practice is also different from other BASIC dialects. Further, it meant that unlike other BASIC dialects, the interpreter needed no parentheses to identify functions; SIN x was sufficient, no SIN(x) needed (though the latter was allowed). The 4K BASIC ROM of the ZX80 had a short list of exceptions to this: the functions CHR$(), STR$(), TL$(), PEEK(), CODE(), RND(), USR() and ABS() did not have one-byte tokens but were typed in letter-by-letter and required the parentheses. They were listed as the INTEGRAL FUNCTIONS on a label above and to the right of the keyboard.[64]

The 128K Spectrum models, the ZX Spectrum 128, +2, +3, +2A, and +2B, also stored keywords internally in one-byte code points, but used a conventional letter-by-letter BASIC input system. They also introduced two new commands:

  • PLAY, which operated the 128k models' General Instrument AY-3-8910 music chip
  • SPECTRUM, which switched the 128k Spectrum into a 48k Spectrum compatibility mode

The original Spanish ZX Spectrum 128 included four additional commands in Spanish,[65] one of which was undocumented. These can be translated as:

  • EDIT (to edit a line number or invoke the full screen string editor)
  • RENUM (to renumber the program lines)
  • DELETE (to delete program lines)
  • WIDTH (to set the column width of the RS232 device, but undocumented as the code was broken)

Unlike the LEFT$(), MID$() and RIGHT$() functions used in the ubiquitous Microsoft BASIC dialects for home computers, parts of strings in Sinclair BASIC are accessed by numeric range. For example, a$(5 TO 10) gives a substring starting with the 5th and ending with the 10th character of the variable a$. Thus, it is possible to replace the LEFT$() and RIGHT$() commands by simply omitting the left or right array position respectively; for example a$( TO 5) is equivalent to LEFT$(a$,5). Further, a$(5) alone is enough to replace MID$(a$,5,1).


Variable names[edit]

String and array variable names must consist of only one alphabetical character. Thus, LET a=5, LET Apples=5, LET a$="Hello", DIM a(10) and DIM a$(10) are all good, while LET Apples$="Fruit", DIM Apples(10) and DIM Apples$(10) are not.

The long variable names allowed for numeric variables can include alphanumeric characters after the first character, so LET a0=5 is allowed but not LET 0a=5. The long variable names can also include spaces, which are ignored, so LET number of apples = 5 is the same as LET numberofapples = 5

Official versions[edit]

  • 4K BASIC is the original ZX80 BASIC with integer-only arithmetic, by John Grant of Nine Tiles for the ZX80, so named for residing in 4 KiB read-only memory (ROM).
  • 8K BASIC is the ZX81 BASIC (also available as an upgrade for the ZX80[2]), updated with floating-point arithmetic by Steve Vickers, so named for residing in 8 KiB ROM.
  • 48 BASIC is the BASIC for the original 16/48 kB random-access memory (RAM) ZX Spectrum (and clones), with color and more peripherals added by Steve Vickers and John Grant. It resides in 16 KiB 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[66]
  • 128 BASIC is the BASIC for the ZX Spectrum 128.[67] It offers extra commands and uses letter-by-letter input.
  • +3 BASIC is the BASIC with disk support for the ZX Spectrum +3.[66]
  • T/S 2000 BASIC was used on the Spectrum-compatible Timex Sinclair 2068 (TS2068) and has the following six keywords and the ordinary Sinclair BASIC ones:
    • DELETE deletes BASIC program line ranges. ⇧ Shift+0 with the K cursor produces the command DELETE.
    • FREE is a function that gives the amount of free RAM. PRINT FREE will show how much RAM is free.
    • ON ERR is an error-handling function mostly used as ON ERR GO TO or ON ERR CONT.
    • RESET can be used to reset the behaviour of ON ERR. It was also intended to reset peripherals.
    • SOUND controls the AY-3-8192 sound chip.
    • STICK is a function that gives the position of the internal joystick (Timex Sinclair 2090).
  • BASIC64 by Timex of Portugal, is a software extension[68] to allow better Basic programming with the 512×192 graphic mode available only on Timex 2000 series 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 TC2048 and a version for TS/TC2068.

Other versions, extensions, derivatives and successors[edit]

Interpreters for the ZX Spectrum family[edit]

Several ZX Spectrum interpreters exist.[69]

Compilers for the ZX Spectrum family[edit]

Several ZX Spectrum compilers exist.[69]

  • HiSoft COLT Compiler (a.k.a. HiSoft COLT Integer Compiler)[75]
  • HiSoft BASIC (a.k.a. HiSoft BASIC Compiler), an integer and floating-point capable compiler[76]
  • Laser Compiler[77]
  • Softek 'IS' Integer Compiler[78] (successor to Softek Integer Compiler[79])
  • Softek 'FP' Full Compiler[80]
  • ZIP Compiler[81]

Derivatives and successors for other computers[edit]

See also[edit]

Notes[edit]

  1. ^ Optional parameters are enclosed in [square brackets]
  2. ^ These assume the computer is in  K  (keyword) mode, which it normally is at the start of a line when entering BASIC. On the Spectrum 16K and 48K, Extended Mode is entered by pressing Caps Shift and Symbol Shift simultaneously rather than the Extended Mode key that is present on the Spectrum+ and later models.
  3. ^ a b c “False” in Sinclair BASIC equates to 0 (zero), everything else equates to “true”. Functions that return true-or-false values thus actually return 0 for false and 1 for true, while AND usually returns the first of the conditions supplied for true, or 1 if no numerical values were given. For example, 6 AND 7 returns 6, while NOT 6=7 returns 1.
  4. ^ a b c The available numbers for colours are: 0 = black, 1 = blue, 2 = red, 3 = magenta, 4 = green, 5 = cyan, 6 = yellow, 7 = white. In all colour-related commands, the number 8 may be used to indicate “transparent” while in INK and PAPER may also be set to 9 for “contrast” — that is, to put a dark colour on a light background or vice versa automatically.
  5. ^ a b c d e f INK, PAPER, FLASH, BRIGHT, OVER and INVERSE set attributes for outputting text and graphics to the screen. They can be used either as commands, to apply to all subsequent output until set again, or within a PRINT statement, to apply only from that point until the end of the statement.
  6. ^ a b c d e f CAT, ERASE, FORMAT and MOVE were originally designed to be used with peripherals, but at the launch of ZX Spectrum, they had not been completely implemented, such that their use generated an error message (Invalid Stream). Later with the aid of the ZX Interface 1 shadow ROM, they were used for the ZX Microdrive. (The shadow ROM was paged when the BASIC interpreter detected a syntax error, which is why most ZX Microdrive commands use a "*").
  7. ^ a b Unlike many other BASIC dialects, Sinclair Basic did not include the ELSE operator in the IFTHEN[–ELSE] clause. A workaround would be to use an IFTHENGO TO construct instead, bypassing the lines that would have been in an ELSE clause with the GO TO
  8. ^ The Spectrum’s display memory starts at address 16384 and is 6912 bytes long
  9. ^ A string inside a string must have its quotes doubled in Sinclair BASIC

References[edit]

  1. ^ Garfield, Simon (2010-02-28). "Sir Clive Sinclair: "I don't use a computer at all"". The Guardian. Guardian Media Group. Retrieved 2011-05-23. He is keen to credit [...], not least Nine Tiles, the company that made the Basic operating software. 
  2. ^ a b "ZX80 - 8K BASIC ROM UPGRADE". 
  3. ^ a b c d Vickers 1983, p. 59.
  4. ^ a b Vickers 1983, p. 70.
  5. ^ a b c Vickers 1983, p. 85.
  6. ^ Vickers 1983, p. 69–70.
  7. ^ a b c d Vickers 1983, p. 101.
  8. ^ Vickers 1983, p. 116.
  9. ^ Vickers 1983, p. 135.
  10. ^ a b Vickers 1983, p. 93.
  11. ^ Vickers 1983, p. 113.
  12. ^ Vickers 1983, p. 110–111.
  13. ^ Cambridge Communication 1983, p. 15.
  14. ^ a b Vickers 1983, p. 91.
  15. ^ a b Vickers 1983, p. 123.
  16. ^ Vickers 1983, p. 168.
  17. ^ a b c Vickers 1983, p. 103.
  18. ^ Vickers 1983, p. 19.
  19. ^ a b c Vickers 1983, p. 151.
  20. ^ a b Vickers 1983, p. 68.
  21. ^ a b Vickers 1983, p. 41.
  22. ^ a b c Vickers 1983, p. 142.
  23. ^ a b c Vickers 1983, p. 60.
  24. ^ Vickers 1983, p. 79–81.
  25. ^ Vickers 1983, p. 11–123.
  26. ^ Cambridge Communication 1983, p. 18.
  27. ^ Vickers 1983, p. 66.
  28. ^ Cambridge Communication 1983, p. 19.
  29. ^ Vickers 1983, p. 31.
  30. ^ a b Vickers 1983, p. 32.
  31. ^ a b Vickers 1983, p. 37.
  32. ^ a b Vickers 1983, p. 25.
  33. ^ a b Vickers 1983, p. 159.
  34. ^ a b Vickers 1983, p. 110.
  35. ^ Vickers 1983, p. 131.
  36. ^ a b c d Vickers 1983, p. 16.
  37. ^ a b Vickers 1983, p. 112.
  38. ^ Vickers 1983, p. 57.
  39. ^ a b Vickers 1983, p. 13.
  40. ^ Vickers 1983, p. 144.
  41. ^ Vickers 1983, p. 15.
  42. ^ a b Vickers 1983, p. 67.
  43. ^ Vickers 1983, p. 142–143.
  44. ^ Vickers 1983, p. 147.
  45. ^ Cambridge Communication 1983, p. 39.
  46. ^ Vickers 1983, p. 31–32.
  47. ^ Cambridge Communication 1983, p. 22.
  48. ^ Vickers 1983, p. 129.
  49. ^ Vickers 1983, p. 130.
  50. ^ Vickers 1983, p. 121.
  51. ^ Vickers 1983, p. 163.
  52. ^ Vickers 1983, p. 74.
  53. ^ Vickers 1983, p. 42.
  54. ^ Vickers 1983, p. 73.
  55. ^ a b Vickers 1983, p. 14.
  56. ^ Vickers 1983, p. 143.
  57. ^ Vickers 1983, p. 58.
  58. ^ Vickers 1983, p. 69.
  59. ^ Vickers 1983, p. 32, 51.
  60. ^ Vickers 1983, p. 180.
  61. ^ Vickers 1983.
  62. ^ Vickers 1983, p. 141.
  63. ^ Vickers 1983, p. 7–8.
  64. ^ "Picture of ZX80". 
  65. ^ Spectrum 128 ROM Disassembly - Spanish Spectrum 128
  66. ^ a b http://www.worldofspectrum.org/ZXSpectrum128+3Manual/chapter7.html
  67. ^ http://www.worldofspectrum.org/ZXSpectrum128Manual/sp128p06.html
  68. ^ http://timex.comboios.info/tmxtechb64-2048.html
  69. ^ a b c d e f g h http://www.worldofspectrum.org/sinclairbasic/
  70. ^ "Sinclair BASIC history". 
  71. ^ http://www.wearmouth.demon.co.uk/
  72. ^ https://sites.google.com/site/ulaplus/
  73. ^ http://www.fruitcake.plus.com/Sinclair/Interface2/Cartridges/Interface2_RC_New_3rdParty_SEBASIC.htm
  74. ^ https://sourceforge.net/projects/sebasic/
  75. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008254
  76. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008249
  77. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008329
  78. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008696
  79. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008282
  80. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0008693
  81. ^ http://www.worldofspectrum.org/infoseekid.cgi?id=0009452
  82. ^ http://rk-internet.com/eZXSparky/
  83. ^ http://www.shadowmagic.org.uk/spectrum/basic.html
  84. ^ http://www.shadowmagic.org.uk/spectrum/checkbasic.html
  85. ^ http://cartesianproduct.wordpress.com/binsic-is-not-sinclair-instruction-code/
  86. ^ https://sites.google.com/site/ulaplus/home/zx-spin-and-basin
  87. ^ https://sites.google.com/site/pauldunn/

Bibliography[edit]

  • Ardley, Neil (1984). Sinclair ZX Spectrum+ User Guide. Dorling Kindersley in association with Sinclair Research. ISBN 0-86318-080-9. 
  • Vickers, Steven (1982). Sinclair ZX Spectrum BASIC Programming. Sinclair Research. 
  • Vickers, Steven (1983). Sinclair ZX Spectrum BASIC Programming (2 ed.). Sinclair Research. 
  • Cambridge Communication (1983). Sinclair ZX Spectrum Microdrive and Interface 1 manual. Sinclair Research. 

External links[edit]