RIDE51

A retro development environment for MS-DOS, ZX Spectrum and Amstrad CPC.

An IDE, three emulators and a compiler, made to work together: write your program, build it with the compilers of the time and debug it line by line inside the emulator.

Latest: RIDE51 0.12.0, 2026-12-04

Windows 10+ and Linux, x64 · free and open source (MIT) · portable: one folder

RIDE51 debugging a C program for MS-DOS, stopped at a breakpoint
A C program for MS-DOS (DJGPP) stopped at a breakpoint in the middle of the fire: source, screen, variables and CPU side by side.

Why

Writing a program for these machines today means putting together an editor, a cross compiler, an emulator and, with luck, a debugger, each from somewhere else and none aware of the others. When something goes wrong you are back to guessing. RIDE51 is that one tool, with the comfort of a modern IDE and the look of the ones of the time.

One piece

IDE, emulators and compiler written together, from scratch, with no third-party libraries and no external emulators.

Debug at source level

Breakpoints, watches, the call stack, registers and memory, inside the emulator, on your C, assembly or Z51 lines.

Exact emulators

The Spectrum and the CPC exact to the T-state; a 386/486 PC with SVGA, Sound Blaster and a DOS of its own.

The real compilers

Open Watcom, DJGPP, NASM, SjASMPlus, z88dk and Z51, downloaded and installed from the IDE itself.

A modern editor

Completion, parameter info, go to declaration, find in files, multiple carets, built-in help on F1.

Retro or modern

A text-mode look like the IDEs of the early nineties, or a modern dark or light one.

RIDE51 in the retro style debugging a C program for the ZX Spectrum
The retro style: a C program for the ZX Spectrum (z88dk), stopped on line 59.

Debugging, for real

The emulators speak a debugging protocol of their own to the IDE, so the program runs at full speed until it has to stop.

  • Breakpoints on lines, addresses, data reads and writes, I/O ports and interrupts
  • Conditions and hit counts checked by the emulator as it runs
  • Tracepoints: log values without stopping
  • Variables and watches with their types, edited in place
  • Step into, over and out; the T-states of each line in the margin

Three emulators

Each one also works on its own, for any program or game.

zx51ZX Spectrum: 48K, 128K, +2, +2A, +3, Pentagon and Inves. Contended memory, the floating bus, the picture drawn line by line; tapes, disks and snapshots, with instant loading.
cpc51Amstrad CPC 464 and 6128, with the five CRTC types as each behaves: rasters, splits and hardware scrolling as on the real machine.
dos51An MS-DOS PC: 386 or 486, CGA, EGA, VGA and VESA SVGA, Sound Blaster and AdLib, EMS, XMS and DPMI. Runs DOS/4GW, DJGPP and PMODE/W programs on its own DOS; no MS-DOS needed.

Z51

A language designed for the Z80, rather than a general one carried to it. One source can build for the Spectrum and the CPC.

  • No hidden cost: every construct has one good translation to Z80 code
  • The machine within reach: parameters in registers, mem[addr], interrupt functions, inline assembly
  • Costs in sight: the editor shows each line's T-states as you type
  • A full toolchain: its own assembler, optimizer and debug information; tapes, snapshots and disks
// a hit test: x in B, y in C, the answer in the zero flag
fn hit(x: byte in B, y: byte in C): bool in zero { ... }

// parameters that live in the instructions themselves
asm fn fill(dst: *byte in HL, count: byte imm, value: byte imm) {
    ld b, count        ; the call writes this operand
loop:
    ld (hl), value     ; and this one
    inc hl
    djnz loop
    ret
}

// a ball one step on, the same source for both machines
fn move(b: *Ball) {
    if b->right {
        if b->x >= RIGHT_EDGE - (ScreenX)b->speed_x {
            b->right = false
        } else {
            b->x += (ScreenX)b->speed_x
        }
    }
    ...
}

Get it

Download, unpack anywhere and run. The compilers install from Tools ▸ Platforms and tools; the Spectrum's and the CPC's ROMs come with it, by Amstrad's permission.