Question: Please write an assembly program that read the width and height of a rectangle box from user input, compute the perimeter of the box (

Please write an assembly program that read the width and height of a

rectangle box from user input, compute the perimeter of the box

( 2*(width+height); you can use wigth+wigth+height+height instead).

Your output should look like this:

Here are some tips:

1)How to display a string?Please write an assembly program that read the width and height ofa rectangle box from user input, compute the perimeter of the box

2)How to read a decimal integer from user?

call ReadDec

the integer will be saved to EAX

3)How to print a new line (line print a in Java or C ...):

call Crlf

4)How to display an integer (the integer should be in EAX register):

call WriteInt

Under

.data

You need to define the strings, and some DWORD variables

to store the width, height, and perimeter

please slove this question as soon as possible before 11:30PM tonight today.Please slove it.Thanks.

lab1 (2019W) COMPmylnfo M How To Use Textbook X Get Homework Help W/X e Search Textbook Soluti e l Need Help Fixing My https://mycourselink.lakeheadu.ca/d2l/le/content/57578/viewContent/680795/View Please write an assembly program that read the width and height of a rectangle box from user input, compute the perimeter of the box (2*(width+height); you can use wigth+wigth+height+height instead). Your output should look like this: lease enter the height of a box (integer):2 lease enter the width of a box (integer):3 erimeter of the box with width 3 and height 2 is: +10 Here are some tips: 1) How to display a string? Writestring PROC | 1 |12 View as Text 843 PM O Type here to search

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!