Re: [cc65] ASM to C help a n00b

From: S M <san.mes1gmail.com>
Date: 2010-05-27 22:28:26
I would like to put the lower nibble of the addresses of several array into
an array how can I do that?

unsigned char *pCharsLo [] = {char0};

the above works but will pass the full address of char0.

I tried:

 unsigned char *pCharsLo [] = {(char0 & 0xf0)};

 unsigned char *pCharsLo [] = {((unsigned char*) (char0 & 0xf0))};

But doesn't work either

Any help will be appreciated.

----------------------------------------------------------------------
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 27 22:28:31 2010

This archive was generated by hypermail 2.1.8 : 2010-05-27 22:28:33 CEST