Re: [cc65] C128 Bank Switching and cc65

From: Karri Kaksonen <karri1sipo.fi>
Date: 2010-05-06 06:12:03
Payton Byrd wrote:
>
>
> On Wed, May 5, 2010 at 3:32 PM, Daniel Pralle <dpralle@gmx.de 
> <mailto:dpralle@gmx.de>> wrote:
>
>
>     for ( i = 0; i < 0xff, ++i)
>            array2[i] = array1[i];
>
>
>
> Yup, this is what I was looking for.  I just saved 1K of RAM in the 
> C64 version by doing this.

You might even save some more by using common library functions found in 
cc65.

memcpy(array2, array1, 256);

There are other nice memory functions too like:

memset(array2, 'X', 256);

equal = (memcmp(array2, array1, 256) == 0);

Plus there is tons of supercool other functions in the cc65 suite. See 
the function reference section in the docs.
--
Karri

----------------------------------------------------------------------
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 May 6 06:12:18 2010

This archive was generated by hypermail 2.1.8 : 2010-05-06 06:12:21 CEST