CP/M-80 2.2 emulator with API
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
From the command line:
$ cpm80 -c dir 'save 1 a.dat' dir
Alternatively, we can use the API's StringKeyboard
class to
feed arbitrary commands to the command processor, CCP.
import cpm80
COMMANDS = (
'dir',
'save 1 a.dat',
'dir',
)
console_reader = cpm80.StringKeyboard(*COMMANDS)
m = cpm80.I8080CPMMachine(console_reader=console_reader)
m.run()
Output:
A>dir
NO FILE
A>save 1 a.dat
A>dir
A: A DAT
A>
Project details
Release history Release notifications | RSS feed
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.0a3.tar.gz
(10.5 kB
view hashes)