Digital Electronics - The 8051 Microcontroller - Discussion
Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 24)
24.
The contents of the accumulator after this operation
MOV A,#0BH
ANL A,#2CH
will be
MOV A,#0BH
ANL A,#2CH
will be
Discussion:
12 comments Page 2 of 2.
Shiva said:
4 years ago
Thanks all for the explainations. I understood it clearly.
SDBANGDE said:
2 years ago
The contents of the accumulator after this operation;
MOV A,#0BH
ANL A,#2CH
will be;
Programm:
MOV A,#0BH; value of '0B' will move to the accumulator.(i.e. A=0B=0000 1011)
ANL A,#2CH; ANDing value of 2C with Accumulator, (i.e. 2C=0010 1100)
ANL is AND logical operation as AND gate truth table.
Finally;
A = 0B = 0000 1011.
A = 2C = 0010 1100 (at last after using AND operation)
A = 0000 1000.
So, Answer: 0000 1000.
MOV A,#0BH
ANL A,#2CH
will be;
Programm:
MOV A,#0BH; value of '0B' will move to the accumulator.(i.e. A=0B=0000 1011)
ANL A,#2CH; ANDing value of 2C with Accumulator, (i.e. 2C=0010 1100)
ANL is AND logical operation as AND gate truth table.
Finally;
A = 0B = 0000 1011.
A = 2C = 0010 1100 (at last after using AND operation)
A = 0000 1000.
So, Answer: 0000 1000.
(5)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers