Hi all

I'm looking for some infos, samples or source code to compress/decompress file in zip format with asm laguage.

I need to implement zip compression/decompression functions in my project, to compress large Tiff images before sending them on a server.

I read somes doc about zlib, unfortunately I didn't find
any sample code in asm.

Thank you for you help.

Posted on 2001-12-03 06:33:52 by colio
I don't know how to compress, but I remember that Iczelion made a prog that download a zip file, and shows in a list the compressed file. Then you can select the files you want and then the prog decompress the selected files to a directory. I think that you can download it on Iczelion's website (at here .
Posted on 2001-12-03 07:05:06 by Vom-bonjour:-()

i dont know about ZIP format but there are other compression and decompression routine available coded in asm. one of them i saw was fast. i dont remember where i got it from but if u r interested i can find it out.

Posted on 2001-12-03 07:12:01 by goto
Vom-bonjour & Goto thank you for your replys.

Goto , yes i'm interesting by your fast compressio/decompression

Thank you.


PS: Vom-bonjour your link is broken :((
Posted on 2001-12-03 07:48:30 by colio
Zlib isn't exactly hard to use from asm. Get a precompiled lib, look
at the C function prototype, port it to asm, and you're done. Boom.
If you want to deal with zip files, grab the infozip source. They have
a DLL version that's pretty easy to use in most languages.

Don't expect to be spoonfed, do a little effort...
Posted on 2001-12-03 11:17:02 by f0dder
Yeah, the link is dead, maybe Iczelion has changed of mirror (he has many mirrors).
Here is a link alive : Yeah! .

Goto, I would be also interested in the code you saw, really, if you find it, you can mail it to me ? Thanks.

One day, I foudn a great, very great, site about all the compression type (zip, arj, arc, lha, rar (the best in my opinion), ...If someone find it, tell me.
Posted on 2001-12-03 11:21:47 by Vom-bonjour:-()
If you're interested in fast and good compression, check out Joergen Ibsens
aPLib. He's a great coder, and a great guy. http://apack.cjb.net .
I thought hutch included aPLib in masm32? Jeremy Collake's jcalg
isn't too shabby either (guess why... it uses Jibz' code format :D).
Posted on 2001-12-03 11:25:52 by f0dder
Hutch has included the example prog for Masm, look in the example3 directory, you'll find it (acalled ppack)
Posted on 2001-12-03 11:37:47 by Vom-bonjour:-()
Posted on 2001-12-03 12:31:53 by bazik
I'd still use aplib or jcalg. And use my bin2coff to link the data into
the executable in .data instead of as a resource.
Posted on 2001-12-03 12:37:27 by f0dder
thank you for your information guys.

I give you the result of my search in some links:

- shareware: DLL written in ASM (ZIP UNZIP).

- VB Source code (easy to translate in asm): see Zlib Wrapper
http://www.frez.co.uk/freecode.htm (ZLibWrapper.zip)

- FREE : ASP VB OCX : EASY to use with COM - ASM interface
(thx Erni)


Posted on 2001-12-03 17:40:44 by colio
Official info-zip site, freeware, DLL or lib, comes with source:
Posted on 2001-12-03 18:27:52 by f0dder
Posted on 2001-12-03 18:44:18 by CodeLover

the site that offer free compression/decompression routine is


Posted on 2001-12-03 21:51:04 by goto
Maybe this is the all-formats compression site ?
Posted on 2003-08-27 13:29:16 by inFinie