Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - rwill

#1
Hi all,

I got a request for assistance via mail and could not help further.

The problem the person is having is that the transfer of a file fails with a message from the
Link software that "An unsupported file was encountered. Only TI-Nspire (.tns) files may be
sent to a connected handheld.".

The file in question is pak0.pak.tns for quake.

Now as it used to work for me with version 3.9.0.455 of the link software and OS 3.6 I wonder
if TI added something to later versions which prevent certain files to be sent to the Nspire, or
if this could be caused by something else or if anyone here already encountered this error
too and knows the cause.
#2
Hello,

just in case someone needs to compress data on a powerful machine and then decompress it fast in a low performance low memory environment I made a deflate ( think zip ) like compression/decompression utility in C. The compression part is heavily unoptimized while the decompression part is using below 1kb of memory plus a window of the previously decoded data. The functions for decompression are also kind of optimized for simplicity, a 8 or 16 bit CPU should be enough. Its compressing 4 bit at a time or copies blocks of 8 bit data from the previously decoded data. The compression ratios are surprisingly good given the constraints I set.

I dont know how to make the source available though as it seems I cannot attach small text files to posts I make.

Source code is here: pastebin.com/6RQ7JnjF

Setting WITH_LITERAL_ONLY_TREE to 0 reduces decompression memory usage further at the cost of compression ratio. The 1kb memory statement assumes that you decompress from ROM, otherwise you need to load the compressed data from a medium into a buffer. Modify as needed and the like...
Powered by EzPortal