Playing Zork 1 on a CP/M emulator on Linux (2021) kevinboone.me · 13 points · 6 ...
HN Best 200 @best
Playing Zork 1 on a CP/M emulator on Linux (2021) kevinboone.me · 13 points · 6 comments · HN thread
TL;DR Kevin Boone's 2021 guide explains how to build the z80pack Z80 emulator and cpmtools on Linux, create CP/M disk images, and run Zork 1 under CP/M 3 via cpmsim. It also covers fixing the backspace key (ctrl-h versus DEL) that Zork requires. The article stresses there is no practical reason to do this beyond learning CP/M.
- z80pack is built from source with make -f Makefile.linux in the cpmsim/srcsim and srctools directories, then CP/M 3 is started with ./cpm3.
- cpmtools is built from source because the Fedora 31 repository version was unreliable; mkfs.cpm and cpmcp are used to create a 4MB hard disk image (drive I:) and copy ZORK1.COM and ZORK1.DAT onto it.
- cpmsim looks for disk images named drivea.dsk, driveb.dsk, etc. in ./disks; drives without images behave as empty.
- Zork requires ctrl-h for backspace, while Linux terminals send DEL (ASCII 127), so the author sets the Gnome terminal Compatibility tab and runs stty erase ^H.
- Zork's CP/M files are distributed without an official source because the legal status of Infocom's games is unclear, so the author does not host them.
- The article notes that screen-based CP/M apps such as WordStar raise terminal-emulation issues, and that z80pack passes output straight to the host terminal, usually a VT100 or VT52 mode.
Discussion The thread is short and mostly nostalgic and practical. Commenters mention alternative ways to run CP/M and Zork, including a Go-based emulator and a Docker image, and one person describes keeping a Kaypro II running in a garage. A separate subthread tests an AI-illustrated web version of Zork and finds it inconsistent with the original game. The mood is friendly, with a bit of skepticism about newer remakes.
- Simpler modern CP/M emulators are the better route (some): stevekemp points out that his Go-based cpmulator uses the local filesystem instead of disk images, so Zork can be run in minutes with Docker. He also links a collection of CP/M software that includes Turbo Pascal and Zork 1 to 3.
- Real vintage hardware is still worth keeping (a few): lrvick keeps a Kaypro II running in a garage to demonstrate Zork on a small green-screen luggable machine. This is a nostalgic, hands-on view rather than a technical one.
- Classic Zork is better played in a proper interpreter (a few): jmclnx notes that frotz runs Infocom Z-machine games on Linux and BSD and links an archive of Infocom game files, so the CP/M route is not needed for playing the game.
- AI remake of Zork is inaccurate (a few): vunderba tested a web-based AI-illustrated Zork and found the tree-climbing scene shows the wrong location and architecture, questioning whether the project was tested at all.
- Played it on MS-DOS or DOSBox (a few): linuxkernal says they played the game on MS-DOS and in DOSBox, a first-hand report that treats the game as a PC classic rather than a CP/M one.
Links from the comments
- Go-based CP/M emulator that uses the local filesystem instead of disk images.
- Collection of vintage CP/M software grouped by theme, including Turbo Pascal and Zork 1 to 3.
- Archived page listing sources for Infocom games, linked by jmclnx.
- Web-based AI-illustrated version of Zork, discussed as inaccurate in the thread.