Multiple choice

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

MOV A,F0H; STC RRC RRC RRC HLT

  1. 3E

  2. 1E

  3. 87

  4. 2E

  5. FE

Reveal answer Fill a bubble to check yourself
A Correct answer
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