/*Write an ARM assembly function that takes two parameters, and performs a CMP operation 
with NE (Not Equal) condition code. If the two parameters passed are not equal it returns 
a value ‘1’ and equal, returns a ‘0’. Print “The values are not equal” or else 
“The values are equal”, based on either 1 or zero received from the assembly program.*/

void setup () {}

extern "C" {
  int lab5_act_2_2(int a, int b);
}

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

  int result = lab5_act_2_2(a, b);
  if (result == 1) printf("The values are not equal\n");
  else printf("The values are equal\n");
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT