• DEBUGGING: Macros with variable parameter list?
    Hi, has the C compiler/preprocessor the ability to translate "variadic macros" - Macros with a variable parameter list like in the Ansi C99 standard? If not, how can one implement a debug printf (variable...
  • ## 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...
  • 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...
  • 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,...
  • Are there any predefinied macros for armasm?
    Hi, i want to check with a IF :DEF:xxxxxx if my assembler routine was assembled with the Keil assembler for ARM or with a IAR or with a TI toolchain. The compiler predefines like __arm__ are...