On Thu, 27 May 2004, [ISO-8859-15] Matthias H=E4nel wrote:
> > I tried different types but nothing worked :(
> > I found a post of vangelis from 5th january and he wrote:
> > configuration words can be set with:
> > data char at 0x300000 conf0 =3D 0xff;
> > or
> > data unsigned int at 0x300000 conf0 =3D 0xffff;
> > but this doesn't seem to work anymore.
> > I just try to enable the _HSPLL_OSC_1H EQU H'FE' ; HS PLL .
=09This was true, but I haven't touched that piece of code since
=09Well, it is now fixed, with the new revision
(see ChangeLog ver. 1.735).
You declare the configuration words with the following code:
char at 0x300001 conf0 =3D 0xfe;
I know this isn't right, because it seems that data will be placed in the
data memory, but it seems there is an optimization in SDCC which discards
the assignment if you put the specifier 'code' before the 'char'.
I asked Erik to take a look at it.
Now it should work ok.
Unfortunately there are more problems with code initialisations,
for example the line:
code char name=3D"foo";
doesn't produce any valid code. It was Hans who was working on it last
time, but didn't have the time to fix it.