1) Get data from x5000 using LDI and store it into R0 2) Get data from x5001 using LDI and store it into R1 3) Store the two's complement of R1 into R2 using R2 = NOT(R1) R2 = R2 + 1 4) Add R0 and R1 and put the result into R3 (ie, R3 = R0 - R1 ultimately) 5) If n flag is set (ie, R3 < 0 => R0 - R1 < 0 => R1 > R0) store R1 into x5002 6) Else, store R0 into x5002 7) HALT