49
edits
(→ZXSTSPECTRANETFLASHPAGE: Nope, got that wrong!) |
(→ZXSTSPECTRANETRAMPAGE: Document block) |
||
Line 219: | Line 219: | ||
=== ZXSTSPECTRANETRAMPAGE === | === ZXSTSPECTRANETRAMPAGE === | ||
''' | This block is used to save and restore the contents of the Spectranet's built-in RAM. | ||
A zx-state file will contain only one of these blocks. A [[#ZXSTSPECTRANET|ZXSTSPECTRANET]] block will proceed the the blocks. | |||
// Flash memory is compressed using Zlib | |||
#define ZXSTSRF_COMPRESSED 1 | |||
// Spectranet RAM | |||
typedef struct _tagZXSTSPECTRANETRAMPAGEBLOCK | |||
{ | |||
ZXSTBLOCK blk; | |||
WORD wFlags; | |||
BYTE chData[1]; | |||
} ZXSTSPECTRANETRAMPAGEBLOCK, *LPZXSTSPECTRANETRAMPAGEBLOCK; | |||
==== Members ==== | |||
'''blk'''<br /> The block header. The block id is '''ZXSTBID_SPECTRANETRAMPAGE''' ('S', 'N', 'E', 'R').<br /> | |||
'''wFlags'''<br /> Various flags. This can be any combination of: | |||
{|cellspacing="1" cellpadding="1" border="1" width="100%" | |||
|'''Flag''' | |||
|'''Meaning''' | |||
|- | |||
|ZXSTSRF_COMPRESSED | |||
|If set, the RAM data (beginning from '''chData''') will be compressed using the [http://www.zlib.org/ Zlib] compression library. | |||
|} | |||
'''chData'''<br /> The compressed or uncompressed contents of the Spectranet's RAM. When uncompressed, this member is exactly 128KB (131,072) bytes in size. When loading [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by: | |||
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | |||
[[Category:Emulator Snapshot File Formats]] | [[Category:Emulator Snapshot File Formats]] |
edits