Question: Create an assembly program (asm_program.asm) which calls a C function (c_function.c). Your C function should take one argument [a pointer to a character string] and
Create an assembly program (asm_program.asm) which calls a C function (c_function.c).
Your C function should take one argument [a pointer to a character string] and print it (eg. printstring(const char* mystring)).
Your assembly program should call the C function to print out a haiku (classic or self-authored) of your choosing, and the author's name.
Your haiku should be declared and defined in asm_program.asm [NOT in c_function.c].
Compile and link your code to make an executable (asm_program).
Create a C program (c_program.c) which calls an assembly function (asm_function.asm).
Your assembly function should take one argument [a pointer to a character string] and print it.
Your C program should call the assembly function to print out a haiku (classic or self-authored) of your choosing, and the author's name.
Your haiku should be declared and defined in c_program.c [NOT in asm_function.asm].
Compile and link your code to make an executable (c_program).
file should have:
asm_program.asm
asm_function.asm
c_program.c
c_function.c
asm_program
c_program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
