707
edits
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 [ | |If set, the EPROM data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library. | ||
|} | |} | ||
'''chMemCtrl'''<br /> The current value of the DivIDE's memory control register.<br /> | '''chMemCtrl'''<br /> The current value of the DivIDE's memory control register.<br /> | ||
'''chNumRamPages'''<br /> The amount of RAM installed in this DivIDE interface, in units of 8KB. Normally '''4''', representing a 32KB DivIDE interface.<br /> | '''chNumRamPages'''<br /> The amount of RAM installed in this DivIDE interface, in units of 8KB. Normally '''4''', representing a 32KB DivIDE interface.<br /> | ||
'''chData'''<br /> The compressed or uncompressed contents of the DivIDE's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [ | '''chData'''<br /> 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: | ||
'''chPageNo'''<br /> Page number of this 8KB RAM page. For the 32KB version of the DivIDE interface, this is 0 - 3.<br /> | '''chPageNo'''<br /> Page number of this 8KB RAM page. For the 32KB version of the DivIDE interface, this is 0 - 3.<br /> | ||
'''chData'''<br /> The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [ | '''chData'''<br /> 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 [ | |If set, the EPROM data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library. | ||
|} | |} | ||
'''chMemCtrl'''<br /> The current value of the DivMMC's memory control register.<br /> | '''chMemCtrl'''<br /> The current value of the DivMMC's memory control register.<br /> | ||
'''chNumRamPages'''<br /> 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 /> | '''chNumRamPages'''<br /> 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 /> | ||
'''chData'''<br /> The compressed or uncompressed contents of the DivMMC's EPROM. When uncompressed, this member is exactly 16KB (16,384) bytes in size. When loading [ | '''chData'''<br /> 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: | ||
'''chPageNo'''<br /> 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 /> | '''chPageNo'''<br /> 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 /> | ||
'''chData'''<br /> The compressed or uncompressed contents of the RAM page. When uncompressed, this member is exactly 8KB (8,192) bytes in size. When loading [ | '''chData'''<br /> 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 [ | |If set, the flash memory page data (beginning from '''chData''') will be compressed using the [https://zlib.org/ Zlib] compression library. | ||
|} | |} | ||