Assembly Language x86:   a procedure called "SubtractThenAdd" which does the following: takes the EAX, EBX, and ECX registers as arguments computes this value: EAX = (EAX - ECX) + EBX returns the result inside of EAX uses PUSH and POP instructions or the USES operator to ensure that EBX and ECX retain their original values after the procedure  You must include the entire procedure definition, from the PROC directive to the ENDP directive. Do not define or use any additional variables or registers other than EAX, EBX, and ECX.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter6: System Integration And Performance
Section: Chapter Questions
Problem 9VE
icon
Related questions
Question

Assembly Language x86:

 

a procedure called "SubtractThenAdd" which does the following:

  • takes the EAX, EBX, and ECX registers as arguments
  • computes this value: EAX = (EAX - ECX) + EBX
  • returns the result inside of EAX
  • uses PUSH and POP instructions or the USES operator to ensure that EBX and ECX retain their original values after the procedure 

You must include the entire procedure definition, from the PROC directive to the ENDP directive. Do not define or use any additional variables or registers other than EAX, EBX, and ECX.

Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning