Super Maxi Loader is a toolchain and loader kit designed to allow to squeeze every possible byte out of the Sinclair ZX81’s 1 KB RAM: it converts a raw memory snapshot into an audio file that can be loaded on an real ZX81, restoring memory and CPU state with precise control.
This project is aimed at extreme ZX81 1K coders and retro/demoscene enthusiasts, who enjoy working right at the edge of the machine capabilities.
./smloadgen <Snapshot> <StartAddress> [<Values for BC' DE' HL'> [<AF'> <IX> <IY> <I>]]
Minimal parameters:
smloadgen snapshot.bin 0x4321
All parameters:
smloadgen snapshot.bin 0x4036 0x0123 0x4567 0x89AB 0xCDEF 0x0281 0x4000 0x42
This will generate:
- a
.wavfile that loads the snapshot and runs it at the starting address with the selected registers value set - an equivaent program file
.smlto be load into compatible emulators (see SMLfile.md for details)
The input snapshot must represent memory contents from $4000 to $43F4 and must follow these rules:
-
A
retinstruction must be present exactly at$43F4(end of the maximum loadable code) -
At least one additional byte must exist at
$43F5(snapshot file should be at least 1014 bytes long) -
Program entry code should switch back to SLOW mode with
out ($FE), awhen needed (system variables should also have proper values in case)
See example program for details.
PC = user selected value
SP = $4400
AF = load dependent
B = 0
C = last byte loaded (56=38h in the example program)
DE = $43F4
HL = $43F5
AF'= user-selected value
BC'= user-selected value
DE'= user-selected value
HL'= user-selected value
IX = $0281 ROM default (for video display), or user selected value
IY = $4000 ROM default (for sysvars access), or user selected value
I = $1E ROM default (for video characters set), or user selected value
R = undetermined
The ZX81 is famously constrained — and that’s exactly the point.
Super Maxi Loader, and all the rest of ZX81 1K "extreme programming" in general, exist to explore and demonstrate what is and have been possible on this machine, pushing the hardware beyond what it was supposed or believed to be capable of, and showing that the real limits are set only by imagination.