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
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
You can also use the linker 'ASSIGN' command to define an address from the command line. Best luck, Scott