(C to Assembly interface) A C program needs to call a function named uint16_t fast_response(uint16_t x1, uint16_t y1, ui
Posted: Wed Apr 27, 2022 3:41 pm
(C to Assembly interface)
A C program needs to call a function named uint16_t
fast_response(uint16_t x1, uint16_t y1, uint16_t z1, uint16_t 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 uint16_t result from
fast_response?
(Note: you are not asked to write code for the assembly
functions – just prototypes and declarations.)
A C program needs to call a function named uint16_t
fast_response(uint16_t x1, uint16_t y1, uint16_t z1, uint16_t 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 uint16_t result from
fast_response?
(Note: you are not asked to write code for the assembly
functions – just prototypes and declarations.)