Skip to content

Building ZX Spectrum disks

Uto edited this page Apr 12, 2020 · 8 revisions

You can create different packages for ZX Spectrum, depending on target:

Spectrum +3

For Spectrum +3 you should create a Spectrum .DSK file with the following:

  • An interpreter, either English (DS48IE.P3F) or Spanish (DS48IS.P3F) one.
  • A DDB file
  • A SDG file with vectorial graphics (if any) and character set.
  • A Spectrum .SCR file to use as loading screen.
  • A BASIC loader.

The BASIC loader should be something like this:

10 CLEAR 24575: LOAD "DAAD.SCR" $SCREENS: LOAD "CHARSET.SDG" CODE XXXXX
20 LOAD "DS48IE.P3F" CODE 24576: LOAD "DAAD.DDB" CODE 33792: RANDOMIZE USR 24576

That will load screen named DAAD.SCR, then CHARSET.SDG file, then English interpreter DS48IE.P3F, and finally DAAD.DDB database before execution. If you don't need a loading screen just don't add the SCR file to disk and remove the LOAD $SCREENS part.

Please notice the SDG file is loaded at address XXXXX. That value should be replaced to 65536 - so if SDG file is 2038 bytes long then XXXXX = 65536-2038 = 63498.

It's highly recommended you save that loader with name "DISK" and autorun, so it's loaded automatically from the LOADER option in the +3 menu.

SAVE "DISK" LINE 10

Of course, you should add to the disk the .ZXS files if you are using XPICTURE, and/or file 0.XMB if you are using XMESSAGES. Take in mind a +3 disk holds a maximum of 64 files. Make sure the .ZXS and 0.XBM files are added headerless, and on the other side the DDB file has a +3DOS header (DRC will add it for you with parameter -3h if you ask for it).

As all this is a bit complicated, follow this link to find two premade disk which only expect you to add the DDB file as DAAD.DDB, and replace the SCR file if you want (make sure you add a SCR file with +3DOS header).

Spectrum with DivIDE/MMC and ESXDOS

ESXDOS is an OS for DivIDE and DivMMC devices for ZX Spectrum, it can handle an SD card with folders, so the most common way to distribute a game for ESXDOS would be providing a zip file. Also ESXDOS is able to load .tap files, so a good way, although not very elegant, to provide a game using Maluva is as a .TAP file, bundled with the .ZXS files if you use XPICTURE, and 0.XMB file if you use XMESSAGE.

To generate the .TAP file we will used DAADMAKER, a tool bundled with DRC compiler, and use the following order:

daadmaker mygame.tap DS48IE.P3F DAAD.DDB 

Of course you can used DS48IS.P3F instead if you want the spanish interpreter.

Once you have the .tap file just bundle it with the ZXS or XMB files if required.

You will find the interpreters files following this link.

Spectrum Next

Spectrum Next is ESXDOS compatible, so basically the procedure is the same than DivMMC/IDE one. Just make sure you use the DDB file generated with target "zx" and subtarget "next" in DRC.

ZX-Uno

ZX-Uno is ESXDOS compatible, so basically the procedure is the same than DivMMC/IDE one. Just make sure you use the DDB file generated with target "zx" and subtarget "uno" in DRC.

Clone this wiki locally