Boriel Basic Forum
Simple RLE Decompressor - Printable Version

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



Simple RLE Decompressor - LCD - 2011-04-30

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 - 2011-04-30

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 - 2011-04-30

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 - 2011-05-01

Hope this helps:

Course of assembler Z80 Compiler Software:


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


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

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 - 2011-05-02

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!