Question: Write an x86 assembly program to do the following: 01) Declare three int variables uninitialized. 02) Prompt the user with enter 1st int 03) Read
Write an x86 assembly program to do the following:
01) Declare three int variables uninitialized.
02) Prompt the user with enter 1st int
03) Read 1st int
04) Prompt the user with enter 2nd int
05) Read 2nd int
06) Save var1+var2 in a reg
07) Save var1-var2 in 2nd reg
08) Save the address difference between var1 and var2 in var3
09) Display all regs
10) Display var1, var2, var3 and the content of the three used regs
NOTE: every answer out there gave me an error when I test it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
