/*Write an ARM assembly function that performs 8 times arithmetic shift right operation
on one signed (Negative number) 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 arshift(int a);
}
int main() {
int x;
printf("enter x: ");
scanf("%i", &x);
printf("%i\n", x);
printf("%i\n", arshift(x));
return 0;
}