divMMC¶
The divMMC is an SD card interface for the ZX Spectrum 48K, 128K, +2, +2A and +3. The
Pentagons take it on their ZX-BUS. The emulated board follows Mario Prato’s original design,
on which the boards sold since then, such as the DivMMC EnJOY!, are built. It has 8K of
EEPROM for the firmware, 128K or 512K of RAM, and two SD card slots. Its SD card port has a
clock of its own, so the card works at any usual CPU speed. Its firmware is esxDOS, which
loads .tap, .sna, .z80 and .trd files from the card and adds dot commands to BASIC.
esxDOS 0.8.5 to 0.9.0 come with the emulator, by permission of its authors, Papaya Dezign.
The newest of them is in the board’s EEPROM from the start.
Setting it up¶
Switch the board on with Media > divMMC, or set the SD card row to divMMC on the Machine page of Options. The
gear opens
Machine: divMMC:RAM - 128K or 512K.
EEPROM writable - the board’s EEPROM jumper. Leave it off. If it is on, the Spectrum can write new firmware into the EEPROM, and the firmware does not start at a reset.
Firmware - what the EEPROM holds: one of esxDOS 0.9.0 to esxDOS 0.8.5, (erased), or Custom for anything else, with the esxDOS version in it if it has one. The
button picks a firmware file. Apply writes the
choice into the EEPROM. Before it replaces a Custom firmware, which may exist only
in the EEPROM, it asks you.
Make a card. Media > divMMC has a menu for each slot, Card 1 and Card 2, with the name of the card in it. New esxDOS Folder… asks for a folder: an empty one, or a new one you make in the same window. It copies into it the
SYSandBINfolders of the esxDOS release that the EEPROM holds, addsTMP, puts the folder in the slot and powers the machine off and on. If the EEPROM holds no bundled release, it asks which one to copy. esxDOS starts from the card. Put your programs into the folder.Or use a card of your own. Each slot’s menu also has Open Image…, Open Folder…, Eject, Refresh and Write Protect, as the ZX Evolution’s card has. esxDOS needs an image with an MBR and one FAT16 or FAT32 partition, or a folder. The card must hold the
SYS,BINandTMPfolders of the same esxDOS release as the EEPROM. esxDOS 0.8.x takes them from card 1 without a check, and with another release’s folders it hangs or fails in odd ways. 0.9.0 checks them: it skips a card with another release’s folders, starts from card 2 if that card has its own, and shows[ERROR]if no card has them. If a folder used as a card holds a bundled release that the EEPROM will not start from, Xpeccy+ says so in a window after the machine is switched on.
To put in another esxDOS version, or a firmware of your own, use the
button, or flash it the way the real board is flashed: turn EEPROM writable on, load
the flasher, such as ESXMMC.TAP, and follow it. Then turn the option off and use
Machine > Reset > Hard Reset. The Firmware row then shows what was flashed. If the
EEPROM is erased and the option is off, the machine stops at its first interrupt, as it
does with a real board that has no firmware.

A real board is fitted and removed with the power off, and so is this one. If you change the SD card row, RAM or Firmware, Apply powers the machine off and on. There is only one board, as if the same board went from machine to machine. The RAM size and the EEPROM jumper are set for each machine, but the EEPROM is the same on all of them, and it is kept for the next start of the emulator.
esxDOS looks for the card and loads its system files only when the machine is switched on. If you put a card in later, or change it, esxDOS sees it after Machine > Reset > Hard Reset. A Hard Reset also reads a folder used as a card again, with the files copied into it since. If esxDOS started with no card, it ignores the NMI button until then. A plain reset is not enough: the firmware then skips the search and keeps what it found before.
Switching it on and off¶
Media > divMMC switches the board on and off in one go. It is in the right-click menu too. It can also be a toolbar button (a click switches the board, and its arrow lists the cards) or have a hotkey (divMMC On/Off). While the board is on, divMMC is a menu: the same item, ticked, to switch the board off, then Card 1 and Card 2. It works as the SD card row of Options does: the machine is powered off and on, and the setting belongs to the machine and is kept for the next start. On a Pentagon, a Z-Controller comes out when the divMMC goes in: only one SD card board at a time. Because what is in the machine’s memory is lost, a window asks first. The board’s RAM, its jumper and its EEPROM stay as they were.
While the board is on, the floppy drives and the hard disk are out of the machine: the board takes the TR-DOS entry, so on a real machine the drives would sit there unused. Their lights in the status bar are dim and struck through. The Disk Manager and Drives menus show the drives grayed out, under a line that says why. Options shows Floppy disk and Hard disk dimmed, and the board’s row as SD card (!), with a tip that says why. Nothing is ejected: switch the board off, and the drives come back with their disks. If you open a disk while the board is on, Xpeccy+ asks to switch the board off first.
Which esxDOS¶
The releases differ mostly in their TR-DOS emulator, which runs .trd images from the
card:
0.8.5 - the first with the TR-DOS emulator.
0.8.6 - TR-DOS Navigator boots a disk with no boot file, Beta 48 support, the
.128command.0.8.7 - saving the EEPROM to the card works, Headball GS loads.
0.8.8 -
SAVE ... BIN,GO TOwith a string variable, no parity check when loading.tapfiles, the NMI silences the sound chips.0.8.9 -
.sclimages, TR-DOSMOVEandFORMAT, and a fix for a full card whose root folder got damaged.0.9.0 - long file names up to 65 characters, in
.lsand in the NMI browser; the BASIC commandsNEW,COPY,MOVE,FORMATand streams withOPEN #; wildcards; the tape emulator of esxDOS 1.x; FAT fixes; the system commands moved toSYS/BIN. It checks the card’s system files against itself (see above).
Each release’s own README.TXT is in config/esxdos/<version>/.
Using it¶
The firmware starts on every reset, then goes to 48K BASIC. Type
.lsto list the files on the card and.cdto go into a folder. The dot commands are the files inBIN, and in 0.9.0 also those inSYS/BIN.Machine > NMI (Shift+F10 in the Modern preset, F10 in the Classic one) is the board’s NMI button: esxDOS opens its file browser.
A folder used as a card takes what esxDOS saves, unless folders are set to read only (see Writing to a folder). In that case esxDOS reports
I/O ERRORwhen it tries to write.Machine > Reset (the plain one) is the board’s reset button, with one difference from the original board: it also clears the board’s MAPRAM setting, as the ZX Spectrum Next’s board does. On the original, only the power clears it. If a program crashes into setting it (holding BREAK during a load from the card is one way), the machine shows garbage or stays stopped until it is switched off. Here a reset brings the firmware back, warm: esxDOS keeps what it had, including a tape attached in its browser, and goes straight to 48K BASIC. After
ESXMMC.TAPhas flashed the EEPROM, the firmware runs from a copy in the board’s RAM until that reset.Machine > Reset > Hard Reset is the power switch: the board’s RAM goes with the machine’s, and esxDOS starts cold, with its logo and the card read again.
On a Pentagon whose plain reset starts Gluk Reset Service, as the Pentagon 1024 SL’s does, the plain reset starts Basic 128 while the board is on, because Gluk and the divMMC do not work together (see Reset).
While the board is on, a tape opened to be run (Run a program) starts after a Hard Reset, so that a tape attached in esxDOS does not take the
LOAD ""instead. The keys are typed into the 48K BASIC that the firmware leaves the machine in. A disk opened to be run cannot start: the drives are out while the board is on, so Xpeccy+ offers to switch the board off first. A.trdon the card starts from the esxDOS browser.While esxDOS reads the card, the window title shows the card’s image file or folder, as it shows a disk while its drive runs.
esxDOS runs in 48K BASIC. 128 BASIC and +3 BASIC stop working with the board on, as they do on the real one.
On a machine with a Beta Disk, the board answers the calls to TR-DOS (
#3Dxx) first:RANDOMIZE USR 15616starts the TR-DOS that esxDOS runs on the card’s.trdimages, not the machine’s own. Then Machine > NMI is the board’s button, not the machine’s own.A snapshot saved as SZX keeps the board’s state. Other formats leave it out.