We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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