On Friday 06 November 2009 00:23:53 Raphael Neider wrote:
> You can prevent it by (a) updating to sdcc 2.9.4, >= r5568 (either using
> a snapshot or the svn head) or (b) by avoiding generic pointers,
> replacing them with __data pointers:
>
> unsigned char text[10];
>
> void LCD_String(__data unsigned char *s)
> {
>    LCD_Char(*s);
>    LCD_Char(*(s+1));
>    LCD_Char(*(s+2));
>    LCD_Char(*(s+3));
> }

I have briefly tried suggested code (__data pointer), but still no luck. 
Program still works as random character generator on subsequent LCD_Char() 
calls. I will update as soon as I write ebuild form my gentoo system. Thanks,


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to