For each exercise, implement the solution in a separate file. Submit only the assembly code source files s
file for each exercise. Ensure you name each source file as directed in the exercise instructions.
You are not allowed to use gcc S for the solution of this lab. Turning in the output of gcc S will result in a
grade of zero. The labels in your code should be mnemonic names, NOT LC nor compilergenerated labels.
Test and debug your code before submitting solution. Your programs must assemblecompilerun Programs
that do not assemblecompile will receive a grade of zero
Exercise : Translate the following C code to ARMv Assembly code. Write, test, run, and debug your code. Name
your solution file exs
int getMinint a int b int c
int result a;
if b result
if c b result c;
else result b;
else if c result result c;
return result;
void printMinint m
printfThe minimum number is: d
m;
int mainvoid
int min;
min getMin;
printMinmin;
return ;