>> Here's my version of the RLE en/decoder in plain good old MSX-BASIC.
>> Written a long time ago - *NOT TESTED* though! Normally, I don't send
>> attachments to the list, but this one is smaller than some of the
>> RPG mails I've seen the last few days... It can crunch and decrunch
>> 1 page of SCRN5 graphics.
>
> Ah, yes, I now understand what you meant by 'pattern'.
> I always use bytes for RLE, this covers as well normal repeating data as
> dithering.
>
> But I still doubt there's much of a pattern to discover in the
patterndata.
> In fact, it is already compressed (that's the whole idea of combining a
> tilemap with tiles)... The tiles itself are most likely very different
from
> eachother and a pattern can hardly be discovered I think.
>
> By the way, what do you mean by "not tested"??? How can you program it
then?
With "not tested" I mean: not tested. I thought up the algorithm,
wrote the BASIC code and did an on-paper walkthrough/test if it
would work. I did not load in in my MSX and test it. So, there
might still be an error/bug/unwanted feature in it. And, as a matter
of fact there are - the version included now should at least not
contain any syntax errors anymore :-)
Eric
(See attached file: (de)crun.asc)
(de)crun.asc