Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Snappy compression - script to build a compressed executable (Announce)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 09.02.2025, 21:38

I added the few needed changes to allow using snappy.asm's depacker for the test file mode of the inicomp repo. This is a small application that loads a packed image from a file, depacks it entirely in memory, and writes the depacked image to another file. This is how to build it and the size of the executable:

$ nasm testfile.asm -o testfile.com -I ../lmacros/ -D_SNAPPY
$ ls -lgG testfile.com
-rw-r--r-- 1 2245 Feb  9 21:29 testfile.com


You use it like testfile input.sz output.dat and it emits the message "Done." if it had enough memory and the depacking seems to have succeeded. Unlike the test program, it doesn't take the original uncompressed data as an input and therefore doesn't compare its output to check that it is exact. So you should compare the output to the original file yourself.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22256 Postings in 2057 Threads, 398 registered users, 98 users online (2 registered, 96 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum