Tom3333
asked on
how can implement buble sort using only 2 registers
i need to implement bubble sort in assemply using only 2 registers.
Is anyone how have information about this concept ?
Is anyone how have information about this concept ?
Well, since you only need to swap (1 register) and remember where you were in the main loop (second register) it should be straight forward. Where are you stuck?
You may need to use XCHG instead of MOV at least once in your code (assuming this is about x386 assembly)
ASKER
hello TommySzalapski
,
i stuck because i have a confuse how to do the swap.
,
i stuck because i have a confuse how to do the swap.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.