gnupic: Re: [gnupic] 18F, table read, sdcc
Subject:
Re: [gnupic] 18F, table read, sdcc
From:
Peter Onion ####@####.####
Date:
6 Aug 2005 19:14:16 +0100
Message-Id: <1123352026.5932.18.camel@HP.RoomLan>
On Sat, 2005-08-06 at 19:57 +0200, Alessandro Zummo wrote:
>
> Hi Peter,
>
> thank you very much for your help: __ code worked just fine!
>
> I've also noticed the same result can be obtained by
> declaring myData as const .
>
> Both behaviours seems to be undocumented, or maybe
> I'm just missing the right doc.
Hmmmmmm I'm not sure if it is in the manual, and I can't remember how I
found out about it !
>
> Accessing thru a pointer like tou did in your
> example is not working though...
Oh. It works fine here.... I have a count displayed on an LCD
using both methods...
for(n=0;n<8;n++) printf("%d,",myData[n]);
for(n=0;n<8;n++) printf("%d,",*myDataPointer++);
I am using a version of sdcc built from CVS though ...
sdcc -v
SDCC : pic16/pic14 2.5.2 #1082 (Aug 5 2005) (UNIX)
Peter