A good answer might be:
FEED 1111 1110 1110 1101
BECA 1011 1110 1100 1010
---- ---- ---- ---- ----
FEEF 1111 1110 1110 1111
It is usually easiest to translate
into bits, do the OR, then translate
back to hex.
AND Instruction
AND Operation on Bits |
first operand | 0 | 0 | 1 | 1 |
second operand | 0 | 1 | 0 | 1 |
| __ | __ | __ | __ |
result | 0 | 0 | 0 | 1 |
MIPS has an
AND
instruction:
and d,s,t # $d <-- bitwise AND between $s with $t.
Recall that the result of AND is one only when
both operand bits are one.