NEW
Font size
WorksheetsBit Manipulation Quiz 2
Total questions: 10
Worksheet time: 8mins
Shift bits to the right to an unsigned byte, word, or double word in a register or memory,
SHL
SHR
SAR
SAL
A logical shift instructions function contains signed numbers.
TRUE
FALSE
A binary number 1111 is used in an arithmetic shift instructions. what is the equivalent value of the number in decimal?
15
-7
16
-1
A binary number 1110 is used in a logical shift instruction. What is the decimal value of the number?
14
-2
-8
-14
An arithmetic shift instructions function contains unsigned numbers.
TRUE
FALSE
What is the final value of DL after the operations below?
MOV DL, 1010 1010
SHL DL, 2
1010 1000
0010 1010
1010 1010
0101 0101
What is the final value of 10000000 in decimal after shifting it 6 times logically to the right?
2
12
24
4
What is the final value of AH after the operations below?
MOV AH, 4AH
SHL AH, 3
05H
50H
40H
28H
What is the final value of AL, CF, and OF after the SAL operation below is done?
MOV AL, F0H
SAL AL, 2
AL = 00H, CF = 1, OF = 0
AL = 0CH, CF = 1, OF = undefined
AL = CCH, CF = 0, OF = 1
AL = C0H, CF = !, OF = undefined
A binary number 10000100 is a signed binary number. What is its decimal value?
124
-124
-64
64
