go to previous page   go to home page   go to next page hear noise highlighting

Answer:

FEED      1111 1110 1110 1101
BECA      1011 1110 1100 1010
————      ———— ———— ———— ————
FEEF      1111 1110 1110 1111

When bitwise logic problems are written in hexadecimal, as above, is usually easiest to translate into bits, do the OR, then translate back to hexadecimal.


AND Instruction


and  d,s,t    # $d gets the bitwise 
              # AND between $s with $t.

AND Operation on Bits
first operand 0011
second operand 0101
 
result 0001

MIPS has an AND instruction. Recall that the result of AND is one only when both operand bits are one.


QUESTION 8:

What is the bitwise AND of the following?

 FEED
 BECA
——————

go to previous page   go to home page   go to next page