Question: This program is written in C and assembly language. It will calculate the average of two numbers entered by the user. C code is used

This program is written in C and assembly language. It will calculate the average of two numbers entered by the user. C code is used to take the input from the user, add the two numbers, divide the sum by 2 and print the average. Assembly language code is used to prepare the data segment and define variables. The program then prompts the user for two numbers, stores them in variables, adds them together, divides the sum by 2, prints the result, and exits. I need some modifications to the assembly file. Can someone help me? I want it to be bit 32 or 64 and contain a function, bob, push, and global. All of them are modified in the assembly file only.
Thanks in advance

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!