; ; simple program to compute the max of ; two numbers ; ; Does the something along the lines of: ; a = input_from_user ; b = input_from user ; ; 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 adc r3 r2 0 ; r3 = r2, (r2 is larger so copy it) done sto r0 r3 hlt end