[][src]Module spectrusty_formats::z80

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

load_z80

Loads a Z80 file from rd into the provided snapshot loader implementing SnapshotLoader.

save_z80v1

Saves a Z80 file version 1 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.

save_z80v2

Saves a Z80 file version 2 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.

save_z80v3

Saves a Z80 file version 3 into wr from the provided reference to a snapshot struct implementing SnapshotCreator.