Create the functions - getRandNum and getMax

Assignment Help Programming Languages
Reference no: EM132301523

Lab 1 - Functions

Objectives - Students will use the lessons learned in the Functions chapter to:

  • Declare functions
  • Define functions
  • Pass by Value
  • Pass by Reference
  • Use the CDECL Standard Calling Convention

Part 1 -

There will be 4 files in the directory

Four files:

  • function.asm
  • functionLib.asm
  • Makefile
  • testC.c

We can use the following make commands:

  • make makes function
  • make testC makes testC
  • make clean clean the directory

Create/Complete the following functions in functionLib.asm

(As described in the headers)

  • mulby4
  • printXtimes
  • getRandNum
  • getMax

Test your code with both assembly and C.

What to turn in - Turn in a screen shot of your program run for:

  • function
  • testC
  • Turn in the functionLib.asm and testC.c files

Your output should match the examples.

What to submit: Submit to the canvas system by the deadline Screenshots and files as listed in the lab descriptions. Note: most labs will now require .asm files along with screenshots.

Functions part 2 -

Pull the latest from git

Find the function2 directory

Edit the functionLib file

You will find TBD in the file, where you see this there is code to be added to complete the function as described by the function header.

What to submit: Submit to the canvas system by the deadline Screenshots and your functionLib.asm file.

Lab 2 - System Services

Directions - Complete the Lab and submit to the canvas system

System Services

use git to pull down the latest files

git pull

change to the directory syscalls

open the syscalls.asm file and fill in all the correct registers

What to submit: Submit to the canvas system by the deadline Screenshots and files as listed in the lab descriptions. Note: most labs will now require .asm files along with screenshots.

Attachment:- Assignment Files.rar

Verified Expert

This is assembly and c code for the functions given in the specification c code is very interested for doing the work and this code is done in c with assembly code also and it produces the output as shown in images given.

Reference no: EM132301523

Questions Cloud

Write a letter to friend in which you explain your decision : Pretend you are a member of the Cherokee nation and are faced with the possibility of having to leave your home via the Trail of Tears. You now have a choice.
What role did religion and morality play in the debate : Based on the two documents, what role did religion and morality play in the debate over slavery? Do these religious and moral arguments impact racial.
Auditing and accounting issues : Provide a brief description of the key events and the factual issues behind the case - investigate and explain the relevant issues in Auditing and Accounting
Explain the economic and social problems : Explain the economic and social problems that emerged in the United States during The Gilded Age and how these problems were or were not addressed.
Create the functions - getRandNum and getMax : Lab 1 - Functions. Create/Complete the following functions in functionLib.asm (As described in the headers) - mulby4, printXtimes, getRandNum and getMax
Explain the concept of market failure : Explain the concept of market failure and the alternatives to market processes in resource allocations.
Examine the considerable impact of the legal decisions : Inventory at least two (2) legal setbacks African-Americans faced between the years 1877-1896. Examine the considerable impact of the legal decisions.
Predict the effects of different market forces : Utilize the basic demand and supply model to predict the effects of different market forces on equilibrium price and quantity.
Compare and contrast classical economics and keynesian : Compare and contrast classical economics and Keynesian economics. What are the major differences between them?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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