Disk images and scripts for AltairDuino
I'm using Ubuntu 20.04 as my workstation. If you use a different OS, you may need to do different things.
First, make a new directory for your work. I use /opt/cpm, but it's up to you. Next, at least for Ubuntu, install the build packages (build-essential, make, etc). The cpmtools package is broken in 64 bit Ubuntu 20.04. Use the source in this repo, and make a default build. Binaries will be in /usr/local. Add the diskdefs.add text to the end of /usr/local/share/diskdefs to define the AD hard disk. The format will be "AltairDuino-cpm22". You'll need this for cpmls, cpmcp, etc.
The scripts here are pretty simple, but save me a few keystrokes. ;)
The emulator and cpmtools source, as well as the diskdefs addition are in the util directory.
- Create working dir for files
- Copy cpm2, cpm2.dsk, and source disk to working dir
- Edit cpm2 to attach new disk
- Run "altairz80 cpm2" from working to access disk
- Use W to copy files to linux
- Remove cpm2. cpm2.dsk, and source disk from working dir
- Copy ad-hdsk-sparse.dsk to new disk file (ex. HDSK0F.DSK)
- From working dir, run "../cp-to-hdsk.sh HDSKxx.DSK"
- Copy new HDSKxx.DSK to sd-card
- Run "fromdos HDSKDIR.TXT" to set unix line endings
- Edit HDSKDIR.TXT to add description
- Run "todos HDSKDIR.TXT" to set proper line endings
- Finished - Put the sd-card in Altair-Duino and enjoy
The sample directory contains an example of what you would have after step 8.
The "original" directory contains the disks from Chris Davis' repo as of Feb 22 2021.
The "extra" directory contains new disks as I create them.
The cpm2 and cpm2.dsk files in cpm-system are from the AltairZ80 project, and are used with the emulator to run a host OS for new disks.