/* Write an ARM assembly function that checks if the quotient of two signed integers
is greater than or equal to zero. Return 1 if the condition holds; otherwise, return 0.
Test the function using a C++ program.
Function prototype: quotient_comparison(int a, int b)*/
#include <stdio.h>
#include <stdlib.h>
extern "C"{
unsigned int quotient_comparison(int x,int y);
}
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
signed int x,y;
printf("Enter the value of x:");
scanf("%d",&x);
printf("%d",x);
printf("\nEnter the value of y:");
scanf("%d",&y);
printf("%d",y);
printf("\n");
if(quotient_comparison(x,y) == 1)
{
printf("The quotient between two signed integers is greater than or equal to zero\n");
}
else
{
printf("The quotient between two signed integers is less than zero\n");
}
}