Hello MB,
Could you write more detail about definition of array? As I know, all
variables takes places in data memory not in code memory. You should give
modification word for defining variables in code memory. So this is
littlebit more complicated.
The other point is the size of your array. If its type is char, its size
will be 95x7 = 665 bytes ( or words if it is takes place in code memory ).
I think array is bigger those size what a pic14 device can handle.
Zsolt
2014-02-12 17:20 GMT+01:00 M L <maricol...@gmail.com>:
> Hello,
> I have a 2 dimensional array with static values: unsigned char
> my_tab[95][7] ={ ..} and it's located in a code memory. When I read
> array with the following code:
>
> unigned char index, v;
>
> { index is computed ...}
> v=my_tab[index][0];
>
>
> my "v" has unexpected value when computed index is above 36. When I
> change index to unisgned int, values readings are as expected. Is
> there any know issues with array index variables in pic14 port?
>
> regards,
> mb
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
--
~~~~~~~~~~~~~~~~
http://galzsolt.zzl.org
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user