ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 10 Weeks Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 20 May 2017 My Price 9.00

CSE/EEE230 Fall 2016

Could you please answer this question for me? Thanks!

 

CSE/EEE230 Assignment 1Due September 6, 5PM.This assignment is designed to introduce you to the MIPS assembly and the MARS simulator..a.Open the text editor and type in the following. Replace the string “Your name” with your actual name.Then save your work as assign1.asm# CSE/EEE230 Fall 2016.dataval1: .word 1val2: .word 2val3: .word 3name: .asciiz “Your name\n”.globl main.textmain:b.Add the MIPS assembly language instructions after the main for the following actions.Do not skip orchange the order of the steps.Note that the variables val1, val2, and val3 represent addresses orlocations in memory in the data segment.You may use other registers as needed.1.Set a base register ($t0) to the start of the data segment 0x100100002.Print your name on its own line using the correct syscall command.You will need to determinethe displacement from the beginning of the data segment to your name.3.Initialize the following registersa.Put the value 7 into register $s0b.Put the value 8 into register $s1c.Put the value -3 into register $s24.Store the values into memorya.Store the value in $s1 into the memory labeled “val1”b.Store the value in $s2 into the memory labeled “val2”5.Calculate and store into memory.Do not change the values of the registers in this process.a.Calculate the value of $s0 - $s1 + ($s2 – 5)b.Store this result in the memory labeled “val3”.6.Update the registers to the following values.Do not change the values in memorya.Change the value in $s1 to 10b.Change the value in $s2 to 57.Exchange or swap the values in val1 and val2.This will require several steps.8.Set the value in $s0 to –$s09.Calculate the value of $s0 + $s1 + $s2 and print the result.Do not change the values of $s0,$s1 and $s210. Stop the program by using a syscall with the command 10.Specifics:Use only the instructions covered to date plus the syscall command.You will need to calculate the addresses for val1, val2 and val3.Remember that the .data segmentstarts at 0x10010000.Do not use pseudo-instructions.This includes la and other pseudo instructions.Use only thecore instructions from the reference sheet.To prevent this, make sure that the “Permit extended(pseudo) instructions and format option” under Settings iscleared.Documentation:Comment the beginning of your programs with your name, class, and assignment number.Comment each step (above).Comment every instruction.

Attachments:

Answers

(11)
Status NEW Posted 20 May 2017 11:05 AM My Price 9.00

-----------

Not Rated(0)