I am kind of confused about using the _at_ keyword to assign a specific address to a variable.
so for example :
extern xdata char variable _at_ 0x000f;
it fills 3 bytes in xram . can any one explain how is the compiler handling these sequence. Thank you !
Are you sure that line of code is exactly what you are compiling?
It seems neither of you read the manual and realized the glaring mistake.
BTW it fills 3 bytes in xram is definitely wrong, but not the issue
Erik
Ok, I give up. What is the glaring mistake?
the _at_ must be in the declaration of the variable, not in an extern ref, that does not make whatever module the variable is in know where to put it
ohhhhhhh... i think i found my mistake, i will test my code in the morning.. and i'll let you know. Thanks alot !
View all questions in Keil forum