Repository navigation
Releases
CPC Lisp 1.2: the MSX and the Amstrad PCW
CPC Lisp 1.2: the MSX and the Amstrad PCW
- CPC Lisp on the MSX (
cpc-lisp-1.2-msx.zip): the same Lisp -- the same six images, built from the same sources, the compiler included -- on an MSX1 or any later MSX with a memory mapper (144 KB free) and MSX-DOS 2 or Nextor; an MSX SD Mapper & Megaram 512 KB cartridge (its switches at ON and MP) brings both. 40 columns, colour graphics in the VDP's screen 2, the CPC firmware's sound manager on the PSG, floats by the ROM's Math-Pack, files through DOS, a RAM discM:and far arrays in the mapper's spare segments. Unzip it into a folder of its own on the SD card (LISP):LISP.COM,LISP.IMG,HWTEST.LSP, the Apfelmaennchen, the torus and the classics; at DOS's promptCD LISP,LISP. It passed on a real Toshiba HX-10 ((hwtest)10 yes, the keys, the demos, sound) and runs on a Philips VG-8020 (GRAPH is a second SHIFT there, for a keyboard whose SHIFT has died); seemach/msx/README.md. - CPC Lisp on the Amstrad PCW (
cpc-lisp-1.2-pcw.dsk,cpc-lisp-1.2-pcw-classics.dsk): the same Lisp on a PCW 8256 or 8512 (the Schneider Joyce), booted from a disc of its own -- no CP/M, no ROM. 90 by 32 characters on its green screen, graphics on its 720 by 256 in one colour, our own disc routines on CP/M's file system (CP/M reads what Lisp saves), floats by maths of our own, a RAM discM:(47 KB on an 8256, 303 KB on an 8512), 6499 cells. Put the disc in drive A -- on a Gotek, the image as it is -- and switch on. So far it has run in the ZEsarUX emulator only, not yet on a real PCW; seemach/pcw/README.md. - For the CPC and the TRS-80s, 1.2 is 1.1 but for the version.
All files are build 1200:
- CPC ROMs: the six ROMs and
cpc-lisp-1.2.zip. Re-flash all six together. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk,cpclispfos-n.dskfor FutureOS itself,cpclispfos.dsk(the firmware island), the ROMs' test disccpclisp-hwtest.dsk, the demo disccpclisp-demo.dskand the classics disccpclisp-classics.dsk. - MSX:
cpc-lisp-1.2-msx.zip, the files for the SD card's folder. - Amstrad PCW:
cpc-lisp-1.2-pcw.dsk(the disc that boots) andcpc-lisp-1.2-pcw-classics.dsk(the examples), 180 KB each. - ZX Spectrum:
cpc-lisp-1.2-spectrum.zip, the files for the DivMMC's SD card. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4:
-model4.dsk/.hfefor a floppy, HxC or Gotek, and-model4-frehdfor a FreHD (copy it to the SD card ascpclisp4). - TRS-80 classics:
-classics-model1,-model3,-model4, as.dskand.hfe: a data disc for drive 1.
Tested in the emulators: the 464's suite (44 ok), the 6128's file tests (8), the 512K version (44), the plain 6128 version (42), the ZX Spectrum (43 in ZEsarUX; with the real esxDOS 0.8.5, (hwtest) 10 yes and after (quit) (hwtest2) 2 yes), the MSX (43 in openMSX, (hwtest) 10 yes), the PCW (43 in ZEsarUX, (hwtest) 10 yes on an 8256 and an 8512), the Model 4 (37), FutureOS on a 464 and a 6128, natively and as the firmware island ((hwtest) 7 yes), and the Model I's hardware test (8 yes). The MSX version passed on a real HX-10 and runs on a VG-8020 (build 11262: the same but for the version); the PCW version has not run on a real PCW yet. See roms/README.md and discs/README.md.
CPC Lisp 1.1: the ZX Spectrum
CPC Lisp 1.1: the ZX Spectrum
- CPC Lisp on the ZX Spectrum (
cpc-lisp-1.1-spectrum.zip): the same Lisp -- the same six images, built from the same sources, the compiler included -- on a 128K Spectrum (+2A, +2B, +3, or a 128 or grey +2) with a DivMMC that has 128 KB of RAM and runs esxDOS. 40 columns in a font of its own, colour graphics on the Spectrum's attributes (with its colour clash), the CPC firmware's sound manager on the AY, files through esxDOS on the SD card, floats by the Spectrum ROM's calculator, a RAM discM:and far arrays in the DivMMC's spare RAM, MIDI out of the RS232/MIDI socket (through an adapter). Unzip it to the SD card: a folderLISPwithLISP.TAP,HWTEST.LSP, the Apfelmaennchen and the classics. Switch on, press the DivMMC's NMI button, go intoLISP, move ontoLISP.TAP, ENTER. It passed on a real +2A with esxDOS 0.8.5 ((hwtest)10 yes, the keys, sound, graphics); seemach/spectrum/README.md, and the video: CPC Lisp on the Sinclair ZX Spectrum +2 -- Common Lisp on the Speccy! (demo)lists what the machine has, in 40 columns: the speech demos' lines wrapped on the CPC; now LambdaSpeak on the CPC, Talker/80 on the TRS-80s, and none on the Spectrum. For the CPC and the TRS-80s that is the only change from 1.0.
All files are build 1100:
- CPC ROMs: the six ROMs and
cpc-lisp-1.1.zip. Re-flash all six together. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk,cpclispfos-n.dskfor FutureOS itself,cpclispfos.dsk(the firmware island), the ROMs' test disccpclisp-hwtest.dsk, the demo disccpclisp-demo.dskand the classics disccpclisp-classics.dsk. - ZX Spectrum:
cpc-lisp-1.1-spectrum.zip, the files for the DivMMC's SD card. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4:
-model4.dsk/.hfefor a floppy, HxC or Gotek, and-model4-frehdfor a FreHD (copy it to the SD card ascpclisp4). - TRS-80 classics:
-classics-model1,-model3,-model4, as.dskand.hfe: a data disc for drive 1.
Tested in the emulators: the 464's suite (44 ok), the 6128's file tests (8), the 512K version (44), the plain 6128 version (42), the ZX Spectrum (43 in ZEsarUX; with the real esxDOS 0.8.5 from an SD card image, (hwtest) 10 yes and after (quit) (hwtest2) 2 yes), the Model 4 (37), FutureOS on a 464 and a 6128, natively and as the firmware island ((hwtest) 7 yes), and the Model I's hardware test (8 yes). The Spectrum version passed on a real +2A (build 362: the same but for the version and the demo list). See roms/README.md and discs/README.md.
CPC Lisp 1.0: on FutureOS itself, cd everywhere, structures that save and load
CPC Lisp 1.0: on FutureOS itself, cd everywhere, structures that save and load
- CPC Lisp on FutureOS itself (
cpclispfos-n.dsk), TFM's operating system for the CPC. There is no firmware: FutureOS stays resident, and Lisp loads, saves and prints through FutureOS's own routines, from any of its drives (A, B, the LambdaSpeak card's E...). Lisp brings its own keyboard scan, graphics and sound; floats come from the lower ROM's maths package. It is all of CPC Lisp, the compiler included, with the RAM discM:(191 KB) in the expansion's free blocks, and it is noticeably quicker than through the firmware.LISP.64Kchecks every image it loads and names a damaged one. Start it from the desktop on a 464, 664 or 6128 with a 512K RAM expansion that does C3 (Revaldinho's card: configuration 8 on a 464, 0 on a 6128): read the drive, tagLISP.64K, RUN (X).(reset)goes back to the desktop. It passed on a real 464 and 6128; seemach/fos/README.md. The firmware island from 0.99 (cpclispfos.dsk) is still here. cdon every disc version and machine:(cd "b:")makes B the drive for names without one,(cd)says which,(cd nil)goes back;(dir "b:")lists another drive.saveandloadround-trip structures: the reader reads#S(...). Saving everything after(hwtest)wrote its far array that way, and loading the file said "syntax error".
All files are build 1000:
- CPC ROMs: the six ROMs and
cpc-lisp-1.0.zip. Re-flash all six together. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk,cpclispfos-n.dskfor FutureOS itself,cpclispfos.dsk(the firmware island), the ROMs' test disccpclisp-hwtest.dsk, the demo disccpclisp-demo.dskand the classics disccpclisp-classics.dsk. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4:
-model4.dsk/.hfefor a floppy, HxC or Gotek, and-model4-frehdfor a FreHD (copy it to the SD card ascpclisp4). - TRS-80 classics:
-classics-model1,-model3,-model4, as.dskand.hfe: a data disc for drive 1.
Tested in the emulators: the 464's suite (44 ok), the 6128's file tests (8), the 512K version (44), the plain 6128 version (42), the Model 4 (37), FutureOS on a 464 and a 6128, natively and as the firmware island ((hwtest) 7 yes), and the Model I's hardware test (8 yes). The native FutureOS version passed on a real 464 and 6128 (build 26017 on the 464: the same but for the version). See roms/README.md and discs/README.md.
CPC Lisp 0.99: FutureOS, string space, the classics
New in 0.99: CPC Lisp under FutureOS, more string space, and the classics
- CPC Lisp under FutureOS, TFM's operating system for the CPC (
cpclispfos.dsk). Start it from FutureOS's desktop on a 464, 664 or 6128 with a 512K RAM expansion: drive A's directory, tagLISP.64K, RUN.(reset)goes back to the desktop. It passed on a real 464 and 6128; seemach/futureos/README.mdand the video. - More string space on the 512K disc version and under FutureOS: 7.7 KB at start instead of 5.3 KB. A disc file's 2 KB buffer and the function editor's font copy now live in the expansion, and strings get a quarter of the heap. After a long session,
loadand(ed 'name)said "out of string space"; now they work. In return there are some 5500 cells, and the RAM disc is 16 KB smaller. - The classics discs, for the CPC and the TRS-80 Model I, III and 4: ELIZA, symbolic differentiation, the animal game that learns, Lisp in Lisp, Conway's Life, tic-tac-toe by minimax and SICP's Huffman codes.
(load "classics")lists them. - Benchmarks against the Lisps of the day -- muLISP, LinguaSoft/HiSoft Lisp, LISP/80, XLisp, UOLisp -- in
docs/benchmarks.md, with how to define a function in each, and their discs invintage/.
The ROMs are 0.98's but for the version.
All files are build 990:
- CPC ROMs: the six ROMs and
cpc-lisp-0.99.zip. Re-flash all six together. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk,cpclispfos.dskfor FutureOS, the ROMs' test disccpclisp-hwtest.dsk, the demo disccpclisp-demo.dskand the classics disccpclisp-classics.dsk. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4:
-model4.dsk/.hfefor a floppy, HxC or Gotek, and-model4-frehdfor a FreHD (copy it to the SD card ascpclisp4). - TRS-80 classics:
-classics-model1,-model3,-model4, as.dskand.hfe: a data disc for drive 1.
Tested in the emulators: the 464's suite (42 ok), the 6128's file tests (6), the 512K version (42), the plain 6128 version (40), the Model 4 (35), FutureOS on a 464 and a 6128 ((hwtest) 7 yes, the demos, the editor, a load), and the Model I's hardware test (8 yes). See roms/README.md and discs/README.md.
CPC Lisp 0.98: fixes from the real machines
New in 0.98: fixes found on the real machines (Mike's TRS-80 Model III and CPC 464):
compile-filewrote a quoted name of a compiled function, such as'compile, as an empty function. Loading the.fasfile then said "not a symbol"; the Apfelmännchen's did.- The function editor and string space: a new
(ed 'name)now lets the last edited text go when string space is short. Before, after a long session of editing and running programs it said "out of string space",(gc)or not.(ed)still reopens the last text as long as there is room. - The TRS-80's function editor drew its key line past the screen's last row, into the Model III's LDOS variables, which turned LDOS's clock on. The key line is on the last row now and names the TRS-80's keys: SHIFT down-arrow then S or C is done, SHIFT → indents the line, BREAK cancels.
- More string space on the TRS-80 Model I and III: 3/8 of the heap, about 6 KB free at start instead of 4 KB, for some 500 cells (about 2300 left).
- The Apfelmännchen is on every disc, the Model I's too:
(load "apfel"),(apfel).
All files (the same set as 0.97's):
- CPC ROMs (build 14193): the six ROMs and
cpc-lisp-0.98.zip. Re-flash all six together. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk, the ROMs' test disccpclisp-hwtest.dsk, and the demo disccpclisp-demo.dsk. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4:
-model4.dsk/.hfefor a floppy, HxC or Gotek, and-model4-frehdfor a FreHD (copy it to the SD card ascpclisp4).
Tested in the emulators: the 464's suite (37 ok), the 6128's file tests, the 512K version (37), the plain 6128 version (35), the Model 4 (30), and the Model I's hardware test (8 yes). See roms/README.md and discs/README.md.
CPC Lisp 0.97: the TRS-80 Model 4
New in 0.97: CPC Lisp on the TRS-80 Model 4, natively, with 128 KB under LS-DOS 6.3.1:
- 80 by 24 text.
- Graphics on the high-resolution board, 640 by 240: Radio Shack's, the Grafyx Solution, or Ian Mavric's Improved Grafyx.
- The Model III ROM's floats, the speaker, Talker/80, files through LS-DOS.
Tested on a real Model 4 with a FreHD, an HxC and the Improved Grafyx.
cpc-lisp-0.97-trs80-model4.dsk/.hfe: a floppy, or an HxC or Gotek. Boot it, give the date and time, typeLISP.cpc-lisp-0.97-trs80-model4-frehd: for a FreHD. Copy it to the SD card ascpclisp4, choose it in the FreHD's boot menu, typeLISP.
The Apfelmännchen: (load "apfel") (apfel). On the CPC it draws in mode 2, compiled; on the Model 4 on the hi-res board. It is drawn coarse to fine.
- On a CPC with the ROMs:
cpclisp-demo.dsk. - Also on every other disc here.
The CPC ROMs (build 1471) are 0.96's but for the version, and one change for the LambdaSpeak card: (basic) and |BOOTLISP now default to card slot 2, where tools/card.py puts the core. Before, they used slot 4.
All files:
- CPC ROMs: the six ROMs and
cpc-lisp-0.97.zip. - CPC discs: the disc versions
cpclisp512.dskandcpclisp6128.dsk, the ROMs' test disccpclisp-hwtest.dsk, and the demo disccpclisp-demo.dsk. - TRS-80 Model I and III:
-model1and-model3, as.dskand.hfe. - TRS-80 Model 4: as above.
See roms/README.md and discs/README.md.
Update, same day: the Model 4 files are build 2554, which fixes disc on the Model 4. Every sixth pixel row was left out, so the discs in (shapes) were striped. The rest of the release is unchanged.
CPC Lisp 0.96
CPC Lisp 0.96 -- the Lisp machine for the Amstrad CPC: from disc as well as from ROM, and programs bigger than memory.
CPC Lisp from disc -- no ROM board needed
RUN"LISP from a disc, in two versions built from the same sources:
| file | for |
|---|---|
cpclisp512.dsk |
a CPC 464, 664 or 6128 with a 512K RAM expansion that banks the DK'tronics way (Revaldinho's universal cards, the DK'tronics 512K, an X-MEM's RAM): all of CPC Lisp, the compiler too, and a 415 KB RAM disc M: in the expansion's free blocks |
cpclisp6128.dsk |
a plain 6128 (or a CPC with 64 KB more): everything but the compiler, no RAM disc, about 2400 cells |
Revaldinho's universal 512K card on a 464: DIP configuration 4 (switches 1234 = 0100, DK'tronics mode, all eight banks). Its shadow modes give bank 3 to the base RAM, and the loader then says "Banks of 64K that answer: 3".
Programs bigger than memory
(load "big" :lazy t)reads the file through once, but keeps nodefun: each function gets a stub that knows where its definition is, and its first call reads it from there. Only the functions a run uses take cells.- Dropping: when the cells run out, functions the library read from ROM -- and those loaded with
:lazy t-- are dropped again if nothing holds them, and read back on their next call. Every version gains, the ROMs and the TRS-80 too. - Far arrays live on the RAM disc, outside the cells:
(make-far-array "table" 20000),(far-ref a i)and itssetf,far-length,(far-array "table")to find one again after a reset. Numbers, characters or bytes, up to 65535 elements each, as many as the RAM disc holds -- on the ROMs, the 6128's second 64 KB or an expansion's; from disc with 512K, 415 KB; on a TRS-80, X-MEM/80's pages. - CL's
file-position.
Test discs for the real machine
Each disc has HWTEST.LSP: (load "hwtest"), (hwtest) says yes or NO to each check; after a reset, (hwtest2) checks what the RAM disc kept. cpclisp-hwtest.dsk is the one for the ROMs' use of a RAM expansion. All passed on a real 464 with Revaldinho's 512K card -- the 512K and 6128 disc versions and the ROMs -- and on a real TRS-80 Model III with X-MEM/80, the RAM disc past 256 KB included.
Fixed
- A file whose length was a multiple of 256 bytes -- an empty one too -- could not be closed on the 512K's and the TRS-80's RAM disc ("cannot write the file").
- An error from the RAM disc caught by
ignore-errorsleft the file buffer lent: the nextopensaid "a file buffer is in use already". - A file on
M:takes 512 bytes of string space while open, not 2 KB: a disc file and anM:file open together fit far more easily. - TRS-80: X-MEM/80 in its 32 KB (SuperMem) mode answers only 16 page numbers, and writing past them reset the machine into LDOS. The RAM disc now looks, and keeps to 112 KB then. Use the 16 KB (X-MEM/80) mode for all 367 KB.
The files
| file | what |
|---|---|
LISP.ROM ... LISPVM.ROM |
the six ROM images (build 1944), also in cpc-lisp-0.96.zip with their README and the licence: roms/README.md says where they go. All six must be from the same build |
cpclisp512.dsk, cpclisp6128.dsk |
CPC Lisp from disc (builds 1975, 2538) |
cpclisp-hwtest.dsk |
the ROMs' test of a RAM expansion |
cpc-lisp-0.96-trs80-model1.dsk / .hfe |
a TRS-80 Model I with X-MEM/80: LDOS 5.3.1, single density (JV1); tested in trs80gp |
cpc-lisp-0.96-trs80-model3.dsk / .hfe |
a TRS-80 Model III with X-MEM/80: LDOS 5.1.4, double density (JV3); tested on a real Model III with X-MEM/80, Talker/80 and MIDI/80 |
The .hfe files are for a Gotek or HxC. The discs are also in the repository's discs/. Tested in MAME on the 464 and the 6128 (the regression tests), in trs80gp, and on the real machines as above.
GPL-3.0; programs written in CPC Lisp are their authors' own.
CPC Lisp 0.95
CPC Lisp 0.95 -- the Lisp machine for the Amstrad CPC, now also on the TRS-80.
The TRS-80 Model I and III with X-MEM/80
The same six images, built from the same sources, run on a TRS-80 with the X-MEM/80 512 KB paged memory card, under LDOS: the screen, graphics in the 2 x 3 blocks, sound on the cassette port, floats through the Level II ROM, files through LDOS, a 367 KB RAM disc M: in X-MEM/80's spare pages, speech and singing through Talker/80, MIDI through MIDI/80.
| file | for |
|---|---|
cpc-lisp-0.95-trs80-model3.dsk / .hfe |
a Model III: LDOS 5.1.4, double density (JV3). Tested on a real Model III with X-MEM/80, Talker/80 and MIDI/80 |
cpc-lisp-0.95-trs80-model1.dsk / .hfe |
a Model I: LDOS 5.3.1, single density (JV1). Runs on a real Model I with X-MEM/80, MIDI/80, sound and Talker/80; in trs80gp: trs80gp -m1 -mem xmem80 -d0 cpc-lisp-0.95-trs80-model1.dsk |
Talker/80 on a Model I: reprogram its U1 first with Talker80-decoder-xmem.jed. The original Model I decoder answers ports 64-67 as well as 11, as the VS-100 does, and X-MEM/80's page registers are 65 and 66: every page switch would land in Talker/80 as text (why). The VS-100 and TRS Voice Synthesizer modes are unchanged; the Model III Talker/80 needs nothing.
The .hfe files are for a Gotek or HxC. Boot the disc, give LDOS the date (and on a Model I the time), and type LISP. X-MEM/80 must be in its X-MEM mode, not SuperMem. mach/trs80/README.md has the keys (SHIFT down-arrow composes ~ \ | [ ] { }...) and the rest.
Updated 2026-11-12: the TRS-80 discs (TRS-80 build 9066; the CPC ROMs are unchanged):
- SHIFT down-arrow, then S (CTRL-S) or C (COPY) finishes the function editor -- a TRS-80 has neither key, so
(ed ...)could only be left with BREAK, which drops the edit. SHIFT down-arrow then C is also COPY in the line editor, for the copy cursor. (reset)goes back to LDOS, as(quit)does: it used to hang.
Both are tested in trs80gp; Mike's Model I and Model III ran the build before, which differs only in these two.
New on both machines
- MIDI:
midi-note,midi-program,midi-control,midi-panic,midi-out-- out of the LambdaSpeak card's MIDI OUT on a CPC, MIDI/80's on a TRS-80 -- and the(midi-tune)demo, a minuet for harpsichord and cello. sleep;playworks out the periods and collects first, so no GC pause comes between the notes, and it takes an envelope.(basic)resets the CPC into BASIC, and|BOOTLISPfrom BASIC back into Lisp, through the card's slots -- no PC needed.- Fixed:
incf/decfpast 16383 overflow into floats (as+does) and take floats; reading the numbers 512-639 from a string or a file was a syntax error; a;comment now ends at CR as well as LF. - Everything machine-specific is now behind one interface (
mach/), for the ports to come: the ZX Spectrum 128/+2/+3, the TRS-80 Model 4, MSX1, the TA alphatronic PC and the Sharp MZ-700.
The CPC ROMs
The six ROM images (build 1797) as before, also in cpc-lisp-0.95.zip with their README and the licence: roms/README.md says where they go. All six must be from the same build. Tested in MAME on the 464 and the 6128, and on a real 464 with the LambdaSpeak 4 card.
GPL-3.0; programs written in CPC Lisp are their authors' own.
CPC Lisp 0.9
A Lisp machine for the Amstrad CPC
Six 16 KB ROMs that start a Lisp instead of BASIC: Common Lisp syntax, lexical closures, macros, a garbage collector, floats, graphics and turtle graphics, sound, files and a RAM disc, a line editor and a function editor -- and a bytecode compiler (compile, compile-file, disassemble).
Build 25063. Checked on a real CPC 464 (BASIC 1.0 and 1.1, with a RAM expansion) and in MAME on the 464 and the 6128.
Videos: A Modern Lisp OS for the Amstrad CPC -- Common Lisp in ROM! and CPC Lisp 0.9 Demos -- Turn your Amstrad CPC into a Lisp Machine!.
Download cpc-lisp-0.9.zip (all six ROMs, what each is and how to install them, the licence), or the ROMs one by one:
| image | what | needed? |
|---|---|---|
LISP.ROM |
the core: at ROM 0 the CPC boots into Lisp | yes |
LISPLIB.ROM |
library 1: screen, graphics, sound, strings, streams, files, editors | recommended |
LISPLIB2.ROM |
library 2: floats, format, sort, sequences, hash tables, structures, speech |
recommended |
LISPLIB3.ROM |
library 3: about eighty CL functions and macros in Lisp | recommended |
LISPDEMO.ROM |
loop, string streams, demo programs |
optional |
LISPVM.ROM |
the compiler and the bytecode machine | optional |
The core at ROM 0, the others at any free numbers from 1 to 6 (never 7, the disc ROM), all six from the same build. Any ROM box or ROM board takes them, or the LambdaSpeak 4 card. The details are in roms/README.md.
Read next: the tutorial, the reference, how it is made.
GPL-3.0. Programs you write in CPC Lisp are yours.