;
; simple program to compute the max of
; two numbers
;
        loa r2 r0       ; get the first value and put it in r2
        loa r3 r0       ; get the second value and put it in r3

        bge r3 r2 done  ; check if r3 >= r2, if so jump to done
        add r3 r2 0     ; r3 = r2, (r2 is larger so copy it)
done
        sto r3 r0
        hlt
