Question 11632 – Queues-and-Stacks
January 24, 2024Question 9230 – GATE 2007
January 24, 2024GATE 1995
|
Question 1
|
A single instruction to clear the lower four bits of the accumulator in 8085 assembly language?
|
XRI OFH
|
|
|
ANI FOH
|
|
|
XRI FOH
|
|
|
ANI OFH
|
Question 1 Explanation:
Here, we use the AND as a accumulator with immediate. F leaves the high nibble whatever it is, 0 clears the lower nibble.
→ The XOR’s don’t reliably clear random bits and ANI OF clears the upper nibble, not the lower nibble.
→ The XOR’s don’t reliably clear random bits and ANI OF clears the upper nibble, not the lower nibble.
Correct Answer: B
Question 1 Explanation:
Here, we use the AND as a accumulator with immediate. F leaves the high nibble whatever it is, 0 clears the lower nibble.
→ The XOR’s don’t reliably clear random bits and ANI OF clears the upper nibble, not the lower nibble.
→ The XOR’s don’t reliably clear random bits and ANI OF clears the upper nibble, not the lower nibble.
