retagged by
3,699 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$
retagged by

3 Answers

1 votes
1 votes
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

0 votes
0 votes
2 answers
1
1 votes
1 votes
0 answers
2
1 votes
1 votes
1 answer
3
Arjun asked Nov 5, 2017
1,655 views
In the architecture of $8085$ microprocessor match the following :$\begin{array}{clcl} \text{(a)} & \text{Processing unit} & \text{(i)} & \text{Interrupt} \\ \text{(b)}...
3 votes
3 votes
2 answers
4
Arjun asked Nov 5, 2017
1,551 views
In $8085$ microprocessor which of the following flag(s) is (are) affected by an arithmetic operation?AC flag onlyCY flag OnlyZ flag OnlyAC, CY, Z flags