naTmeg / ScriptedAmigaEmulator

Amiga Emulator in javascript and HTML5
331 stars 63 forks source link

Bugfix in DMS decompression with DEEP Compression #20

Closed steffest closed 6 years ago

steffest commented 6 years ago

Memmove in c moves exactly n bytes so the javascript loop moved 1 byte too much. This resulted in a inconsistent freq table, resulting in endless loops in the "update" function when decompressing a track with DEEP compression. If you need a reference file, you can find an example DMS at http://www.stef.be/adfviewer/disks/COOPAIM1.DMS

naTmeg commented 6 years ago

Great find, thanks! That's definitely a bug, dunno what I thought here.