Forum
Simple RLE Decompressor - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14)
+---- Thread: Simple RLE Decompressor (/showthread.php?tid=350)



Simple RLE Decompressor - LCD - 04-29-2011

Maybe not a bad idea: a decompress function for RLE encoded binaries (starting with dbyte contains length of compressed and a flag byte). Maybe something like UnRLE(sourceaddress,destinationaddress) returning the length of decompressed bytes or alternative, if the starting bytes are missing: UnRLE(sourceaddress,destinationaddress,length,flagbyte), or even with bank switching management. This will allow to pack more graphical and level-data into our programs. Maybe a job for britlion, to write a fastcall routine? This can be used for all Z80 computers then.


Re: Simple RLE Decompressor - boriel - 04-30-2011

It's already done at speccy.org (a Spanish ZX Spectrum forum), and freely redistributable. I could include it as <rled.bas> or the like?
I think some users here (e.g. apenao) have already been using it with ZX BASIC :wink: (not sure).


Re: Simple RLE Decompressor - LCD - 04-30-2011

Sounds good. Speccy.org looks like a nice forum (also with the QL subforum), but I cannot find a search-function (maybe because I'm not a registred user) to find this decompressor. Any link please? Including it would be excellent.


Re: Simple RLE Decompressor - JBGV - 05-01-2011

Hope this helps:

Course of assembler Z80 Compiler Software:


http://www.speccy.org/wiki/cursos/ensamblador/compresion_rle


Re: Simple RLE Decompressor - LCD - 05-01-2011

JBGV Wrote:Hope this helps:

Course of assembler Z80 Compiler Software:


http://www.speccy.org/wiki/cursos/ensamblador/compresion_rle

Thank you, I think this is it. Will explore it tomorrow.


Re: Simple RLE Decompressor - boriel - 05-02-2011

JBGV Wrote:Hope this helps:

Course of assembler Z80 Compiler Software:


http://www.speccy.org/wiki/cursos/ensamblador/compresion_rle
You've found it! Thk!