static int getReg(){ int32_t reg; asm ( "adc %[reg], %#0, %[reg] \n" :[reg] "=&r" (reg) : : "cc" ); return reg; }