autoLoadTapes: if true, any tape files opened (either manually or through the openUrl option) will be loaded automatically without the user having to enter LOAD "" or select the Tape Loader menu option.Bear in mind that browser policies usually don't allow enabling audio without a user interaction, so if you enable this option (and don't put the JSSpeccy call behind an onclick event or similar), expect things to be silent. autoStart: if true, the emulator will start immediately with no need to press the play button.In the of your HTML page, include the tag wasm files and the subdirectories in the same place relative to jsspeccy.js.
To include it in your own site, download a release archive and copy the contents of the jsspeccy folder somewhere web-accessible. JSSpeccy 3 is designed with embedding in mind. If there's a feature you need in the project - feel free to fork. Managing external contributions is often the point at which a "fun" project stops being fun. I'm always happy to hear of other people getting similar enjoyment from hacking on the code, and pull requests are welcome, but I can't promise to review them or shepherd them into an "official" release on any sort of timescale. This is a personal project, created for my own enjoyment, and my act of publishing the code does not come with any commitment to provide technical support or assistance. These days, releasing open source code tends to come with an unspoken social contract, so I'd like to set some expectations. The emulation runs in a Web Worker, freeing up the UI thread to handle screen and audio updates, with the emulator core (consisting of the Z80 processor emulation and any auxiliary processes that are likely to interrupt its execution multiple times per frame, such as constructing the video output, reading the keyboard and generating audio) running in WebAssembly, compiled from AssemblyScript (with a custom preprocessor). JSSpeccy 3 is a complete rewrite of JSSpeccy to make full use of the web technologies and APIs available as of 2021 for high-performance web apps.
Loads any of the above files from inside a ZIP file.Loads TZX and TAP tape images (via traps only).Cycle-accurate emulation of scanline / multicolour effects.Handles all Z80 instructions, documented and undocumented.Emulates the Spectrum 48K, Spectrum 128K and Pentagon machines.A ZX Spectrum emulator for the browser Features