/*Write an ARM assembly function that performs 2 times logical shift right operation
on one parameter and returns the result to a calling C program.*/
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
}
extern "C" {
int rshift(int a);
}
int main() {
int x;
printf("enter x: ");
scanf("%i", &x);
printf("%i\n", x);
printf("%i\n", rshift(x));
return 0;
}