Ask coding questions

← Back to all posts
I can't understand what he wants. Can anyone help me?
AhmedKilany98 (0)

(C to Assembly):
A C program needs to call a function named int fast_response(int x1, int y1, int z1, int t1);
The function fast_response is written in Assembly Language.
• Write the function prototype for fast_response that must be included in the C program for the code to be compiled and made visible to the assembly code.
• Write the declaration of the function fast_response that must be included in the assembly language file, to allow the code to be visible to the C code.
• What registers will be used to pass the values of x1, y1, z1, and t1, to the fast_response assembly function?
• What registers will be used to return the int result from fast_response?
(Note: you are not asked to write code for the assembly functions – just prototypes and declarations.)