Home | Downloads | Support |
Table of contents
The zx-state file format
Block types
|
ZXSTMULTIFACEThe state of the Multiface 1, Multiface 128 or Multiface 3. // Multiface state #define ZXSTMF_PAGEDIN 0x01 #define ZXSTMF_COMPRESSED 0x02 #define ZXSTMF_SOFTWARELOCKOUT 0x04 #define ZXSTMF_REDBUTTONDISABLED 0x08 #define ZXSTMF_DISABLED 0x10 #define ZXSTMF_16KRAMMODE 0x20 #define ZXSTMFM_1 0 #define ZXSTMFM_128 1 typedef struct _tagZXSTMULTIFACE { ZXSTBLOCK blk; BYTE ch48kModel; BYTE chFlags; BYTE chData[1]; } ZXSTMULTIFACE, *LPZXSTMULTIFACE; Membersblk
The block header. The block id is ZXSTBID_MULTIFACE ('M', 'F', 'C', 'E').
ch48kModel
The Multiface model to use when emulating 16k or 48k Spectrums. This can be one of:
chFlags
Various flags specifying the current state of the Multiface. This can be a combination of:
chData
The Zlib compressed or uncompressed Multiface RAM image, depending on whether ZXSTMF_COMPRESSED is set.
When loading the Zlib compressed RAM image, the compressed size can be obtained by:
If ZXSTMF_16KRAMMODE is set, chData will expand to 16KB rather than 8KB. RemarksThe last bytes written to ports $1ffd and $7ffd (which are used by the Multiface) can be read from the ZXSTBID_SPECREGS block which appears earlier in the file. Revision historyAvailable since version 1.0 |
Copyright © 2001 - 2011 Jonathan Needle | Top |