/* 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.
Function prototype: lab5_act_1_4(int, int) */
#include <stdio.h>
#include <stdlib.h>
extern "C" {
int lab5_act_1_4(int uint_a, int uint_b);
}
int main() {
unsigned int x,y,result;
printf("Enter the value for x:");
scanf("%d",&x);
printf("%d",x);
printf("\nEnter the value for y:");
scanf("%d",&y);
printf("%d",y);
printf("\n");
result = lab5_act_1_4(x,y);
if (result == 1)
{
printf("Result: uint_a is higher or same as uint_b");
}
else
{
printf("Result: uint_a is lower than uint_b");
}
return 0;
}