Question: Write a 3 2 - bit x 8 6 assembly program that performs the following operations: Part 1 : Arithmetic Expression Implement the following arithmetic

Write a 32-bit x86 assembly program that performs the following operations:
Part 1: Arithmetic Expression Implement the following arithmetic expression:
;// Part 1:
;// Implement the following arithmetic expression :
;// EAX =-val2+7- val3+ val1
;??
;// Where:
;// val1=+8
;?? val2=-15
;// val3=20
;// EAX should be 10
Part 2: Reorder Values in Registers
;// 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
Before execution: order A, B, C, D
Registers darr Disassembly
ESI=006B1005EDI=006B1005EIP=006B1042ESP=004FFD2
EBP=004FFD2CFL=0000026
After execution: order B, C, D, A
ESI=006B1005EDI=006B1005EIP=006B1048ESP=004FFD2
EBP=004FFD2EFL=000000206
 Write a 32-bit x86 assembly program that performs the following operations:

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!