[ Spectaculator, ZX Spectrum Emulator ] Home | Downloads | Support [ ZX Spectrum Image ]

Table of contents

The zx-state file format
Block types

ZXSTDSKFILE

Each +3 disk drive that has a disk inserted in it will have one of these blocks. They follow the ZXSTPLUS3 block which identifies the number of drives.

// +3 Disk image
// Each drive that has a disk in it has one of
// these blocks.
#define ZXSTDSKF_COMPRESSED  1
#define ZXSTDSKF_EMBEDDED    2

typedef struct _tagZXSTDSKFILE
{
  ZXSTBLOCK blk;
  WORD wFlags;
  BYTE chDriveNum;
  DWORD dwUncompressedSize;
  BYTE chData[1];
} ZXSTDSKFILE, *LPZXSTDSKFILE;

Members

blk
The block header. The block id is ZXSTBID_DSKFILE ('D', 'S', 'K', 0).
wFlags
Various flags. This can be a combination of:
FlagMeaning
ZXSTDSKF_COMPRESSEDNot implemented. All disk images are currently links to external .dsk files
ZXSTDSKF_EMBEDDEDNot implemented. All disk images are currently links to external .dsk files
chDriveNum
Specifies which drive to insert this disk image into. It will either be 0 (A:) or 1 (B:)
dwUncompressedSize
The length of the filename at chData
chData
The file name of the disk file (.dsk) which should be opened and inserted into this drive

Remarks

These blocks follow the ZXSTPLUS3 block which identifies the number of drives.

Revision history

Available since version 1.0


  Copyright © 2001 - 2008 Jonathan Needle Top