/*Write an ARM assembly function that takes two signed parameters, and checks for LE 
(signed less than or equal) conditions code to check if the higher first parameter is 
less than or equal to the second parameter. If sint_a value is less than or equal to 
sint_b value, then return value ‘1’ and print “sint_a is lower than or equal to sint_b”, 
else return value ‘0’ and print “sint_a is higher than sint_b” in C++ program.*/

void setup() {}

extern "C" {
  int lab5_act_2_8(int, int);
}

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);

  if (lab5_act_2_8(a, b) == 1) printf("%i is lower than or equal to %i\n", a, b);
  else printf("%i is higher than %i\n", a, b);
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT