← Sun, Nov 8 digest

Playing Zork 1 on a CP/M emulator on Linux (2021)

read article ↗ hn thread ↗

Kevin Boone demonstrates how to build the z80pack emulator and cpmtools on Linux to run CP/M and play the text adventure Zork 1.

summary is enough The step-by-step guide is clear for retro enthusiasts, though simpler Docker-based alternatives exist for running CP/M software today.

summary

Kevin Boone demonstrates how to set up the z80pack Z80 emulator and cpmtools on Linux to run the CP/M operating system and play Zork 1. The tutorial covers compiling source code, creating virtual disk images, transferring program files, and resolving terminal backspace mapping issues. While purely for retro-computing education rather than practical necessity, it offers a hands-on introduction to CP/M environments.

key points

  1. Building z80pack from source is necessary since it is absent from standard Linux package repositories.
  2. Virtual hard disks can be created using cpmtools to store program files like ZORK1.COM and ZORK1.DAT.
  3. Terminal settings must be adjusted with stty erase ^H so the backspace key generates the Ctrl-H code expected by Zork.

who should read it

Retro-computing hobbyists and Linux enthusiasts interested in early operating systems and emulators.

discussion positive

consensus

Commenters appreciate the retro nostalgia and point out that modern alternatives like Docker-based emulators bypass the manual disk image setup.

best comment by stevekemp ↗

There's a simpler way now, I wrote a golang based CP/M emulator which uses the local filesystem, instead of "disks".

You can clone the repository, or run the docker image, and be playing zork in minutes - I even put together a repository containing a collection of vintage CP/M software (which includes Turbo Pascal, and Zork 1, 2, & 3).

Quick start:

docker run --pull=always -t -i ghcr.io/skx/cpmulator:master .. A> A>G: G>ZORK1

The emulator lives here https://github.com/skx/cpmulator

Collection of software, grouped by theme, here: https://github.com/skx/cpm-dist

It introduces a Go-based CP/M emulator that uses the local filesystem and Docker, bypassing the manual disk image setup described in the article.

Generated by an LLM from the article and thread. Check the sources before relying on it.