Skip to content

Develop for the ZX Spectrum and Next

Write, assemble, compile, run and debug Z80 code and ZX BASIC in one app. No toolchain to wire up.

Other platforms

At a glance

Get it

Version 0.70.0 for macOS, Windows and Linux. Free and open source under the MIT licence.

Write in

Z80 assembly, ZX BASIC and C. Klive works with sjasmplus, Boriel BASIC, z88dk and PASTA/80.

Machines

ZX Spectrum48K, 128K, +2A/+3, +2E/+3E
ZX Spectrum Next
ZX80, ZX81
ClonesPentagon, Scorpion, Timex
Cambridge Z88
HT-1080Z
Videoton TVC64K, 64K+
Enterprise64, 128
SAM Coupé256K, 512K

Also included

  • Record the emulator and the IDE as video
  • Script the IDE and your builds
  • Unit tests, code coverage and a profiler
  • NextZXOS boots from an emulated SD card
  • Sprite and palette editors

Write, build, run, debug

WriteBuildRunDebug
An editor that knows Z80Completion, hover and rename from the real compiler.Assembler built in, BASIC includedBASIC with Boriel BASIC (beta). Or sjasmplus, z88dk and PASTA/80.One click to the emulatorKlive builds, loads and starts your code.See inside the machineBreakpoints, stepping, registers and memory.

What Klive does

Editor, emulator and debugger together

Pick a template for the 48K, 128K, +3E, Next or Z88 and press Run, with no assembler, emulator or debugger bridge to configure by hand.

  • Compile, inject, run and debug with one click
  • Project templates for every machine
  • Works with sjasmplus, Boriel BASIC, z88dk and PASTA/80 when you want them

Step through your BASIC, line by line

ZX BASIC programs built with Boriel BASIC, the compiler that comes with Klive (in beta), debug at the source level: breakpoints on statements, Step Over and Step Into, a real call stack, live variables and stops on runtime errors.

  • Comes with Klive and installs on the first start
  • Modules in their own RAM banks on the 128K and the Next
  • Breakpoints and stepping across the banks, too

Go back in time

Step back through every instruction, with memory, devices and the screen restored. Find the last write to a byte, or continue from any point in the past.

  • On every Z80 machine Klive emulates
  • Every breakpoint works backwards too
  • Debug recordings: send the bug, not a description

Tested against real hardware

Klive's 48K and 128K run the community's timing test programs, whose expected results come from real machines, and show each result beside a photo of the real thing.

  • ZX Spectrum Timing Tests 48K: 100% pass
  • HALT2INT matches real early and late 48Ks
  • Snow and late ULA timing emulated

Speaks Next natively

Break when a program writes a Next register, filtered by value and mask. Set breakpoints on banks rather than addresses, and build .nex files with palettes, Copper lists and loading bars.

  • Live views of the sprites, the Copper and the video layers
  • Sprite and palette editors
  • NextZXOS boots from an emulated SD card

Install Klive

Free for macOS, Windows and Linux. The tutorial then takes you from a first program to debugging Z80 assembly and BASIC.