in CO and Architecture retagged by
3,706 views
0 votes
0 votes

The contents of Register $(BL)$ and Register $(AL)$ of $8085$ microprocessor are $49H$ and $3AH$ respectively. The contents of $AL$, the status of carry flag $(CF)$ and sign flag $(SF)$ after executing $'SUB AL, BL'$ assembly language instruction, are

  1. $AL=0FH; \: CF=1; \: SF= 1$
  2. $AL = F0H; \: CF = 0; \: SF = 0$
  3. $AL =F1H; \: CF = 1; \: SF= 1$
  4. $AL =1FH; \: CF=1; \:SF=1$
in CO and Architecture retagged by
3.7k views

2 Comments

is it option 3?
0
0
y some1 named @Psunny is downvoting my questions one after another? :\
0
0

3 Answers

2 votes
2 votes

 Answer is option C.

AL = F1H, CF = 1,  SF = 1.

edited by
1 vote
1 vote
AL - 3AH.      

BL - 49H

The given instruction is to subtract the contents of BL from AL.

0011 1010 -

0100 1001

---------------------

 1111 0001

Sign flag S=1

Carry flag CY=1

result= F1H

Sign flag is set since the produced result is negative.

Since the first operand is less than the second operand, the carry flag is set.
0 votes
0 votes
(A) => 3AH => 00111010
(B) => 49H => 01001001
                         ------------------
                          11110001
(A) => F1H
(CY) => 1
(S) => 1

The carry flag is set since the first operand is less than the second operand.
Since the result produces the negative result sign flag is set
Answer:

Related questions