11. Suppose we want to copy the value of the Carry flag into bit 7 of AL, and sh
ID: 3543153 • Letter: 1
Question
11. Suppose we want to copy the value of the Carry flag into bit 7 of AL, and shift all existing bits in AL one position to the right. Which of the following instructions will work?
a. shr al,1
b. sar al,1
c. ror al,1
d. rcr al,1
12. Suppose we want to convert the value 6Fh in AL to the value F6h. Which of the following instructions will do this?
a. ror al,3
b. rol al,4
c. ror al,4
d. rcr al,4
13. Which of the following instructions will divide the unsigned integer in EBX by 8?
a. shr ebx,8
b. shr ebx,3
c. sar ebx,8
d. shl ebx,3
14. Which of the following instructions will multiply the integer in EBX by 32?
a. shr ebx,5
b. rol ebx,32
c. shl ebx,5
d. ror ebx,32
15. What will be the hexadecimal values of DX and AX after the following instructions have executed?
mov ax,6B49h
mov dx,0095h
shl ax,1
rcl dx,1
a. DX = 0148h, AX = C691h
b. DX = 012Ah, AX = C9A2h
c. DX = 012Ah, AX = D692h
d. DX = 024Bh, AX = D692h
Explanation / Answer
Suppose we want to copy the value of the Carry flag into bit 7 of AL, and shift all existing bits in AL one position to the right. Which of the following instructions will work?
a. shr al,1
b. sar al,1
c. ror al,1
d. rcr al,1 - ans
Suppose we want to convert the value 6Fh in AL to the value F6h. Which of the following instructions will do this?
a. ror al,3
b. rol al,4
c. ror al,4
d. rcr al,4 - ans
Which of the following instructions will divide the unsigned integer in EBX by 8?
a. shr ebx,8
b. shr ebx,3 - ans
c. sar ebx,8
d. shl ebx,3
Which of the following instructions will multiply the integer in EBX by 32?
a. shr ebx,5
b. rol ebx,32
c. shl ebx,5 -- ans
d. ror ebx,32
What will be the hexadecimal values of DX and AX after the following instructions have executed?
mov ax,6B49h
mov dx,0095h
shl ax,1
rcl dx,1
a. DX = 0148h, AX = C691h
b. DX = 012Ah, AX = C9A2h
c. DX = 012Ah, AX = D692h - ans
d. DX = 024Bh, AX = D692h
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.