Re: [cc65] RLE Toolkit

From: MagerValp <MagerValp1cling.gu.se>
Date: 2004-09-24 15:36:35
>>>>> "UvB" == Ullrich von Bassewitz <uz@musoftware.de> writes:

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

Yep, I'll be using it for bitmap graphics myself.

UvB> One suggestion: If you use the const qualifier as in

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

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

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

OK.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Sep 24 15:36:38 2004

This archive was generated by hypermail 2.1.8 : 2004-09-24 15:36:47 CEST