Implement a simple main routine in assembly program

Assignment Help Assembly Language
Reference no: EM133105171

Assignment: your first simple program

In this assignment you will be asked to write your first assembly program. You will have to use the knowledge you acquired from assignment 0 in order to complete this task, so make sure you have a thorough understanding of the example program. Remember that you can always ask the lab course assistants for help. For this program, you will not have to write any specifications, since there is no significant algorithmic complexity involved. However, you are of course required to write proper comments.

In order to complete this assignment you will need to call the printf subroutine. Paragraph 3.3.1 of the reference section explains the details of calling subroutines and paragraph 3.4.1 explains how to use the printf subroutine. Section 3.1 explains the commands that you will need to enter on your shell in order to build and run your program.

Exercise:

Create a new text file, called "hello.s". Implement a simple "main" routine that exits the program immediately with the proper exit code and without crashing. Build your program and run it. Alter your main routine in such a way that it prints a message containing your names, study numbers and the name of the assignment on the terminal. You should not need more than one call to printf to display your message. After completing the rest of the exercises in part 1, you will need to have the source code of this program checked by the teaching assistants, so make sure you keep all your files in order.

Reference no: EM133105171

Questions Cloud

How much money do they need to put into the account : If the account promises to pay a fixed interest rate of 4.5% per year, how much money do they need to put into the account today
Importance of marketing and promotional strategies : Explain the importance of marketing and promotional strategies to the overall success of a business. Explain for at least 5 sentences.
Calculate the amount at which inventory should be reported : Calculate the amount at which inventory should be reported on the statement of financial position for Schreiber Corporation on November 30, 2021
How do you identify an ethical dilemma : Q1: How do you identify an ethical dilemma and what may possibly contribute to cause such in business organizations?
Implement a simple main routine in assembly program : Need to call the printf subroutine. Paragraph 3.3.1 of the reference section explains the details of calling subroutines and paragraph
Job involvement and job satisfaction : Using correlation analysis find the association between Job Involvement and Job Satisfaction and report your results.
Developing effective teams in the workplace : What factors do you consider to be of utmost importance for developing effective teams in the workplace?
How much will hopkins company pay in interest each year : 3. How much will Hopkins Company pay in interest each year? How much will Hopkins Company's interest expense be for the first year
Difference between pro forma income statement : What is the difference between a pro forma income statement, and an actual income statement? What do we mean by contribution margin?

Reviews

Write a Review

Assembly Language Questions & Answers

  Find all the prime numbers between 2 and n inclusive

For this problem you will find all the prime numbers between 2 and N inclusive. A number is prime if it is only evenly divisible by itself and 1.

  Write an assembly language function int toinches

Write an assembly language function int toInches(int feet) that accepts a length written in feet as an argument and returns this length written in inches.

  Write mips assembly language define and initialize variables

Write a header comment block at the top of the source code file in the format shown on the next page. Make sure to put both author's names in the header comment block if you worked with a partner.

  Give a disadvantage of self-modifying code

Devise an addressing mechanism that allows an arbitrary set of 64 addresses, not nec- essarily contiguous, in a large address space to be specifiable in a 6-bit field. Give a disadvantage of self-modifying code that was not mentioned in the text..

  Write a set of assembly codes in uvision

Write a set of assembly codes in uVision that performs the function described below. Begin with the assumption that 10 randomly selected integer numbers (data) are stored at 0x20002000 to 0x20002024 in sequence in the memory region.

  Modify the single-cycle mips processor

Modify the single-cycle MIPS processor to implement one of the following instructions. Sec Appendix B for a definition of the instructions. Mark up a copy to indicate the changes to the datapath. Name any new control signals.

  Preform basic math computations on the numbers

Create a program called YourLastName_assignment3.asm. This simple program will print the following information to the command prompt screen as well as take in user input and perform some basic computations.

  Motorola assembly language

The objective is to review the programmer's model, the Motorola assembly language, and the instruction execution cycle. To achieve these objectives, you will write a short program(s) satisfying the requirements below

  Calculate some statistics about the performance

Implement a subroutine MAX SCORES to find the highest score obtained by a student and store this value in the memory location 0x5000 .

  Write a mips assembly program that can search for a number

Write a MIPS assembly program that can search for a number that is entered by a user in an array with 20 integer number.

  Write a python program that solicits input of total number

Write a python program that solicits input (as an integer) of the total number of pennies and then calculates the maximum dollars, quarters, dimes, nickels.

  Morse code transmitter lab

Morse Code Transmitter Lab - describes a particular manner in which these registers must be manipulated. To illustrate the process, write a snippet of assembly

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