Skip to main content

CP/M-80 emulator

Project description

cpm80

CP/M-80 2.2 emulator with Python API.

Based on the fast and flexible z80 emulator.

Installing

$ pip install cpm80

Running and terminating

$ cpm80

A>save 1 dump.dat
A>dir
A: DUMP     DAT
A>^C
A>^C
A>

Press Ctrl + C three times to exit.

Running commands automatically

Using the StringKeyboard class we can automatically feed commands to the command processor, CCP.

import cpm80

COMMANDS = (
    'dir',
    'save 1 a.dat',
    'dir',
    '',  # Empty line to see the output of the last 'dir'.
    )

console_reader = cpm80.StringKeyboard(*COMMANDS)
m = cpm80.I8080CPMMachine(console_reader=console_reader)
m.run()

string_keyboard.py

Output:

A>dir
NO FILE
A>save 1 a.dat
A>dir
A: A        DAT
A>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpm80-1.0a2.tar.gz (10.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page