volatile uint32 myVar;#define myMACRO() asm {\ TST.L myVar\ BEQ LABEL\ ADD.L %-1,myVar\LABEL:\ }I would like to know how to to genarate unique label each time the macro is used, I tried "\@" after label name but it doesn't work.
Solved! Go to Solution.
extern volatile uint32 myVar;inline asm void myFunction(void){ TST.L myVar BEQ LABEL ADD.L %-1,myVarLABEL:}#define myMACRO() myFunction()Emmanuel,
extern volatile uint32 myVar;inline asm void myFunction(void){ TST.L myVar BEQ LABEL ADD.L %-1,myVarLABEL:}#define myMACRO() myFunction()Emmanuel,
Message Edited by BugMan on 2006-10-2504:02 PM