/*Write an ARM assembly function that takes two signed parameters, and checks for GT
(signed greater than) conditions code to check if the higher first parameter is greater
than the second parameter. If sint_a value is less than sint_b value, then return value
1 and print “sint_a is greater than sint_b”, else return value 0 and print “sint_a is
less than or equal to sint_b” in C++ program.*/
void setup() {}
extern "C" {
int lab5_act_2_7(int, int);
}
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_7(a, b) == 1) printf("%i is greater than to %i\n", a, b);
else printf("%i is less than or equal to %i\n", a, b);
}