Home | Downloads | Support |
Table of contents
The zx-state file format
Block types
|
ZXSTPLUSDPlus D disk interface by Miles Gordon Technology Ltd - later sold by Datel Electronics. Any blocks specifying which disk files are in which drive will follow this one. // Flags #define ZXSTPLUSDF_PAGED 1 #define ZXSTPLUSDF_COMPRESSED 2 #define ZXSTPLUSDF_SEEKLOWER 4 // Rom types #define ZXSTPDRT_GDOS 0 #define ZXSTPDRT_UNIDOS 1 #define ZXSTPDRT_CUSTOM 2 typedef struct _tagZXSTPLUSD { ZXSTBLOCK blk; DWORD dwFlags; DWORD dwcbRam; DWORD dwcbRom; BYTE chRomType; BYTE chCtrlReg; BYTE chNumDrives; BYTE chTrackReg; BYTE chSectorReg; BYTE chDataReg; BYTE chStatusReg; BYTE chRam[1]; } ZXSTPLUSD, *LPZXSTPLUSD; Membersblk
The block header. The block id is ZXSTBID_PLUSD ('P', 'L', 'S', 'D').
dwFlags
Various flags. This can be a combination of:
dwcbRam
Size in bytes of the Zlib compressed or uncompressed custom Plus D RAM. The uncompressed RAM size is always 8,192 bytes.
dwcbRom
Size in bytes of the Zlib compressed or uncompressed custom Plus D ROM (if one was installed). The uncompressed ROM size is always 8,192 bytes.
chRomType
The type of ROM installed in the Plus D. This can be one of:
chCtrlReg
The last value written to the Plus D's control register, port $ef.
chNumDrives
The number of disk drives connected (1 or 2).
chTrackReg
The current value of the WD1772 FDC's track register (port $eb).
chSectorReg
The current value of the WD1772 FDC's sector register (port $f3).
chDataReg
The current value of the WD1772 FDC's data register (port $fb).
chStatusReg
The current value of the WD1772 FDC's status register (port $e3).
chRam
A Zlib compressed or uncompressed image of the Plus D's RAM. The uncompressed RAM size is always 8192 bytes.
If a custom ROM is installed. The image follows immediately after the RAM data. RemarksAny ZXSTPLUSDDISK blocks specifying which disk files are in which drives will follow this one. Revision historyAvailable since version 1.3 |
Copyright © 2001 - 2011 Jonathan Needle | Top |