Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have been confused on this question. In this question * indicates some logic o

ID: 3610707 • Letter: I

Question

I have been confused on this question.

In this question * indicates some logic operation. What logicoperation is required on R1 and what bit pattern in binary isrequired of R2 if:
   a) R1 = 0C7; and R1 <--- R1 * R2; then R1 =9C; * = ____________    R2 = ____________

HERE IS MY WORK
R1 before = 0C7 = 199 (base 10) = 11000111

then R1 = 9C = 156 (base 10) = 10011100

What logic operation is needed to get to second binary pattern?
R1 <--- R1 AND R2 would not work because both bits beingcompared would have to be 1 to output a 1.
--------------------> 1   1   0  0   0   1  1   1
--------------------> 1   0   0  1   1   1   0  0    

R1 <--- R1 OR R2 would not work because both bits beingcompared would have to be 0 to output a 0.
--------------------> 1   1 0   0   0   1   1   1
--------------------> 1   0   0   1   1   1   0   0

But XOR will work because when both bits are the same binary digitit will equal 0, but when the bits are the opposite digit valuewill equal 1.
First Part Of Answer = R1<--- R1 XOR R2

Second Part Of Answer =
--------------------> 1   1   0  0   0   1   1   1 --- R1= 0C7
XOR R2 ---------->   0   1   0  1   1   0   1  1
--------------------> 1   0   0  1   1  1   0   0 --- R1 = 9C

Therefore the final answer would be:
a) R1 = 0C7; and R1 <--- R1 * R2; then R1 = 9C; * = XOR R2 = 01011011


Is this correct?

Explanation / Answer

please rate - thanks a) R1 = 0C7; and R1
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote