![]() |
Table of contents |
zx-state headerThe zx-state header appears right at the start of a zx-state (.szx) file. It is used to identify the version of the file and to specify which model of ZX Spectrum (or clone) the file refers to. Following the zx-state header is an optional ZXSTCREATOR creator information block. Following that are the ZXSTZ80REGS and ZXSTSPECREGS blocks followed by zero or more additional blocks representing the current state of the emulated Spectrum.
// Machine identifiers
#define ZXSTMID_16K 0
#define ZXSTMID_48K 1
#define ZXSTMID_128K 2
#define ZXSTMID_PLUS2 3
#define ZXSTMID_PLUS2A 4
#define ZXSTMID_PLUS3 5
#define ZXSTMID_PLUS3E 6
#define ZXSTMID_PENTAGON128 7
#define ZXSTMID_TC2048 8
#define ZXSTMID_TC2068 9
#define ZXSTMID_SCORPION 10
#define ZXSTMID_SE 11
#define ZXSTMID_TS2068 12
#define ZXSTMID_PENTAGON512 13
#define ZXSTMID_PENTAGON1024 14
typedef struct _tagZXSTHEADER
{
DWORD dwMagic;
BYTE chMajorVersion;
BYTE chMinorVersion;
BYTE chMachineId;
BYTE chReserved;
} ZXSTHEADER, *LPZXSTHEADER;
MembersdwMagic
Byte sequence of 'Z', 'X', 'S', 'T' to identify the file as a zx-state file.
chMajorVersion
Major version number of the file format. Currently 1.
chMinorVersion
Minor version number of the file format. Currently 3.
chMachineId
The model of ZX Spectrum (or clone) to switch to when loading the file. This is one of:
chReserved
This member is reserved. Set to 0 (zero).
Revision historyAvailable since version 1.0 |
| Copyright © 2001 - 2008 Jonathan Needle | |