ok so I've bubble sorted the string.. is there a way to print out individual characters from the string?
this code prints out my array as a string, but I want to access the individual chars in it.
# Print the sorted array
li $v0, 4
la $a0, sorted # Print "Sorted: "...
I've written sorts before, just not in assembly.
I know how to get the string (user input or hardcoded) into a register and how to work my way through it, but I'm not sure how to make it get sorted, or sort into another register.
data
str: .asciiz "zghfjsdkalqpwoeirutyvn"
.text
.globl main...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.