Forum
zx0 compression corruption on decompressing - 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: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: zx0 compression corruption on decompressing (/showthread.php?tid=1445)



zx0 compression corruption on decompressing - RandomiserUsr - 09-29-2021

Since zxbc.py 1.15.3-beta9 the following is causing screen corruption

dzx0Standard(@Pic1, 16384)

Pic1:
asm
incbin "pic1.scr.zx0"
end asm

The same thing happens for text uncompressing.

See attachments for all of the files.

The same code works fine on 1.15.2 stable

Thanks

.zip   zx0picbug.zip (Size: 2.75 KB / Downloads: 163)


RE: zx0 compression corruption on decompressing - boriel - 09-29-2021

(09-29-2021, 06:50 PM)RandomiserUsr Wrote: Since zxbc.py 1.15.3-beta9 the following is causing screen corruption

dzx0Standard(@Pic1, 16384)

Pic1:
asm
incbin "pic1.scr.zx0"
end asm

The same thing happens for text uncompressing.

See attachments for all of the files.

The same code works fine on 1.15.2 stable

Thanks

The compressor was updated in 1.15.3.
Can you re-compress pic1.scr using the new compressor version, please?
The compressor is here: https://github.com/einar-saukas/ZX0/tree/main/win


RE: zx0 compression corruption on decompressing - einar - 09-29-2021

(09-29-2021, 08:56 PM)boriel Wrote: The compressor was updated in 1.15.3.
Can you re-compress pic1.scr using the new compressor version, please?
The compressor is here: https://github.com/einar-saukas/ZX0/tree/main/win

Exactly.

Your file was compressed with the old version of ZX0. But ZXBC now uses a new ZX0 format that's a little faster.

If you download latest ZX0 executables and compress your screen again, it should work just fine.


PS: My apologies for the inconvenience!


RE: zx0 compression corruption on decompressing - RandomiserUsr - 10-09-2021

Thanks all - this fixed it :-)