Busch Microtronic 2090 and Kosmos CP1 in MAME

Both are also on the software projects page.

MAME already had drivers for two German educational computers of the 1980s: the Busch Microtronic 2090 (by hap) and the Kosmos CP1 (by Sandro Ronco, until now marked "not working"). Both run the original firmware ROMs. I have extended them:

Both changes are submitted to MAME as pull requests: Microtronic, #16964 and Kosmos CP1, #16967. Once they are merged, they will be part of the regular MAME releases, with nothing to build. Until then, you can build them yourself from my MAME fork, as described below.

The CP1 driver was checked instruction by instruction against my Kosmos CP1 browser emulator: about 12.6 million instructions in six test scenarios, with the same results.

The Busch Microtronic 2090 in MAME, counting: the display shows 9, the output LEDs 1 and 4 show it in binary
The Busch Microtronic 2090 in MAME, counting: the display shows 9, the output LEDs 1 and 4 show it in binary
The Kosmos CP1 in MAME with its I/O module: a running light on the Port 2 LEDs, switches 2 and 7 down
The Kosmos CP1 in MAME with its I/O module: a running light on the Port 2 LEDs, switches 2 and 7 down

Building

Each machine is on its own branch of my fork, lambdamikel/mame: mt2090-quickload for the Microtronic and kosmos-cp1 for the CP1. The commands below build a small MAME for each machine instead of the whole of MAME. The first build compiles MAME's core and takes a while; the second machine reuses it and is quick.

Linux (Debian, Ubuntu, Raspberry Pi OS)

Install the build tools and libraries:

sudo apt-get install git build-essential python3 libsdl2-dev libsdl2-ttf-dev libfontconfig-dev libpulse-dev

Get the source and build the Kosmos CP1 (this gives the program ./cp1):

git clone --depth 1 -b kosmos-cp1 https://github.com/lambdamikel/mame.git
cd mame
make -j$(nproc) USE_QTDEBUG=0 SUBTARGET=cp1 SOURCES=src/mame/skeleton/cp1.cpp

Then the Microtronic, in the same folder (this gives ./mt2090):

git fetch --depth 1 origin mt2090-quickload
git checkout FETCH_HEAD
make -j$(nproc) USE_QTDEBUG=0 SUBTARGET=mt2090 SOURCES=src/mame/handheld/hh_tms1k.cpp

USE_QTDEBUG=0 leaves out MAME's Qt debugger, so Qt doesn't need to be installed.

Windows and macOS

MAME builds there too, with more setup: see Compiling MAME in the MAME documentation. Get the source as above, and use the same make commands with their SUBTARGET and SOURCES settings.

ROMs

As with every machine in MAME, the firmware ROMs are not included. Put them in a folder roms next to the program, or point MAME to them with -rompath:

Machine Folder or zip File CRC
Microtronic roms/mt2090/ tms1600nll7574 dcd56aa0
Kosmos CP1, mask ROM roms/cp1/ cp1-kosmos-b.rom fea8a2b2
Kosmos CP1, EPROM version roms/cp1/ cp1-2716.bin 3a2caf0e

For the Microtronic, MAME warns that two PLA dumps are missing and that the machine "might not run correctly". That is expected; it runs fine.

Running

./mt2090 mt2090 -window
./cp1 cp1 -window

If you have the CP1's EPROM version (cp1-2716.bin), add -bios 2716. Adding -confirm_quit makes MAME ask before Esc closes it.

The keypads are drawn on screen and can be clicked with the mouse, or used from the PC keyboard (see below). Tab opens MAME's menu. Input Assignments (this System) lists every key, and Machine Configuration holds the machine's options. F3 resets the machine.

Loading programs

Programs are plain-text files. Load one with Tab → File Manager → quickload, or on the command line with -quik <file>.

Keys: Busch Microtronic 2090
Microtronic PC key
0–F 0–9, A–F (digits also on the number pad)
HALT, NEXT, RUN H, N, R
PGM, STEP, REG, BKP P, S, G, K
C/CE Delete or Backspace
Buttons G, H Left Ctrl, Left Alt
Reset F1

Machine Configuration connects each of the four outputs to a piezo buzzer, and each of the four inputs to a fixed level, button G or H, one of the outputs, or the 1 Hz clock.

Keys: Kosmos CP1
Kosmos CP1 PC key
0–9 0–9 (main row)
INP, OUT I or Enter, O
PC, ACC P or C, A
RUN, STP, STEP R, H or B, S
CLR Delete or Backspace
CAL, CAS L, K
Port 1 switches 1–8 number pad 1–8, or click them

Machine Configuration has three options:

Credits

The mt2090 driver is by hap, the cp1 driver by Sandro Ronco. The extensions are by Michael Wessel, made with Claude Code (Claude Opus 5.5).