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

'_at_' command

Hi guys!
How can I compile codes with '_at_' command ? i mean with a C166 compiler, the previous guy had did the compilation using a C51 compiler but I need to compile it using C166 instead.

thanks

Parents
  • There is no _at_ command available using C166.
    To put variables in exact memory locations, you can convert your source code like this:
    C51:
    unsigned char xdata test _at_ 0x12345;
    C166:
    #define test MVAR (unsigned char, 0x12345)

    Since you are now using a 16 bit mc, make sure that you check the _at_ locations in your C51 source code so that you don't place short or long variables at un-even addresses.

    Holger

Reply
  • There is no _at_ command available using C166.
    To put variables in exact memory locations, you can convert your source code like this:
    C51:
    unsigned char xdata test _at_ 0x12345;
    C166:
    #define test MVAR (unsigned char, 0x12345)

    Since you are now using a 16 bit mc, make sure that you check the _at_ locations in your C51 source code so that you don't place short or long variables at un-even addresses.

    Holger

Children
No data