Quantcast
Channel: MPLAB XC16
Viewing all articles
Browse latest Browse all 1508

Local C variables in inline assembler (Batgoy)

$
0
0
How? With older compilers all works fine.extern int evar;
void test(void){
int var=0x5a14;
__asm__ volatile("mov _evar, w0\n");
__asm__ volatile("mov var, w1\n");
}After compiling: undefined reference to `var'..

Viewing all articles
Browse latest Browse all 1508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>