Categories: Homework on time

CS410 Southern New Hampshire Assembly Language Project Hi, I need help with HW……………….c to assembly language….. Thanks, CS 410 Stepping Stone Tw

CS410 Southern New Hampshire Assembly Language Project Hi,

I need help with HW……………….c to assembly language…..

Don't use plagiarized sources. Get Your Custom Essay on
CS410 Southern New Hampshire Assembly Language Project Hi, I need help with HW……………….c to assembly language….. Thanks, CS 410 Stepping Stone Tw
Just from $13/Page
Order Essay

Thanks, CS 410 Stepping Stone Two Guidelines and Rubric
Overview: In this exercise, you will show your emerging awareness of assembly language by translating a simple application from C to assembly. The coding for
this assignment will be performed in Codio and downloaded into Microsoft Word for submission. For an example of how to complete the tasks called for in this
assignment, see the assembly to C conversion demonstration in Appendix F of the CS 410 Course Manual.
Prompt:
1. To begin, study the C code below. This file is included in Codio as file assignment2_1.c.
#include
#include
int main()
{
int num, i;
int product=1;
printf(“Enter a number:n”);
scanf(“%d”, &num);
for(i=num;i>0; i–)
product = product * i;
printf(“The factorial for %d is: %dn”, num, product);
return 1;
}
2. What is the function of this file? How would you convert it to assembly? Take notes on the functions and conversion as needed.
3. Next, submit a report that contains the following:
i. A one-paragraph explanation of the function of this program in C
ii. The conversion of the C code into assembly
iii. A table that aligns each line of C code with the corresponding line in assembly
iv. A one-paragraph explanation of the behavior of the assembly code that shows how the assembly code performs the same tasks (print, scan, etc.)
performed by C (Identify the skeleton and the actual code that does the work.)
Rubric
Guidelines for Submission: Submit your work in a Microsoft Word document. To download from Codio to Word, follow the instructions in Appendix I in the CS
410 Course Manual.
Critical Elements
Attempted with Minimal
or No Issues (100%)
Attempted with Key Issues (75%)
Description of C Describes the function of
Code Function the C code in the exercise
Attempts to describe the function
of the C code, but the description
is unclear or has fundamental
errors
Conversion of C Converts the C code into
Code Into
assembly
Assembly
Converts the C code into assembly Does not convert C code
but with fundamental errors
into assembly
25
Aligns C code with assembly but
with fundamental errors
Does not align C code
with assembly
25
Does not explain how
the assembly code
performs the same tasks
as the C code
25
Translation
Alignment
Aligns each line of C with
the corresponding line in
assembly
Assembly
Explanation
Explains how the assembly Explains how the assembly code
code performs the same
performs the same tasks as the C
tasks as the C code
Code, but the explanation is
unclear or has fundamental errors
Not Evident (0%)
Does not attempt to
identify the function of
the C code
Total
Value
25
100%

Purchase answer to see full
attachment

superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago