49
edits
(→ZXSTSPECTRANETFLASHPAGE: Document block) |
(→ZXSTSPECTRANETFLASHPAGE: Nope, got that wrong!) |
||
Line 190: | Line 190: | ||
This block is used to save and restore the contents of the Spectranet's built-in flash memory. | This block is used to save and restore the contents of the Spectranet's built-in flash memory. | ||
A zx-state file will contain | 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 ZXSTSFF_COMPRESSED 1 | #define ZXSTSFF_COMPRESSED 1 | ||
Line 199: | Line 199: | ||
ZXSTBLOCK blk; | ZXSTBLOCK blk; | ||
WORD wFlags; | WORD wFlags; | ||
BYTE chData[1]; | BYTE chData[1]; | ||
} ZXSTSPECTRANETFLASHPAGEBLOCK, *LPZXSTSPECTRANETFLASHPAGEBLOCK; | } ZXSTSPECTRANETFLASHPAGEBLOCK, *LPZXSTSPECTRANETFLASHPAGEBLOCK; | ||
Line 215: | Line 214: | ||
|} | |} | ||
'''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 [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by: | |||
'''chData'''<br /> The compressed or uncompressed contents of the | |||
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 ); | ||
edits