Category:ZX Spectrum Basic
Appearance
ZX Spectrum Basic
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using ZX Spectrum Basic.
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
See Also: |
|
ZX Spectrum Basic is an implementation of BASIC.
Other implementations of BASIC.
ZX Spectrum Basic is the BASIC built into the ROM of the ZX Spectrum Computer.
Features
- Language is interpreted (but third party compiler is available).
- Line numbers are required
- Line numbers must be no longer than four digits
- No named locations
- Some Terminal Control capabilities
- Supports colour
- Support for direct display graphics
- Support for sound via the speaker
- No support for scoped variables
- No support for structured variables
- No command line parameters
- No support for environment
- Supports output tho the line printer via the lprint command
- No direct support for error handling, but error handling can be achieved using assembly language by changing the error handler address
- Support for streams when using Interface 1, but no support for freefile
- Can read keystrokes using
INKEY$
- No support for multiple line
IF
conditionals - No conditional compilation directives
- no hashbang mechanism
- Variables have to be defined before use
- The GO TO command has a space in the middle
- VAL function interprets expressions
- INPUT function can interpret expressions (unless LINE INPUT is used)
Subcategories
This category has the following 3 subcategories, out of 3 total.
Pages in category "ZX Spectrum Basic"
The following 200 pages are in this category, out of 216 total.
(previous page) (next page)2
A
- A+B
- ABC problem
- Abundant, deficient and perfect number classifications
- Ackermann function
- Align columns
- Aliquot sequence classifications
- Almost prime
- Amicable pairs
- Animate a pendulum
- Animation
- Anonymous recursion
- Apply a callback to an array
- Arithmetic evaluation
- Arithmetic-geometric mean
- Arithmetic/Complex
- Arithmetic/Integer
- Array concatenation
- Arrays
- Audio frequency generator
B
C
- Caesar cipher
- Calculating the value of e
- Call a function
- Carmichael 3 strong pseudoprimes
- Case-sensitivity of identifiers
- Casting out nines
- Catalan numbers
- Catalan numbers/Pascal's triangle
- Catamorphism
- Chaos game
- Character codes
- Chinese remainder theorem
- Cholesky decomposition
- Circles of given radius through two points
- Closest-pair problem
- Color of a screen pixel
- Colour bars/Display
- Combinations with repetitions
- Comma quibbling
- Compare a list of strings
- Constrained random points on a circle
- Continued fraction
- Convert seconds to compound duration
- Conway's Game of Life
- Copy a string
- Count in factors
- Count in octal
- Count occurrences of a substring
- Count the coins
- Create a file
- Create a file on magnetic tape
D
E
F
G
H
I
K
L
P
Q
R
S
- Scope/Function names and labels
- Shell one-liner
- Show ASCII table
- Sieve of Eratosthenes
- Sleep
- Snake
- Sorting algorithms/Bubble sort
- Sorting Algorithms/Circle Sort
- Sorting algorithms/Cocktail sort
- Special variables
- Speech synthesis
- Spinning rod animation/Text
- Split a character string based on change of character
- Start from a main routine
- String concatenation
- String length
- Subleq
- Substring
- Substring/Top and tail
- Sum of a series