CS 61C (Fall 2007) |
Quiz 11Two questions, submit as "quiz11". Due 2:45pm before lecture 9/24/2007. |
$s0
(putting the result back in $s0
). You may use the
$t?
registers as needed. You may not use branches. You
should use as few instructions as necessary.!
as opposed
to ~
, which performs "bit-wise not" or "bit-by-bit not".
Logical not will convert 0
into 1
,
and anything other than 0
into 0
.~
operator)
of $s0
which does not use $0
. Hint: you don't have to change much from the instruction
given in P&H for performing bit-wise not.