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

i tried to make a space but it's still said "missing ';' before '_at_'"
i wrote :
char idata nim[14] _at_ 0x00;

and is idata starting address at 0x80?
and data starting address at 0x00?

so, if i want to set an array starting at the first address of idata, is it right if i define the array as idata and starting address at 0x00?

or i should starting at 0x80?

thanks very much

sincerly,
hardian

Parents
  • You should only use absolute addressing when you need to access external memory

    In general, you wouldn't need it for external memory (XDATA).

    Only use it if there's a specific reason why something has to be at a specific, fixed address location.

    otherwise, let the compiler sort out the allocation of variables in the available memory space.

Reply
  • You should only use absolute addressing when you need to access external memory

    In general, you wouldn't need it for external memory (XDATA).

    Only use it if there's a specific reason why something has to be at a specific, fixed address location.

    otherwise, let the compiler sort out the allocation of variables in the available memory space.

Children
No data