Question: Assembly language x86 processor Lab #6, Irvine Ch 7 main method (pseudo code) [ .code] For each of the following commands, first execute the command

Assembly language x86 processor Lab #6, Irvine Ch 7

"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.

Grading Rubric (100 Points)

All specified commands executed in binary (20 points)

Al specified command executed for hex (20 points)

Every binary command is printed with the result (you can use writeBin) (20 points)

Every hex command is printed with the result (you can use writeHex) (20 points)

Neat Indenting (data section neatly aligned; body of main neatly indented) (20 points)

Note: Feel free to hard code the operation you are executing in the .data section

For example:

result1 BYTE Result of SHR BL, 1 is: , 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!