Question: Write an Assembly language program that corresponds to the following C++ program. #include using namesoace std; int width; int length; int perim; int main() {

Write an Assembly language program that corresponds to the following C++ program.

#include

using namesoace std;

int width;

int length;

int perim;

int main() {

cin >> width >> length;

perim = (width + length) * 2;

cout << " w = " << width << endl;

cout << " l = " << length <

cout << endl;

cout << " p = " << perim <

return 0; }

I have this as my code but it's showing me this error.

BR main

width: .ASCII "enter width"

length: .ASCII "Enter width"

perim: .EQUATE 0

DECI width, d

DECI length, d

perim : length + width ;ERROR: Invalid mnemonic.

perim: .ASCII &

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!