inline int foo(int a, int b, const int immed) { register int result; __asm { add result, a, b, lsl #immed }; return(result);}