#include<stdio.h>
#include<stdlib.h>
// Define external assembly function
extern "C" {
int get_smallest(int x, int y);
}
void setup() {
Serial1.begin(9600);
}
int main() {
int x, y, smallest;
// Get input from the user
printf("Enter the first number: ");
scanf("%d", &x);
printf("%d",x);
printf("\nEnter the second number: ");
scanf("%d", &y);
printf("%d",y);
// Call the assembly function to find the smallest number
smallest = get_smallest(x, y);
// Display the result
printf("\nThe smaller number is: %d\n", smallest);
return 0;
}