Hello I want to know how we define pointer at any explicit location. My structure cointains two int type element. struct frame { unsigned int i; unsigned int j; }*ptr; When i define a pointer to this structure then it points to odd address, when i use this pointer in programm it gives folowing traps. 'Word operand illegal access' Is there is any method in c166 by which this pointer points to an even address to prevent this problem. Reply me soon.
Sorry, but your message is quite confusing (I guess written under hurry). C166 defines int members on even addresses, so you must have done something special. Reading the manual should help: http://www.keil.com/support/man/docs/c166/c166_ap_absmemloc.htm http://www.keil.com/support/man/docs/c166/c166_pack.htm http://www.keil.com/support/man/docs/c166/c166_bytealign.htm See also: http://www.keil.com/support/docs/1689.htm http://www.keil.com/support/docs/1689.htm Reinhard