recategorized
3,974 views
0 votes
0 votes

Consider the following assembly language instructions:

mov al, 15
mov ah, 15
xor al, al
mov cl, 3
shr ax, cl
add al, 90H
add ah, 0

What is the value in $ax$ register after execution of above instructions?

  1. $0270H$
  2. $0170H$
  3. $01E0H$
  4. $0370H$
recategorized

2 Answers

3 votes
3 votes

it is 8086 question AX(16 bit) =AH( 8 bit) +AL (8 bit)

MOV AL  ,15    //  00001111 in AL

mov ah, 15    //  00001111 in AH   and AX =0000 1111 0000 1111

xor al, al    // AL is 0000 0000 now  and so AX  =0000 1111 0000 0000

mov cl, 3 // CL is 0000 0011

shr ax, cl   //AX  = 000 0000 1111 0000 0   or (01E0) h

add al, 90H   // AL= 1001 0000  add this to( AX=AH+AL)  , now AX =0170 h with carry 1


adc ah, 0 // add  0 to ah with carry which is one so final ans 0270 h 

so ans is A

Answer:

Related questions

4.1k
views
3 answers
0 votes
go_editor asked Mar 24, 2020
4,103 views
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)$ ... =F1H; \: CF = 1; \: SF= 1$AL =1FH; \: CF=1; \:SF=1$
2.3k
views
3 answers
0 votes
go_editor asked Mar 24, 2020
2,290 views
Consider a sequence $F_{00}$ defined as :$F_{00}\left ( 0 \right )= 1, F_{00}\left ( 1 \right )= 1\\$F_{00}\left ( n \right )= \frac{10 * F_{00}\left ( n-1 \ ... ( 1, 2, 55, 110, 600, 1200 \right )$\left ( 1, 55, 110, 600, 1200 \right )$
1.2k
views
4 answers
0 votes
go_editor asked Mar 24, 2020
1,183 views
Match the following : ...
1.0k
views
3 answers
1 votes
go_editor asked Mar 24, 2020
1,043 views
The functions mapping $R$ into $R$ are defined as :$f\left(x \right)=x^{3} - 4x, g\left(x \right)=\frac{1}{x^{2}+1}$ and $h\left(x \right)=x^{4}.$Then find the value of ... $\left [ \left ( x^{3}-4x \right )^{2}+1 \right ]^{-4}$