Anonymous

ZX-State format: Difference between revisions

From Sinclair Wiki
m
attempt to make SNEF and SNER correspond to actual implementation
mNo edit summary
m (attempt to make SNEF and SNER correspond to actual implementation)
 
Line 270: Line 270:
  {
  {
   ZXSTBLOCK blk;
   ZXSTBLOCK blk;
   WORD wFlags;
   BYTE chFlags;
  DWORD ???
  DWORD dwCompressedSize;
   BYTE chData[1];
   BYTE chData[1];
  } ZXSTSPECTRANETFLASHPAGEBLOCK, *LPZXSTSPECTRANETFLASHPAGEBLOCK;
  } ZXSTSPECTRANETFLASHPAGEBLOCK, *LPZXSTSPECTRANETFLASHPAGEBLOCK;
Line 286: Line 288:
|}
|}


&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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.net/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''dwCompressedSize'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The size of the data at '''chData'''.<br />
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the Spectranet's flash memory. When uncompressed, this member is exactly 128KB (131,072) bytes in size.


=== ZXSTSPECTRANETRAMPAGE ===
=== ZXSTSPECTRANETRAMPAGE ===
Line 301: Line 303:
  {
  {
   ZXSTBLOCK blk;
   ZXSTBLOCK blk;
   WORD wFlags;
   BYTE chFlags;
  DWORD ???
  DWORD dwCompressedSize;
   BYTE chData[1];
   BYTE chData[1];
  } ZXSTSPECTRANETRAMPAGEBLOCK, *LPZXSTSPECTRANETRAMPAGEBLOCK;
  } ZXSTSPECTRANETRAMPAGEBLOCK, *LPZXSTSPECTRANETRAMPAGEBLOCK;
Line 317: Line 321:
|}
|}


&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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.net/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''dwCompressedSize'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The size of the data at '''chData'''.<br />
compressedSize = blk.dwSize - ( sizeof( ZXSTSPECTRANETFLASHPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the Spectranet's RAM. When uncompressed, this member is exactly 128KB (131,072) bytes in size.


=== ZXSTZXMMC ===
=== ZXSTZXMMC ===