• 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...
  • a problem with macro definition
    #define FLASH_BASE 0x080000 #define RECORD_SIZE 32 #define RECORDS_PER_SECTOR (FLASH_SECTOR_SIZE / RECORD_SIZE) #define MAX_RECORD_NUM 30135 #define MAX_RECORD_ADDR (MAX_RECORD_NUM * RECORD_SIZE...
  • PROBLEMS WITH MACROS WHEN DEBUGGING
    When I am debugging an assembler module in uVison2 v2.40 and I set a breakpoint in a macro (standard macro), the debugger executes all instruccions in that macro unless the last instruction. But...
  • Macro translation problem
    I am converting some old Standard Assembler Macros over to MPL. I am stuck on the old IRPC directive which was soo useful. I can't find anything similar in MPL. Any help on "rolling my own" MPL version...