beq $s4, $s0, else # if i = j add $s1, $s2, $s3 #f = g+h j end else: sub $s1, $s2, $s3 #f = g-h end: sub $s1, $s2, $s3 #f = g-h