Anonymous

ZX-State format: Difference between revisions

From Sinclair Wiki
m
Missed some zlib links
m (Let's use HTTPS!)
m (Missed some zlib links)
Line 44: Line 44:
|-
|-
|ZXSTDIVIDE_COMPRESSED
|ZXSTDIVIDE_COMPRESSED
|If set, the EPROM data (beginning from '''chData''') will be compressed using the [http://www.zlib.org/ Zlib] compression library.
|If set, the EPROM data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library.
|}
|}


&nbsp;&nbsp; '''chMemCtrl'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The current value of the DivIDE's memory control register.<br />
&nbsp;&nbsp; '''chMemCtrl'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The current value of the DivIDE's memory control register.<br />
&nbsp;&nbsp; '''chNumRamPages'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The amount of RAM installed in this DivIDE interface, in units of 8KB. Normally '''4''', representing a 32KB DivIDE interface.<br />
&nbsp;&nbsp; '''chNumRamPages'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The amount of RAM installed in this DivIDE interface, in units of 8KB. Normally '''4''', representing a 32KB DivIDE interface.<br />
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the DivIDE's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the DivIDE's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVIDEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVIDEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );


Line 81: Line 81:


&nbsp;&nbsp; '''chPageNo'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page number of this 8KB RAM page. For the 32KB version of the DivIDE interface, this is 0 - 3.<br />
&nbsp;&nbsp; '''chPageNo'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page number of this 8KB RAM page. For the 32KB version of the DivIDE interface, this is 0 - 3.<br />
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVIDERAMPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVIDERAMPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );


Line 116: Line 116:
|-
|-
|ZXSTDIVMMC_COMPRESSED
|ZXSTDIVMMC_COMPRESSED
|If set, the EPROM data (beginning from '''chData''') will be compressed using the [http://www.zlib.org/ Zlib] compression library.
|If set, the EPROM data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library.
|}
|}


&nbsp;&nbsp; '''chMemCtrl'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The current value of the DivMMC's memory control register.<br />
&nbsp;&nbsp; '''chMemCtrl'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The current value of the DivMMC's memory control register.<br />
&nbsp;&nbsp; '''chNumRamPages'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The amount of RAM installed in this DivMMC interface, in units of 8KB. Normally '''16''', '''32''' or '''64''', representing 128KB, 256KB or 512KB DivMMC interfaces.<br />
&nbsp;&nbsp; '''chNumRamPages'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The amount of RAM installed in this DivMMC interface, in units of 8KB. Normally '''16''', '''32''' or '''64''', representing 128KB, 256KB or 512KB DivMMC interfaces.<br />
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the DivMMC's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the DivMMC's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVMMCBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVMMCBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );


Line 153: Line 153:


&nbsp;&nbsp; '''chPageNo'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page number of this 8KB RAM page. For the 128KB version of the DivIDE interface, this is 0 - 15, for the 256KB version, it is 0 - 31 and for the 512KB version it is 0 - 63.<br />
&nbsp;&nbsp; '''chPageNo'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Page number of this 8KB RAM page. For the 128KB version of the DivIDE interface, this is 0 - 15, for the 256KB version, it is 0 - 31 and for the 512KB version it is 0 - 63.<br />
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [http://www.zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
&nbsp;&nbsp; '''chData'''<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [https://zlib.org/ Zlib] compressed pages, the compressed size can be obtained by:
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVMMCRAMPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );
  compressedSize = blk.dwSize - ( sizeof( ZXSTDIVMMCRAMPAGEBLOCK ) - sizeof( ZXSTBLOCK ) - 1 );


Line 283: Line 283:
|-
|-
|ZXSTSFF_COMPRESSED
|ZXSTSFF_COMPRESSED
|If set, the flash memory page data (beginning from '''chData''') will be compressed using the [http://www.zlib.org/ Zlib] compression library.
|If set, the flash memory page data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library.
|}
|}