For each of the following commands first execute the


Assignemnt: Assembly Lab

You will submit 1 .txt file to blackboard containing the source code (assembly code) with your sample runs at the bottom

"main" method (pseudo code) [ .code]

For each of the following commands, first execute the command in hex and print the command and the result. Then execute it again in binary and print it.

• SHL, SHR, SAL, SAR (binary only)

• ROL, ROR, RCL, RCR (binary only)

• SHLD, SHRD (hex only)

Note: Give the register an initial value of 10001101. The count you shift/rotate should be 2. Each time you execute another command, reset the value of the register. You can play around with other values, but what you submit to me in the lab should execute these values or I will not grade it.

See example output below.

• Run one example each of the IMUL and IDIV commands and print the results. You can use dumpregs after each operation. Play around and try different numbers to see what you get. Check your carry and overflow flags.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: For each of the following commands first execute the
Reference No:- TGS02753644

Expected delivery within 24 Hours