Module spectrusty_formats::z80

source ·
Expand description

Z80 snapshot format utilities.

See the specification reference on World of Spectrum.

Implementation specifics

When reading from the Z80 file:

  • “Custom” Joystick is always interpreted as Sinclair Left Joystick, regardless of key bindings that are being ignored at the moment.
  • Handling of MGT +D, DISCiPLE, or Multiface is currently not implemented.
  • An .xzx extension to version 3 (additional OUT to port 0x1ffd) is being read-only if a selected spectrum model would handle it properly.

When writing to the Z80 file:

  • ROMs are not being saved.

Functions

Loads a Z80 file from rd into the provided snapshot loader implementing SnapshotLoader.
Saves a Z80 file version 1 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.
Saves a Z80 file version 2 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.
Saves a Z80 file version 3 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.