Question: Assemble the instruction AND DL , [ SI ] . Store the value 5 F at memory location DS:SI . Set the DX register to
Assemble the instruction AND DLSI Store the value F at memory location DS:SI Set the DX register to CBAD and SI register to Execute the instruction.
a What is the new value in the DX register after execution?
b What is the binary representation of the byte value at DS:SI
c What is the binary representation of the value in DL before execution?
d What is the binary representation of the value in DL after execution?
e Explain what the AND instruction does.
f What would happen differently if you changed the order in the command to AND SI DL
Perform the following steps:
Assemble and execute the instruction SHL DLshift the contents of the DL register one position to the left
Before executing, store the hexadecimal value A in the DL register. After executing the instruction, answer the following:
a What are the binary values in the DL register before and after executing the shift instruction?
b After the shift, what is the decimal value of the signed byte in the DL register?
c What was the decimal value of the signed byte in the DL register before the shift?
d By what factor would you have to multiply the decimal value before the shift to get the decimal value after the shift?
Perform the following steps:
Assemble and execute the instruction SHL AX CL shift the contents of the AX register left by the number of positions specified in the CL register
Before executing the instruction, store the hexadecimal value FF H in the AX register and the hexadecimal value H in the CL register.
After executing the instruction, answer the following:
a What are the binary values in the AX register before and after executing the shift instruction?
b What is the decimal value of the signed word in the AX register after executing the instruction?
c What was the decimal value of the signed word in the AX register before the shift?
d By what factor would you have to multiply the decimal value before the shift to get the decimal value after the shift?
e Write an instruction that would multiply the signed byte value FD stored in the AL register by using the SHL instruction. Specify the value that should be loaded into the CL register before execution.
Assemble the instruction SAR ALshift arithmetic right one place Store the value E in the AL register. Execute the instruction.
a What is the binary value in AL before executing the instruction?
b What is the binary value in AL after executing the instruction
c What was the decimal value of the signed byte integer in the AL register before executing the instruction?
d What was the decimal value of the signed byte integer in the AL register after executing the instruction?
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
