/*Write an ARM assembly function that takes two unsigned parameters, and checks for LO
(unsigned lower) condition code to check if the first parameter is lower than the second
value. If uint_a value is lower than uint_b value prints its return value ‘1’ and
“uint_a is lower than uint_b”, else prints its return value ‘0’ and “uint_a is higher
or same as uint_b” in C++ code.*/
void setup() {}
extern "C" {
int lab5_act_2_3(unsigned int a, unsigned int b);
}
void loop() {
int a, b;
printf("enter a: ");
scanf("%i", &a);
printf("%i\n", a);
printf("enter b: ");
scanf("%i", &b);
printf("%i\n", b);
if (lab5_act_2_3(a, b) == 1) printf("%i is lower than %i\n", a, b);
else printf("%i is higher or same as %i\n", a, b);
}