Closed chitselb closed 10 years ago
rlencode rewritten to conform to this rule used by mkpkt
rlencode needs to stop when the output buffer fills. This is unlikely, but can be forced for testing by putting AABBAABBAABB (repeating pairs) to fill the screen.
if rlencode fails (negative compression efficiency) then the screen gets stored by CMOVE instead. Also if this happens, the $4000 bit (uncompressed?) will be set on the packet length/flags field.
fixed
repeat counts - x x 0 = 256 total; x x 1 is impossible; x x 2 is 2 total (do nothing)