Question: Write a 32-bit x86 assembly program that performs the following operations: Part 1: Implement the following arithmetic expression: EAX = -val2 + 7 - val3

Write a 32-bit x86 assembly program that performs the following operations:

Part 1: Implement the following arithmetic expression: EAX = -val2 + 7 - val3 + val1 Where: val1 = +8 val2 = - 15 val3 = 20 EAX should be -10? (verify)

Part 2: Using the XCHG instruction no more than three times, reorder the values in four 8 - bit registers from the order A, B, C, D to the order B, C, D, A as follows, registers used: AL, BL, Cl, DL

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!