/* Write an ARM assembly function that takes two unsigned parameters,
and checks for HS (unsigned higher or same) condition code to check if the first
parameter is higher or same as the second value. If uint_a value is higher or same as
uint_b value, then return value ‘1’ and print “uint_a is higher or same as uint_b”,
else return value ‘0’ and print “uint_a is lower than uint_b” in C++ code.
Function prototype: lab5_act_1_3(unsigned int, unsigned int) */
#include <stdio.h>
#include <stdlib.h>
extern "C" {
int lab5_act_1_3(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");
if (lab5_act_1_3(x,y) == 1)
{
printf("Result: uint_a is higher or same as uint_b");
}
else
{
printf("Result: uint_a is lower than uint_b");
}
return 0;
}