; ; computes the abs of input from user ; loa r3 r0 ; get the second value and put it in r3 bge r3 r0 done ; check if r3 >= 0, if so jump to done sdc r3 r0 r3 ; r3 = 0 - r3 (i.e. negate r3) done sto r0 r3 hlt end