(a) Assume that a CPU has only two registers R₁ and R₂ and that only the…
PYQ GATE 1994
(a) Assume that a CPU has only two registers R₁ and R₂ and that only the following instruction is available XOR Rᵢ,Rⱼ; {Rᵢ ← Rᵢ ⊕ Rⱼ, for i, j = 1,2}
Using this XOR instruction, find an instruction sequence in order to exchange the contents of the registers R₁ and R₂.
(b) The line p of the circuit shown in figure has stuck at 1 fault. Determine an input test to detect the fault.

Attempted by 1 students.
Sign up free to check your answer
Sign up freeLoading lesson…

