• compiler crash instead of error in macro definition usage
    I am using C51 compiler V7.50 I don't know if this 'works' on other versions however I was able to crash the compiler by this 'silly' macro usage // causes compiler to crash #define WORD_SIZE(N)...
  • 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,...
  • ## 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...
  • Macro fails at compile
    Hello, I am creating the MAKELONG, HIWORD, LOWORD like in Window's C programming. However, when I create the macro's below I get the error message that follows. Anyone have any suggestions...
  • assembler macro included in C macro
    l.s., For delay purposes I need NOP's in an assembler macro, the code below doesn't do the trick. Thread 2267.htm doesn't help me either. A C macroloop, with e.g. DELAY(a); a = 10, slows the execution...