The Next’s SD Card
The ZX Spectrum Next boots NextZXOS from its SD card, and everything a Next program loads at run time (NEX files, screens, data, its own saved files) is on that card too. In Klive the card is an image file on your computer. This page shows where the image is, how to use another one, and how to move files between it and your computer.
Applies to: ZX Spectrum Next.
The default card
On first use of a Next model Klive makes a card with that model’s NextZXOS on it in the
Klive folder in your home folder (~/Klive on macOS and Linux). Each model has its own default card,
so switching models never boots NextZXOS from a card of another release:
| Model | Default card | NextZXOS |
|---|---|---|
| ZX Spectrum Next (KS2, core 3.02.01) | ks2.cim | 2.08 |
| ZX Spectrum Next (KS2, core 3.02.04) | ks2-30204.cim | 2.10 |
| ZX Spectrum Next (KS2, core 3.03.03) | ks2-30303.cim | 2.10a |
| ZX Spectrum Next (KS3, core 3.03.03) | ks3-30303.cim | 2.10a |
In portable mode the cards are in the Klive folder of the portable data folder instead. The Next
uses its model’s card until you select another, and every change the emulated machine makes to the
card (a file NextZXOS saves, say) is written to it. ZX Spectrum Next models
explains the models.
When the Next starts, it boots NextZXOS from the card, as the real machine does.
Models whose card is downloaded
Klive installs the card of the two core 3.03.03 models (NextZXOS 2.10a). The other models’ cards are downloaded from kliveide.net the first time you select one of those models:
| Card | Models | Download |
|---|---|---|
| NextZXOS 2.08 | KS2, core 3.02.01 | 37.0 MB |
| NextZXOS 2.10 | KS2, core 3.02.04 | 58.6 MB |
When a model’s card is not on your computer, Klive opens a dialog instead of starting a Next that stops with “Drive C: not found”. The menus and the Select Machine dialog mark such a model with “download needed” and the size.
- Download gets the card, shows its progress, and starts the model when it is done. Cancel stops the download.
- Import a downloaded file… takes a card you downloaded in a browser, for a computer that cannot reach kliveide.net from Klive. Copy link copies the card’s web address.
- Closing the dialog keeps the machine that was running. If Klive starts on such a model, it runs the ZX Spectrum Next (KS3, core 3.03.03) for that session and keeps your model as the saved one.
Klive checks every card it downloads or imports, and keeps only the card its own records name, so a
damaged or altered file is never used. A downloaded card is kept in the next-sd folder of the Klive
folder; Reset the Default Image… makes a fresh copy from it.
A card you selected earlier and then moved or deleted is not used either: the Next goes back to its model’s default card and says so in the Emulator output.
A card NextZXOS cannot boot
Before a Next starts, Klive checks the card it boots from: that it can be read, has a FAT16 or FAT32 partition, holds NextZXOS’s system files, and holds the NextZXOS release the model needs. When one of these fails, a dialog says which, and offers:
- Reset to the Default Card (for the model’s own card): Klive keeps the broken card under a new name
(
ks3-30303.broken-20261117-150309.cim, say), says where in the Emulator output, and makes a fresh card; - Use the Default Card (for an image you selected): goes back to the model’s own card;
- Select an Image…, to use another image;
- Continue Anyway, to boot the card as it is.
Switching or resetting the card
The Machine › SD Card menu has three items, available while the machine is stopped:
| Item | What it does |
|---|---|
| Select Image… | Uses another .cim image as the Next’s card. Klive remembers the choice. |
| Use the Default Image | Goes back to the current model’s default card in the Klive folder. |
| Reset the Default Image… | Replaces the current model’s default card with a fresh copy, after asking. Every change made to that card is lost. When the model’s card has to be downloaded first, Klive offers the download. |
Machine › SD Card › Downloaded SD Cards lists the cards Klive downloaded, with their sizes, and deletes one after asking. The card the running model needs stays; a model whose card you deleted downloads it again when you select it.
Reset the default image only when you mean to: it deletes everything programs or you have put on the
default card. Keep files you care about on your computer and copy them in with ncp.
A second card on the KS3
The KS3 board has two card readers, so the ZX Spectrum Next (KS3, core 3.03.03) model has a second card too. The card above is its first; the second reader is empty until you put an image in it. The menu has two more items on that model, also available while the machine is stopped:
| Item | What it does |
|---|---|
| Select Image for SD Card 2… | Puts an image (.cim, .img or .hdf) into the second reader. Klive remembers the choice. |
| Eject SD Card 2 | Leaves the second reader empty. |
The second reader is the Next’s SD card 1, the one port $E7 selects with $FD. ncp copies to and from
the first card only.
Copying files with ncp
The ncp command (alias next-copy) copies one file between your computer and the card:
Stop the machine
ncp refuses to run while the machine is running or paused, because the emulator reads and writes
the same image file.
Copy to the card
ncp to "build/game.nex" "/games/game.nex"
ncp to "build/game.nex" "/games/"A target ending in / is a folder: the file keeps its name. Missing folders are created. If the file
already exists on the card, Klive asks before replacing it.
Copy from the card
ncp from "/games/hiscore.dat" "./hiscore.dat"Start the machine
NextZXOS sees the new files the next time it reads the card.
Without -cim, ncp works on the current Next’s card, so the current machine must be the ZX
Spectrum Next. With -cim <file> it works on any .cim image, whatever machine is selected:
ncp to "./assets/title.scr" "/assets/" -cim "./test-card.cim"You rarely need ncp to run a NEX file: nex-run, the Explorer’s Run NEX file and building a
project that produces a NEX copy the file into the card’s _klive folder for you and start it. See
Running and inspecting NEX files.
Browsing the card
To see the whole card, add or extract many files at once, or make a new card image, open the .cim
file in the Disk Explorer. It reads the card’s FAT16 and FAT32 file
systems with their long file names and folders, and it can also open raw .img and .hdf
hard-disk images.
Related
- Running and inspecting NEX files
- Core update files (TBBLUE.TBU): Machine › SD Card › Show TBBLUE.TBU opens the card’s update file
- The firmware file (TBBLUE.FW): Machine › SD Card › Show TBBLUE.FW opens the card’s firmware
- The Disk Explorer
- Disks and SD cards tutorial
- The File Manager: the stopped Next’s SD card as a drive, beside this computer’s folders
ncpin the command reference