🎴 Flashcard Mode

GATE Technical Test for ECE

Card1 / 3
Mastered0
Review0
QuestionClick to flip

What is the value present in Accumulator after executing the above instruction in 8085 processor?

MOV A,F0H; STC RRC RRC RRC HLT

AnswerClick to flip back
A
3E
💡 Explanation:

A contains F0 (in hexadecimal), F0 can be written as 1111 0000 STC(set Carry Flag) CF=1
RRC(Rotate Right ACCUMULATOR with Carry)
Now Rotate the accumulator content to the right with carry thrice
Initial data 1 1111 0000
First Rotation 0 1111 1000
second Rotation 0 0111 1100
Third Rotation 0 0011 1110
In Hexadecimal 0011 1110 is written as 3E

Change Mode