Re: [cc65] RLE Toolkit

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-09-23 23:56:18
On Thu, Sep 23, 2004 at 11:34:44PM +0200, MagerValp wrote:
> I've written a small RLE compression library for a cc65 project, and
> now there's a beta for everyone to test:

Good stuff! rle_unpack can be used to copy packed sprite data and similar
things into place, replacing memcpy.

One suggestion: If you use the const qualifier as in

  unsigned int __fastcall__ rle_pack(unsigned char *dest,
                                     const unsigned char *src,
                                     unsigned int length);

  unsigned int __fastcall__ rle_unpack(unsigned char *dest,
                                       const unsigned char *src);

tools like lint are able to do better checking in case of problems. Advanced
compilers (not cc65) may also be able to generate better code if data is known
not to be writable.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Sep 23 23:56:23 2004

This archive was generated by hypermail 2.1.8 : 2004-09-23 23:56:32 CEST