Write a mips assembly language program

Assignment Help Assembly Language
Reference no: EM131941699

MIPS Project

1. Write a MIPS assembly language program that asks the user for 10 integers one at a time and stores them in memory.
a. Each integer must be in the range 0 to 15 inclusive.

2. Converts each integer into the Hammering code according to the following rules.
a. Convert the integer to a binary integer of length 4. i. 3 -> 0011
  ii. 8 -> 1000
  iii. 12 -> 1100

b. Assign values to d1 to d4.
   i. 0110 -> d1 = 0, d2 = 1, d3 = 1, d4 = 0
   ii. 1000 -> d1 = 1, d2 = 0, d3 = 0, d4 = 0
   iii. 1100 -> d1 = 0, d2 = 1, d3 = 0, d4 = 0

c. Compute p1 to p3.
   i. (p1 + d1 + d2 + d4) % 2 = 0 ii. (p2 + d1 + d3 + d4) % 2 = 0 iii. (p3 + d2 + d3 + d4) % 2 = 0

d. Build a binary number.
   i. p1p2d1p3d2d3d4

e. Convert this binary number back into a integer.

3. Prints the 10 Hammering code integers separated by a space.

Reference no: EM131941699

Questions Cloud

Confidence interval of the true amount of water : Construct a 95% confidence interval of the true amount of water that is in your bottles.
List and describe two ways a data attack on cloud can occur : List and describe at least 2 ways a data attack on the cloud can occur. What networking tools can you use to ameliorate data attacks on cloud data?
Confidence interval for a sample of size : Assume that a sample is used to estimate a population proportion p. Find the 95% confidence interval for a sample of size 296 with 219 successes.
The null and alternative hypothesis : Test the claim that the mean GPA of night students is smaller than 2.9 at the 0.01 significance level.
Write a mips assembly language program : CS2810 MIPS Project - Write a MIPS assembly language program that asks the user for 10 integers one at a time and stores them in memory
How your organization would benefit from the given process : Looking at your organization, or one of your choice, what are some practices in place that aim for diversity and employee retention?
Lsat test scores are normally distributed with a mean : LSAT test scores are normally distributed with a mean of 159 and a standard deviation of 6. What score would place you in the top 2% of test-takers?
How article proves or refutes the interrelational processes : Select a contemporary article that you perceive as demonstrating positive interdependence and knowledge sharing. Using the course textbook.
Anova testing and the hypothesis testing : What is the difference between the ANOVA testing and the hypothesis testing that is done for correlation coefficients?

Reviews

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