Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi I was hoping to get some help on my C++ Assembly Language HW problem thanks. Using the AddTwo program from Section 3.2 as a

Hi I was hoping to get some help on my C++ Assembly Language HW problem thanks.

Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers.

1: ; AddTwo.asm - adds two 32-bit integers

2: ; Chapter 3 example

3:

4: .386

5: .model flat,stdcall

6: .stack 4096

7: ExitProcess PROTO, dwExitCode:DWORD

8:

9: .code

10: main PROC

11: mov eax,5 ; move 5 to the eax register

12: add eax,6 ; add 6 to the eax register

13:

14: INVOKE ExitProcess,0

15: main ENDP

16: END main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

Problem #6 of 16

Answered: 1 week ago