• 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...
  • 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...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • ## 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...