/*Write an ARM assembly function that takes two input parameters, performs an
XOR logic operation on it, and returns the result to a calling C program. */
#include <stdio.h>
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
}
extern "C" {
int xor_func(int a, int b);
}
int main() {
int a, b;
printf("enter a: ");
scanf("%i", &a);
printf("%i\n", a);
printf("enter b: ");
scanf("%i", &b);
printf("%i\n", b);
printf("%i\n", xor_func(a, b));
return 0;
}