...
Question 11632 – Queues-and-Stacks
January 24, 2024
Question 9230 – GATE 2007
January 24, 2024
Question 11632 – Queues-and-Stacks
January 24, 2024
Question 9230 – GATE 2007
January 24, 2024

GATE 1995

Question 1

A single instruction to clear the lower four bits of the accumulator in 8085 assembly language?

A
XRI OFH
B
ANI FOH
C
XRI FOH
D
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.
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.

Leave a Reply

Your email address will not be published. Required fields are marked *