Question: I need C code and assembly code written in 32 bits or 64 bits. I need file for C, and another file for assembly code,

I need C code and assembly code written in 32 bits or 64 bits.
I need file for C, and another file for assembly code, and another file for the link between the C code and the assembly code is for calling the assembly functions from the C code.
The code in C and in assembly should include 3 functions. And the three functions should be written in the same order in both languages.
The first function should ask the user to enter two numbers. The second function should calculate the average of these two numbers, the third function should display the average to the user. The assembly code should be written in an easy language. The assembly code should include push and pop. Also mov, global label, and registers such as eax. Comments should be written for each line in both C file and assembly file.
 I need C code and assembly code written in 32 bits

General Requirements - You must have at least 3 subroutines implemented in Assembly language. One of the subroutines must take in the parameters in the form of register values. The other two must take in the parameters through the stack. - You must create three more functions. These functions will act as the interface between the high level language and your assembly language code. - Create a high-level language program that performs some simple operation. This can be any task of your choice but must need the functions provided by your assembly code. - Call the assembly language functions from your high level code. - Compile/assemble both the high level code and assembly code. Link them together to create an executable. - Execute your code to demonstrate the complete functionality. - Document the whole process in a tutorial format. Provide this tutorial in a separate file. The goal of the tutorial is to enable anyone getting started with this field to be able to reproduce your efforts easily. Code requirements - You must write your code using proper coding practices. - Both low level and high level code must be properly formatted, variables must be properly named and functions defined appropriately

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!