/*Write an ARM assembly function that takes two unsigned parameters, and checks for LS
(unsigned lower or same) condition code to check if the first parameter is lower or same
as the second value. If uint_a value is lower or same as uint_b value then return value
‘1’ and print “uint_a is lower or same as uint_b”, else return value 0 and print “uint_a
is higher than uint_b” in C++ code.*/
void setup() {}
extern "C" {
int lab5_act_2_5(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_5(a, b) == 1) printf("%i is lower or same as %i\n", a, b);
else printf("%i is higher than %i\n", a, b);
}