The 4-bit registers R1 and R2 initially have the following values. R1 : 1010…
2021
The 4-bit registers R1 and R2 initially have the following values. R1 : 1010 R2 : 1100 What is the content of R1 and R2 after execution of this micro-operation? R1 ← R1 ⊕ R2 ⊕ is a symbol of Ex-OR.
- A.
R1 : 0110, R2 : 1100
- B.
R1 : 1010, R2 : 0110
- C.
R1 : 0110, R2 : 0110
- D.
R1 : 1010, R2 : 1100
Attempted by 146 students.
Show answer & explanation
Correct answer: A
Step 1: Perform Ex-OR operation between R1 (1010) and R2 (1100).
Step 2: Bit-by-bit Ex-OR: 1⊕1=0, 0⊕1=1, 1⊕0=1, 0⊕0=0.
Step 3: Result is 0110, which updates R1.
Step 4: R2 remains unchanged as 1100.