Home | Downloads | Support |
Table of contents The zx-state file format
Block types
|
ZXSTLECRAMPAGEA zx-state file will contain a number of these blocks, depending on the model of LEC interface being emulated (80KB, 272KB or 528KB). A ZXSTLEC block will proceed the first of these blocks. // LEC 32KB RAM page // Ram pages are compressed using Zlib #define ZXSTLCRPF_COMPRESSED 1 // 32KB LEC RAM page typedef struct _tagZXSTLECRAMPAGE { ZXSTBLOCK blk; WORD wFlags; BYTE chPageNo; BYTE chData[1]; } ZXSTLECRAMPAGE, *LPZXSTLECRAMPAGE; Membersblk
The block header. The block id is ZXSTBID_LECRAMPAGE ('L', 'C', 'R', 'P').
wFlags
Various flags. This can currently only be:
chPageNo
Page number of this 32K RAM page. For the 80KB version of the LEC interface, this is 0-1. For the 272KB version, this is 0-7. For the 528KB version, this is 0-15.
chData
The actual compressed or uncompressed memory page data. When uncompressed, this member is exactly 32KB (32,768 bytes) in size.
When loading Zlib compressed pages, the compressed size can be obtained by:
RemarksA ZXSTLEC block will proceed the first of these blocks. Revision historyAvailable since version 1.5 |
Copyright © 2001 - 2011 Jonathan Needle | Top |