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