Hi, all.
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?
Regards,
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.
www.avrfreaks.net/.../2800826
https://www.avrfreaks.net/comment/2839056#comment-2839056