I have a few old programs/games which I'd like to run today. As there is Wine for running Windows programs, I wondered if there is a compatibility layer for CP/M. Obviously it would need to implement some kind of Z80 emulation too. Output would ideally be to the console so something like a ZX Spectrum emulator is not what I'm looking for.

I have a computer running a recent Linux. Happy to compile the thing myself if need be.


jhallen/cpm is pretty close to a compatibility layer via emulation. It runs in a terminal and maps the current CP/M drive to the current Linux directory.


There are numerous Z80 simulators out there. The Z80 simulator community is robust and mature.

Z80Pack is a solid first one stop shopping place to get started, but there are lots of others.


Because you're running code for a different CPU family (8080/Z80) as opposed to running code compatible with the CPU you are actually running, a compatibility layer will not do. You need to emulate.

Depending on your primary operating system, there are several different CP/M emulators available. This answer on another Stack site discusses a good choice if you want to run under Linux, for example.


You can take a look at my project RunCPM. Just go to https://github.com/MockbaTheBorg/RunCPM It builds on Windows, Linux, Mac, Arduino (DUE), etc. It doesn't require a disk image, keeping all the files on the host operating system filesystem, which makes things easier, I believe. Feel free to give it a try. I would love to hear back with test results.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.