c***d 发帖数: 996 | 1 ☆─────────────────────────────────────☆
tennisalways (tennisforever) 于 (Wed Nov 15 18:27:53 2006) 提到:
Thanks first!
Find the shortest sequence of MIPS instructions to determine the absolute
value of a two's complement integer. Convert this instruction (accepted by
the MIPS assembler):
abs $t2, $t3
This instruction means that register $t2 has a copy of register $t3 if
register $t3 is positive, and the two's complement of register $t3 if $t3 is
negative. (Hint: it can be done with three instr |
|