This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

using idata

hello there.....

my name is hardian, from indonesia

i wrote some code using keil.

the code is :

idata char nim[14] _at_0x00 ;
// i read from the keil textbook (the blue one)


but when i compile it, there's an error message:

missing ';' before '_at_0x00


can u tell me why this is happened ?
or, what should i do with the code ?

thanks very much...

sincerley,
hardian

Parents
  • idata char nim[14] _at_0x00 ;

    You need a space before and after the _at_ keyword. Re-written for correctness:

    char idata nim[14] _at_ 0x00;
    Yes the idata goes in between the char and the nim if you want to be current with Keil C51 although idata char nim will still work.

    - Mark

Reply
  • idata char nim[14] _at_0x00 ;

    You need a space before and after the _at_ keyword. Re-written for correctness:

    char idata nim[14] _at_ 0x00;
    Yes the idata goes in between the char and the nim if you want to be current with Keil C51 although idata char nim will still work.

    - Mark

Children