aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 9480ab4564cae8eaacbf5f158a6d45df6f1e987e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ZX Spectrum BASIC cross-compilation

This is an easy way to write Sinclair BASIC for the ZX Spectrum using a regular
PC thanks to BAS2TAP by M. van der Heide (see [bas2tap.doc](bas2tap.doc) for
details).

It compiles to "bytecode" that will be run by the ZX Spectrum, and not into
machine code.

Requirements:

* Make (GNU Make recommended)
* A C compiler (the Makefile expects GCC)
* a ZX Spectrum emulator (optional; for `make fuse` -- FUSE GTK is expected)

"Basically" edit `game.bas` with you editor of choice and run `make` to
compile it to tokens in a `.tap` file that can be loaded in a ZX Spectrum
emulator.

Optionally you can run `make fuse` or `make zxsec` to load that tape on an emulator.

Given that most of the functionality comes from BAS2TAP, that has a weird
licence (that claims to be open source, but not sure it is!), this is
distributed under the same terms of BAS2TAP.