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