recategorized
8,902 views

2 Answers

3 votes
3 votes
Ans is C

 in assembly  AX=AH+BL

AL is the lower 8 bits

AH is the higher bits 8
HERE AL and Ah both contains 15 or F so AX contains  0F0F  or 0000 1111 0000 1111  

XOR AL AL will return 0 in AL so AX becomes 0000 1111 0000 0000

MOV CL,3 will store  3 in CL  

shr ax,cl  will shift right ax by 3       so 0000 1111 0000 0000 will

become  0000 0001 1110 0000 or 01E0 in hexadecimal i.e

 

C 01E0 H
edited by
0 votes
0 votes
mov al,15 AX=??0F CL=??
mov ah,15 AX=0F0F CL=??
xor al,al AX=0F00 CL=??
mov cl,3 AX=0F00 CL=03
shr ax,cl AX=01E0 CL=03
add al,90h AX=0170 CL=03 CY=1
adc ah,0 AX=0270
___0270h______________
___0000 0010 0111 0000
Answer:

Related questions

1 votes
1 votes
2 answers
3
6 votes
6 votes
2 answers
4
go_editor asked Aug 8, 2016
3,468 views
How many solutions are there for the equation $x+y+z+u=29$ subject to the constraints that $x \geq 1, \: \: y \geq 2 \: \: z \geq 3 \: \: and \: \: u \geq 0$?496026002375...