Re: 18F, table read, sdcc

Peter Onion <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.