Calculates the amount of arithmetic progression

Assignment Help Assembly Language
Reference no: EM132244822

Create a program in an assembly that calculates the amount of arithmetic progression from 1 to n with step 1.

• The parameter and the numbers to be returned, are no sign, so positive.
• In case of errors or incorrect input data, must return 0.
• Error analysis is done by the assembly program, and C program prints everything returned by the assembly, including error codes.

The number n is given as a parameter. Develop and tender:

1. Makefile - file that allows you to compile your program
2. md1.h source code file with a feature prototype that will be included in C, and will implement the assembly code.
3. md1.s - program in an assembly that calculates the amount of arithmetic progression.
4. md1_main.c - program in the language C that calls the assembly program and gives to it parameter n and receives the result printed on the screen.

When testing, the parameter n should be passed from the command line.
So, you will have to create program main () in md1_main.c, which receives the parameter via argv [1], transforms it into int integer. This number should be given as a parameter for asum () implemented in the assembly code, in the file md1.s.
The result must returned to C program and printed, for example, with printf () function. You only need to print the number and the line end symbol 'n'.

It is essential to stick to the prototype of such a function so that it is unified with the interface as used by the testing programs.

Attachment:- arithmetic progression.rar

Reference no: EM132244822

Questions Cloud

What are key questions organizational development : What are key questions Organizational Development Psychologists should asking during the contracting phase and during the project phase?
Research a topic in corporate finance : Research a topic in corporate finance. Objective is for the student to gain an in-depth knowledge of a topic related to the course.
Explain why you chose the particular educational strategy : Explain why you chose the particular educational strategy. Why is it an effective strategy for the population? Describe cultural barriers to disease prevention.
How to choose a leadership pattern : "The Management Grid", "How to choose a Leadership Pattern", "Leadership Decision Making" and "One Minute Management"
Calculates the amount of arithmetic progression : Create a program in an assembly that calculates the amount of arithmetic progression from 1 to n with step 1 - unified with the interface as used by the testing
How to organize the department : What jobs will be central to the department? How will they be designed? Propose an organizational chart that depicts the roles in the reorganization.
Intangible costs and intangible benefits : To solve an inventory problem for NIKE, what are the Tangible Costs, Tangible Benefits, Intangible Costs and Intangible Benefits?
Intangible costs and intangible benefits : To solve an inventory problem for NIKE, what are the Tangible Costs, Tangible Benefits, Intangible Costs and Intangible Benefits?
Calculate the over-applied or under-applied overhead : Calculate the additions to the work-in-process inventory account for the direct material used, direct labor, and manufacturing overhead.

Reviews

len2244822

2/27/2019 10:46:10 PM

Is it possible to do this work: Create a program in an assembly that calculates the amount of arithmetic progression from 1 to n with step 1.

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd