Changes

Snapshot

313 bytes added, 14:14, 19 December 2016
/* MEM0-8 Chunk */
=== MEM0-8 Chunk ===
The MEM0-8 chunks contain at most 64KB of data. They can The data may be compressed and use or stored uncompressed. If the size is exactly 65536 bytes the data is uncompressed, otherwise it is compressed. The compression scheme is RLE with 0x0e5 as the control byte.
Data is encoded as:
* <byte> for a single occurrence of a byte (not 0x0e5) (e.g. 0x013)* 0x0e5,<count>,<byte>for multiple occurances of a byte (e. 0x0e5,0x04,0x013 for 0x013 repeated 4 times)* 0x0e5,0 for a single 0x0e5 byte<byte> for a single occurance of a byte (not e.g. 0x0e5) If the block is exactly 65536 bytes then the data is assumed to be uncompressed.
The blocks are:
* MEM0 - main 64KB ram * MEM1 - c4,c5,c6,c7 configurations (extra 64KB ram in 128KB machines) (256KB Dk'Tronics RAM, X-MEM) * MEM2 - cc,cd,ce,cf configurations (256KB Dk'Tronics RAM, X-MEM) * MEM3 - d4,d5,d6,d7 configurations (256KB Dk'Tronics RAM, X-MEM) * MEM4 - dc,dd,de,df configurations (256KB Dk'Tronics RAM, X-MEM) * MEM5 - e4,e5,e6,e7 configurations (256KB Dk'Tronics Silicon Disk, X-MEM) * MEM6 - ec,ed,ee,ef configurations (256KB Dk'Tronics Silicon Disk, X-MEM) * MEM7 - f4,f5,f6,f7 configurations (256KB Dk'Tronics Silicon Disk, X-MEM) * MEM8 - fc,fd,fe,ff configurations (256KB Dk'Tronics Silicon Disk, X-MEM) NOTE: The snapshot may contain a mix of "standard" memory data (e.g. the data follows the header and is uncompressed) and additional MEM blocks as required. If the snapshot is not compressed, then up to 128KB will be stored as "standard" memory data, the additional RAM stored in MEM2-MEM8 blocks.
NOTE: 1. A snapshot may contain a mix of "standard" memory data (e.g. the data follows the header and is uncompressed) and additional MEM blocks as required.2. If the snapshot is not compressed, then up to 128KB will be stored as "standard" memory data, the additional RAM stored in MEM2-MEM8 blocks.3. If the snapshot is compressed, then the "standard" memory data will have 0 size and there will be a MEM0 in addition to the additional memory blocks.4. Version 3 doesn't require memory to be continuous. A Dk'tronics silicon disk on it's own can be described with this version.
=== CPC+ Chunk ===
2,541
edits