Specifications
Revision C 16/01/96
Chapter 2 "PCL" - 82
If the control bit is 1, replacement data is repeated data. Bits 6 to 5 contain the offset count and bits 4 to 0
contain the 'replacement count(repeat count) - 2'.
If bit 6 and bit 5 are '1', then an optional offset byte follows the control byte. If the value of this optional offset
byte is 255, another (second) optional offset byte follows the first optional offset byte. The addition of the offset
count in the control byte and any optional offset bytes gives the total offset count.
If bits 4 to 0 are all '1', an optional replacement count byte follows the control byte or any optional offset
byte(s). If the first optional replacement count byte has a value of 255, a second optional replacement count
byte follows the first optional replacement count byte. Optional replacement count bytes will continue until the
value becomes less than 255.
<Example>
Seed row 55 55 55 55 55 55 55 55 55 55 55 55 55
Current row 55 55 55 11 11 11 55 55 66 66 66 66 55
<First section 11 11 11>
Offset count = 3
Replacement count = 3
Replacement data = 11
<Second section 66 66 66 66>
Offset count = 2
Replacement count = 4
Replacement data = 66
11100001
76543210
Replacement count = 1 + 2 = 3
Offset count = 3
Optional offset count byte = 0 Replacement data = 11
11 00010
76543210
Replacement count = 2 + 2 = 4
Offset count = 2
Replacement data = 660