ZX-State format: Difference between revisions
Jump to navigation
Jump to search
(→Emulator / tool support: Add Fuse/libspectrum support for ZXMMC block.) |
m (Let's use HTTPS!) |
||
Line 13: | Line 13: | ||
=== ZXSTDIVIDE === | === ZXSTDIVIDE === | ||
The state of the [ | The state of the [https://web.archive.org/web/20150302052256/http://baze.au.com/divide/ DivIDE IDE hard disk and CompactFlash card interface]. | ||
// DivIDE flags | // DivIDE flags | ||
#define ZXSTDIVIDE_EPROM_WRITEPROTECT 1 | #define ZXSTDIVIDE_EPROM_WRITEPROTECT 1 | ||
Line 77: | Line 77: | ||
|- | |- | ||
|ZXSTDRF_COMPRESSED | |ZXSTDRF_COMPRESSED | ||
|If set, the RAM page data (beginning from '''chData''') will be compressed using the [ | |If set, the RAM page data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library. | ||
|} | |} | ||
Line 149: | Line 149: | ||
|- | |- | ||
|ZXSTDRF_COMPRESSED | |ZXSTDRF_COMPRESSED | ||
|If set, the RAM page data (beginning from '''chData''') will be compressed using the [ | |If set, the RAM page data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library. | ||
|} | |} | ||
Line 286: | Line 286: | ||
|} | |} | ||
'''chData'''<br /> The compressed or uncompressed contents of the Spectranet's flash memory. When uncompressed, this member is exactly 128KB (131,072) bytes in size. When loading [ | '''chData'''<br /> The compressed or uncompressed contents of the Spectranet's flash memory. When uncompressed, this member is exactly 128KB (131,072) bytes in size. When loading [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by: | ||
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | ||
Line 314: | Line 314: | ||
|- | |- | ||
|ZXSTSRF_COMPRESSED | |ZXSTSRF_COMPRESSED | ||
|If set, the RAM data (beginning from '''chData''') will be compressed using the [ | |If set, the RAM data (beginning from '''chData''') will be compressed using the [https://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 [ | '''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 [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by: | ||
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | ||