I'm making loop counter using inline assembler in C51.(attach file )
I'm trying use variable that decleared in C language.But when I build, variable name changed in SRC file.( "uint8_t i", "uint8_t cnt0", "uint8_t cnt1" to ”i?040 ”, ”cnt0?041 ”, ”cnt1?042 ” )
It build successfully, when I tried variable name to ”i?040”, ”cnt0?041 ”, ”cnt1?042” manually in SRC.However, it will be difficult if there are many variable names, so I would like to know a solution if possible.Is there way to resolve this issue?
Hiroki Yoshida said:I would like to know a solution
Just don't do it!
If your code needs to be in assembler, then put it in a proper assembler source file.
View all questions in Keil forum