Question: a . The binary equivalent for the decimal number 5 0 is 0 0 1 1 0 0 1 0 The SHR ( shift right
a The binary equivalent for the decimal number is
The SHR shift right instruction performs a logical right shift on the destination operand. The highest bit position is filled with a zero. So that shr means it shifts bits logically to the right. Shifting right n bits divides the operand by n
i Before shr the register is:
After shr the register is:
ii The decimal equivalent after shr is
b The binary equivalent for the decimal number is
The SHL shift left instruction performs a logical left shift on the destination operand, filling the lowest bit with so that shl means it shifts bits logically to the left. Shifting left n bits multiplies the operand by
i Before shl the register is:
After shl the register is:
ii The decimal equivalent after shl is
Hope it's clear!!!!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
