From: Gál Z. <tra...@fr...> - 2012-12-22 13:06:37
|
Hello, You can find in the SDCC documentation a modifier. It is __code ( with two underscore ). So you can try this example and see what is the different form your original code: ------------------------------------------------------------------------------------------ #include<pic16f887.h> __code unsigned char a[4] = {0x12, 0x13, 0x14, 0x15}; int main() { PORTA = a[2]; return 0; } ------------------------------------------------------------------------------------------- 2012/12/21 feqin fan <feq...@gm...>: > ------------------------------------------------------------------------------------------ > #include<pic16f887.h> > unsigned char a[4] = {0x12, 0x13, 0x14, 0x15}; > > int main() { > PORTA = a[2]; > return 0; > } > ------------------------------------------------------------------------------------------- -- ~~~~~~~~~~~~~~~~ http://galzsolt.zzl.org |