-
Notifications
You must be signed in to change notification settings - Fork 36
/
README-cpm.txt
86 lines (71 loc) · 3.09 KB
/
README-cpm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Quickstart to run CP/M and MP/M on the Z80-CPU simulation
z80pack uses GNU make, so you must use "gmake" on BSD systems wherever
"make" is used in the following text.
1. Change to directory ~/z80pack-x.y/cpmsim/srcsim
make
make clean
This compiles the CPU and hardware emulation needed to run CP/M and MP/M.
2. Change to directory ~/z80pack-x.y/cpmsim/srctools
make
make install
make clean
This compiles and installs additional support programs, see below.
3. Make backup copies of your distribution disks!
cd ~/z80pack-x.y/cpmsim/disks/library
cp -p *.dsk ../backups
4. Change to directory ~/z80pack-x.y/cpmsim
./cpm22 - run CP/M 2.2
./cpm3 - run CP/M 3.0
./mpm - this boots CP/M 2, run command mpmldr to boot MP/M 2
The CP/M program bye.com is included on all disk images and is used
to terminate the emulation.
Usage of the support programs:
mkdskimg:
to create an empty disk image for the CP/M simulation.
input: mkdskimg <a | b | c | d | i | j | p>
output: in directory disks files drivea.dsk, driveb.dsk,
drivec.dsk, drived.dsk, drivei.dsk, drivej.dsk
and drivep.dsk.
If directory disks doesn't exists the image files
are created in the current working directory.
bin2hex:
converts binary files to Intel HEX.
cpmrecv:
This is a process spawned by cpmsim. It reads input from
the named pipe auxout and writes all input from the pipe to the
file, which is given as first argument. cpmsim spawns this process
with the output filename auxiliaryout.txt. Inside the simulator
this pipe is connected to I/O-port 5, which is assigned
to the CP/M device PUN:. So everything one writes from CP/M
to device PUN: goes into the file auxiliaryout.txt on the
host system.
cpmsend:
This program is used to send a file from the host to the
simulator. Type cpmsend <filename> &, and then run cpmsim.
The process writes all data from file into the named pipe
auxin, which is also connected to I/O-port 5, which is
assigned to the CP/M 2 device RDR:. One may use this to
transfer a file from the host system to the simulator.
Under CP/M 2 type pip file=RDR: to read the data send from
the process on the UNIX host. Under CP/M 3 the device name
is AUX: for both directions.
If one uses PIP to transfer files between the host system and the
simulator, only send ASCII files, because pip uses CTRL-Z
for EOF! To transfer a binary file from the host system to the
simulator convert it to Intel HEX format with bin2hex. This
can be converted back to a binary file under CP/M with the LOAD
command.
Copy both shell scripts cpmr.sh and cpmw.sh to ~/bin
or /usr/local/bin. Edit the line with:
diskdir=~/z80pack-x.y/cpmsim/disks
to the path where you have extracted the z80pack distribution.
cpmr:
Uses cpmtools to read a file from a CP/M disk image.
Usage: cpmr [-t] drive [user:]file
Option -t does the text file conversions between UNIX
and CP/M for text files. The user number 0-15 is optional.
cpmw:
Uses cpmtools to write a file to a CP/M disk image.
Usage: cpmw [-t] drive [user:]file
Option -t does the text file conversions between UNIX
and CP/M for text files. The user number 0-15 is optional.