• MACROS TOO NESTED
    Hi all, I have a code already written on an 8051 based controller, in which I am enabling some features through Preprocessor Directives. In that process, I am struck at the following error. C51 COMPILER...
  • MACROS TOO NESTED
    I'm not very familiar with keil and normally never include c files, i add them to a project. But new to keil i added only my main.c to the project and included every *.c file in main.c. While...
  • MACRO
    Hello, May I know if the code as shown below works? -------------------------------------------- #pragma src void main(void){ #pragma asm myMacro MACRO MOV R1, #01 MOV R2, #02 MOV R3,...
  • nested #defines
    does anyone know a way to accomplish nested defines, such as: #define neword(name,idx) #define name idx so then a source line: neword(xENTER,5) would generate: #define xENTER 5
  • ## Macro
    Hi, I am use the ## as follows #define ADC_SRV_DEV 1 #define ADCCON(dev, chan, reg) AD##dev##CON##chan##reg then when I give ADCCON(ADC_SRV_DEV, 1, bits.FORM) = 3; // this is equavalent...