Skip to content

Runitor/yasm-bubble-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

[YASM] Bubble Sort algorithm

A simple program to sort a list of numbers using the following bubble sort algorithm:

for (i = (length - 1) to 0) {
	swapped = false
	for (j = 0 to i - 1)
		if (list[j] > list[j + 1]) {
			tmp = list[j]
			list[j] = list[j + 1]
			list[j + 1] = tmp
			swapped = true
		}
	if (swapped = false) exit
}

File descriptions

  • bubble-sort.asm - source code
  • bubble-sort.lst - list file
  • bubble-sort.o - object file
  • bubble-sort.out - executable (Linux64)
  • asm64 - compile/link script
  • DIF.txt - gdb debugger input file
  • out.txt - gdb debugger output file

About

[YASM] Bubble sort algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published