Skip to Content
GuidesZX Spectrum NextThe firmware file (TBBLUE.FW)

Examining the Firmware File (TBBLUE.FW)

TBBLUE.FW holds the ZX Spectrum Next’s firmware: the small programs that run before the machine starts, such as the start-up screen, the settings menu and the updater. Klive opens it in a viewer that shows which modules the file holds, which key starts each one, which firmware version it is, and each module’s code as a Z80 disassembly. Use it to see what a firmware release contains, or to compare two.

Applies to: ZX Spectrum Next firmware files. The viewer only reads the file; it never changes it.

Opening the firmware on your SD card

With the ZX Spectrum Next selected, choose Machine › SD Card › Show TBBLUE.FW, or type show-fw at the command prompt. Klive reads TBBLUE.FW from the root folder of the card the machine uses: the model’s own card, or the image you chose with Select Image…. It works while the machine runs, and it reads the card again each time you choose it. The tab is named after the card, for example TBBLUE.FW · ks2-30303.cim.

To open a firmware file from elsewhere, for example from a system release, copy it into your project folder and click it in the Explorer, or type nav TBBLUE.FW.

The viewer opens only a file named exactly TBBLUE.FW (in any letter case). To keep several releases, give each its own folder rather than renaming the file.

What the viewer shows

The firmware viewer with the editor module selected: Space starts it from the start-up screen.
The TBBLUE.FW viewer: the firmware version and size, the module map as a strip and a table with the keys that start each module, and the details of the selected editor module
SectionWhat it shows
FileThe firmware version (the text the start-up screen prints after “Firmware v”), the file size, how many of the map’s 128 entries are used, the layout, and a verdict with any problems. The button beside the heading opens the 512-byte module map as a memory dump.
ModulesA strip of the file to scale and a table: each module’s name, the keys that start it, its blocks, where it is in the file and its size. Click a row, or a module in the strip, to select it.
ModuleThe selected module: what it does, the keys that start it, its blocks and file range, whether it is code (run at $6000) or data, the $00 padding at its end, and the texts it contains. The buttons beside the heading open the module as a memory dump and as a full disassembly.
DisassemblyThe first 256 instructions of a code module, at the address it runs at.
Test cardFor the screens block: the video test card picture it holds.

The modules

The firmware’s map lists its modules by position. The published source of the firmware names the first nine, and the viewer uses those names:

#ModuleStarted by
0Boot: the start-up screen, then the machineno key
1Old editorthe same blocks as Boot
2UpdaterU; DRIVE + M1 held at power-on
3Old coresthe same blocks as Boot
4Editor: the settings menuSpace
5Cores: the extra cores menuC
6Test cardA, D, V or R on the start-up screen
7Reset: config.ini back to its defaultsN and X together
8Screens: the test card picture and the start-up textdata

Entries 1 and 3 point at the boot module on purpose: they are where the editor and the extra cores module used to be, and older loaders that still start them get the boot module. The table dims them and says which module they repeat. In firmware files from 2019 and earlier they are still the editor and the extra cores module themselves, and the viewer names them Editor (old place) and Cores (old place).

Firmware 1.46 (System/Next 26.11a) has eight more entries, 9 to 16, that no published source names. The viewer numbers them, says whether each is code or data, and lists the texts inside, which show what they are for: flashing and erasing cores, core settings, and the credits.

The test card

The video test card from the screens block, drawn with its own palette.
The ZXN video test card: colour bars, a grey scale, a circle with coloured blocks, resolution patterns and a rainbow strip along the bottom

The screens block starts with this 256×192 Layer 2 picture and its palette. It is what the test card module shows when you press A, D, V or R on the start-up screen to find a video mode your monitor can show.

Last updated on