Quote:
|
Originally Posted by mrynit
I dont know ASM but cant you make a list of the numbers then sort that list so the first or last numbers are the smallest and then grab those numbers? maybe try doing the ordering function in high level then porting it to ASM.
|
When you know what you're looking for, a list is pointless. Keep only enough variables for what you want to end up with, and compare each new value to see if it should take the place of what's in the variables. At the end, you should end up with what you want.