UNZIP for CP/M in Z80 Assembly Language - Updated Release

421 views
Skip to first unread message

Tony Nicholson

unread,
Jun 18, 2020, 3:50:39 AM6/18/20
to RC2014-Z80
I've updated UNZIP for CP/M in Zilog Z80 assembler.

Recently a forum member Martin provided fixes for both
the un-shrink and un-implode methods and posted them to
the comp.os.cpm USENET newsgroup.  The bugs were causing
spurious CRC errors to be reported and a program crash
for some .ZIP files.

The updated version can only be used to unpack ZIP files
created by PKzip for MS-DOS Version 1.x.  Some of these
.ZIP files exist on various CP/M archives on the Internet
(e.g. the Walnut Creek CP/M collection).

You'll find it at

https://github.com/agn453/UNZIP-CPM-Z80

Note: The CP/M version DOES NOT support the memory-
intensive Deflate algorithm implemented by PKzip 2.04g
and Info-ZIP (the open-source version of ZIP that's used
by Unix/Linux and included with Microsoft Windows and
macOS).

Tony

Jonathan Harston

unread,
Jun 18, 2020, 12:14:57 PM6/18/20
to RC2014-Z80

Tony Nicholson wrote:
The updated version can only be used to unpack ZIP files
created by PKzip for MS-DOS Version 1.x.

.... and 'stored' files created by any version of ZIP on any platform.

Well done, I've had a long-dormant project to update ZIP/UNZIP for
CP/M.

jgh

Richard Deane

unread,
Jun 18, 2020, 12:47:47 PM6/18/20
to RC2014-Z80
Jgh -  what do you mean by "stored"  files? Your reply is very ambiguous without more context. Are you suggesting that a broader range of files can be unzipped by this older zip protocol?

Richard

Jonathan Harston

unread,
Jun 19, 2020, 8:42:04 PM6/19/20
to RC2014-Z80
On Thursday, 18 June 2020 17:47:47 UTC+1, Richard Deane wrote:
Jgh -  what do you mean by "stored"  files? Your reply is very ambiguous without more context. Are you suggesting that a broader range of files can be unzipped by this older zip protocol?

Stored files are files that are... um... stored. Not compressed. Storage method zero. All ZIP and UNZIP tools support stored files as it's the absolute base capability of any archiving tool.

See paragraph 4.4.5 in http://mdfs.net/Docs/Comp/Archiving/PKZip/APPNOTE

jgh

Richard Deane

unread,
Jun 20, 2020, 5:20:44 AM6/20/20
to RC2014-Z80
Thank you for the explanation. Now  I comprehend your earlier message.
Richard

Tony Nicholson

unread,
Oct 15, 2020, 7:53:02 PM10/15/20
to RC2014-Z80
Just a "heads up" that there's been additional work on the Z80 CP/M
version of UNZIP.  It now supports extracting files compressed with the
Deflate algorithm thanks to efforts by Martin, Keir Fraser and Russell
Marks.

This means it is now capable of extracting files from .ZIP archives
created by MS-DOS PKzip V2.04 and various Info-ZIP derivatives (on
Unix/Linux/macOS/Windows).

You'll find the latest version and update information on my GitHub at


Also, you can download the source-code and binary in a CP/M LBR
file for the latest V1.5-3 release from


Tony


Tony Nicholson

unread,
Jun 15, 2021, 7:38:24 PM6/15/21
to RC2014-Z80
There's been an update to fix an issue with the Z-system version of the CP/M
Z80 version of UNZIP.  Previously some .ZIP files caused the program to hang
when trying to extract all files.

You'll find the latest version V1.8-7 available on my GitHub repository at


or download the source-code and updated binary in a CP/M library file
from


Thanks go to Lars Nelson for finding and fixing this.

Tony

Lumír Vaněk

unread,
Jun 16, 2021, 4:52:42 AM6/16/21
to rc201...@googlegroups.com
I've tested it on Z-System - works fine - thanks !

Bye,
Lumir

st 16. 6. 2021 v 1:38 odesílatel Tony Nicholson <agn...@gmail.com> napsal:
--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/3dce20f0-05f4-4a5d-8678-ad2f273ea96dn%40googlegroups.com.

ladislau szilagyi

unread,
Feb 15, 2022, 9:00:56 AM2/15/22
to RC2014-Z80
Tested UNZIP187.COM, works fine.
Thanks,
Ladislau
Reply all
Reply to author
Forward
0 new messages