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