Modify the code in the [login to view URL] file so that the assembly program will:
Present 2 dialog boxes that ask a user to input a number
(User validation is not required)
Once the two numbers are input, perform the following calculation:
(3X + 4Y)/ 2, where X is the first number entered by the user and Y is the second number entered by the user.
Display both the quotient and remainder using 2 output message boxes.
Put the quotient in one message box and the remainder in a separate message box.
• FIRST: create a UML activity diagram like below:
The UML activity diagram will show the flow of the modified [login to view URL] program.
The expectations for the UML are shown in the grading rubric.
• When writing your code, use Visual Studio and the debugging techniques. To facilitate reading, use the indent style shown in example and course material. Input/output labels and variables should be named based on functionality to help make their purpose intuitive.
For only the file modified ([login to view URL]), include a header that contains a brief program description.
Include comments with your assembly code to explain why key operations are being performed
Documentation showing the dialogue box with the user’s input and that the input was stored in the desired variable correctly.
Documentation that the calculations were performed correctly. This can be done by showing registers to demonstrate that:
➢ X was correctly multiplied by 3
➢ Y was correctly multiplied by 4
➢ 3X + 4Y were correctly added
➢ The sum was correctly divided by 2.
o Show the two messages boxes: one for the quotient and one for the remainder.
Here is the supplied [login to view URL] code:
; Example assembly language program -- adds two numbers
; Author: R. Detmer
; Date: 1/2008
INCLUDE io.h ; header file for input/output
number1 DWORD ?
number2 DWORD ?
prompt1 BYTE "Enter first number", 0
prompt2 BYTE "Enter second number", 0
string BYTE 40 DUP (?)
resultLbl BYTE "The sum is", 0
sum BYTE 11 DUP (?), 0
input prompt1, string, 40 ; read ASCII characters
atod string ; convert to integer
mov number1, eax ; store in memory
input prompt2, string, 40 ; repeat for second number
mov number2, eax
mov eax, number1 ; first number to EAX
add eax, number2 ; add second number
dtoa sum, eax ; convert to ASCII characters
output resultLbl, sum ; output label and sum
mov eax, 0 ; exit with return code 0
END ; end of source code
Greetings I have previously worked on X86,X64 DOSBOX 8086,FASM,Newtide Assembler , GNU for assembly language and developed different games in assembly language. I have also vast experience in C/C++/C # languages. I wil Mai multe
2 freelanceri licitează în medie 105$ pentru acest proiect
Hi Dear, I read your description carefully. I know what you want well. My experience of developing projects with C++ is over 5+ years. I will finish this project with the best quality. If you will work with me at this Mai multe