Yet another ZX Spectrum Emulator. Part of a project for an upcoming C++ talk.
- Pre-requisites: CMake, Ninja and a clang compiler newer than 20.
- On Ubuntu:
wget https://apt.llvm.org/llvm.sh; sudo bash llvm.sh 20 allwill get you clang and the things it needs.
- On Ubuntu:
- LibSDL's development headers and dependencies:
sudo apt-get install libsdl2-devon Ubuntu. - for the console app
libreadline-devtoo. - Build with cmake in your favourite way.
sudo apt install libc++-20-dev-wasm32 libclang-rt-20-dev-wasm32- Ensure you have a
nodeandnpminstalled. - also a newer WASI and point at it with
-DSPECBOLT_WASI_SYSROOT=...and configure with-DSPECBOLT_WASI_SDK - edit
web/.env.localand addVITE_SPECBOLT_WASI_SYSROOTto point at your cmaek build root - then run
npm startfrom thewebdirectory
Huge thanks to:
- Hana Dusíková for all the clever C++ stuff, and help with modules.
- blargg (aka Shay Green) for the band-limiting code used in the audio.