Skip to content

Instantly share code, notes, and snippets.

@circuitsenses
Last active August 29, 2015 14:06
Show Gist options
  • Save circuitsenses/2eacf105c7412284e479 to your computer and use it in GitHub Desktop.
Save circuitsenses/2eacf105c7412284e479 to your computer and use it in GitHub Desktop.
Bubble sort ARM assembly implementation
#define MAX_ELEMENTS 10
extern void __sortc(int *, int);
int main()
{
int arr[MAX_ELEMENTS] = {5, 4, 1, 3, 2, 12, 55, 64, 77, 10};
__sortc(arr, MAX_ELEMENTS);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment