The SRT instruction gives out the highest value detected, I think you can use a EQU instruction to compare this value to identify which one is the highest.
Maybe i'm wrong, haven't written a code to see if it works, but worth a try
OK, guys. I know I live in Wisconsin and have drunk away more brain cells than I am left with. But I don't understand what a sort will do for you in this case other than obscure the original information that is being sought and require additional evaluation to find it. Someone will need to explain to me how any of the solutions proposed using a sort is any cleaner than what destination unknown proposed in post 7.
Remember, the OP doesn't care what the value is or how it relates to any other value. He just wants to know what array location contains the highest value because that tells him the location on the machine the highest jam occurrence.
I understand the solution with the FOR loop will work.
I just offered Mickey's solution using common ladder logic and a brute force method. I also wanted the OP to understand that by using the SRT function you need to make a copy to work with and keep the original in tact.
Just to be clear for those of you scoring at home, the ladder that destination unknown posted above is a more compact version of what cwal61 posted, NOT the solution that destination unknown posted in post 7.