Compuprint MDP40B Programmer Manual User Manual
Page 87

A-85
(horizontal dot count)
n
1
= MOD
256
k
total number
of data bytes, according to the following formula:
(n
2
x 256) + n
1
+ 7
k = m x INT
8
During full graphics mode: graphics data.
d
1
… d
k
During compressed mode: the first data byte is treated as a counter. Graphics
data bytes then alternate with a data counter byte as follows:
0 < (counter byte) < 127
Counter specifies the number of data bytes following according to this formula:
(counter byte) + 1 = (number of data bytes to follow)
or
(counter byte) = (number of data bytes to follow) -1
128 < (counter byte) < 255
Counter specifies the number of times to repeat the next byte of data according to
this formula:
256 - (counter byte) + 1 = (number of times to repeat next byte)
or
(counter byte) = 257 - (number of times to repeat next byte)