Re: [cc65] C128 Bank Switching and cc65

From: Daniel Pralle <dpralle1gmx.de>
Date: 2010-05-05 22:32:19
On 05/05/2010 02:30 AM, Payton Byrd wrote:

> Finally, and this has nothing to do with banking, is it possible to have a
> specific array be allocated to a specific memory location?

I don't know if I understand your question correctly.
Does this help:

unsinged char* array1;
unsigned char* array2;

array1 = 0xd800;		// or what ever address you need
array2 = 0x0600;		// another address

for ( i = 0; i < 0xff, ++i)
	array2[i] = array1[i];



salut,
   daniel


PS: AFAIU the manual *(array2++) = *(array1++) is slower. Right?
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed May 5 22:32:32 2010

This archive was generated by hypermail 2.1.8 : 2010-05-05 22:32:35 CEST