Is it possible?
For a senseless project I'm trying to squeeze QL unzip onto a real mdv cartridge. The unzip program is about 110k, which just about fits onto some cartridges (but not all because some don't format with enough sectors).
It there a working version of QL unzip that is considerably smaller or is there a way of reducing its size somehow? I get nervous with things that take up the entire mdv cart.
Squeezing unzip onto mdv...
- Chr$
- QL Wafer Drive
- Posts: 1314
- Joined: Mon May 27, 2019 10:03 am
- Location: Sachsen, Germany
- Contact:
Squeezing unzip onto mdv...
https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
Re: Squeezing unzip onto mdv...
If you're happy with a program that is only able to unzip the first file from a zip file (maybe because you've put only one file in there), you can use funzip, which is part of the infozip QL package and only about one third of unzip's size.
funzip unzips the first file of an archive to stdout, so must be used a bit differently:
will extract the first file in test_zip (regardless what its name is) and write its contents to ram1_test_txt. I'm pretty sure you will also lose the file's header if it had one.
Tobias
funzip unzips the first file of an archive to stdout, so must be used a bit differently:
Code: Select all
ex funzip;"test_zip >ram1_test_txt"
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Squeezing unzip onto mdv...
Here is the full 110K version of unzip "smashed" down to 60K. I tested it and it works as advertised (you just need more than 128K of RAM)...i.e. you can type:
exec_w mdv1_unzip_smash;"mdv2_file_zip"
exec_w mdv1_unzip_smash;"mdv2_file_zip"
- Chr$
- QL Wafer Drive
- Posts: 1314
- Joined: Mon May 27, 2019 10:03 am
- Location: Sachsen, Germany
- Contact:
Re: Squeezing unzip onto mdv...
Thanks both.
I don't think either of those will be suitable as I can envisage the need to unzip an _exe and it's also mainly designed for a bog standard 128k QL.
I don't think either of those will be suitable as I can envisage the need to unzip an _exe and it's also mainly designed for a bog standard 128k QL.
https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.