Write the values of the words stored at the following memory

Assignment Help Computer Engineering
Reference no: EM132188677

I am working this problem and I do not know how to solve it. Can you please help me approach it.

Answer the following questions with respect to the MIPS program shown below. Assume that the data segment starts at 0x10010000 and that the text segment starts at 0x00400000.

.data
label: .word 24, 28
.byte 64, 32
.asciiz "Example Program"
.text
main: jal push
jal pop
li $v0, 10
syscall
pop: lw $fp, 0($sp)
lw $ra, 4($sp)
addi $sp, $sp, 32
ret1: jr $ra
push: addi $sp, $sp, -32
sw $fp, 0($sp)
sw $ra, 4($sp)
ret2: jr $ra

a) Write the values of the words stored at the following memory locations. Provide your answer in hexadecimal notation.

Word Address Value
0x10010008
0x0040000c
0x00400000

b) Consider the process of assembly of the above program,

i) What would the symbol table in the output file contain?

ii) What relocation information would be recorded if any?

c) What are the values of the following labels?
ret1:
push:

d) Assume that the procedure push and pop were assembled in a distinct file and statically linked with the main program. Further assume that the procedures (starting with the instruction labeled pop) are placed in the memory starting at location 0x00400040. Provide the encoding of the jal pop instruction.

Reference no: EM132188677

Questions Cloud

What type of content may be included in your website : Describe your target audience by age, gender, socioeconomic characteristics, etc. What opportunity or issue is your website addressing?
Write the identity for the opt value : Give a dynamic programming for determining the most happiness you can generate for your clients by splitting your m hours among the n projects.
What software works with this : I am working on my midterm and we had to exchange images with texts hidden in them. I received a bmp.png file.
What baseline data do you need for this : There is a 20% chance that he will find a computer which has an active worm; in this case, nothing happens (whether the worm is active for one or two days).
Write the values of the words stored at the following memory : Write the values of the words stored at the following memory locations. Provide your answer in hexadecimal notation.
Explain the purpose of a tableadapter object : When working with VB application and a database you often will need to use a TableAdapter.
Display the total price of the hotel stay : You work for a local hotel chain and have been tasked with coding a program that calculates the cost of a user's hotel stay depending on room choices.
What factors would influence you : You work as one of five senior networking engineers in a large insurance company with 500 small offices located across the United States.
Create a class with instance methods withdraw : Each Class should have a unique account number and a current balance (use a static variable to store lastAccountNumber).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a class called employee

Create a class called Employee. Constructor that accepts 5 parameters (for each of the attributes)

  Explain the advantages of the mib module

Now create a MIB Module for your company. The objective is to find the inventory of any specific product while sitting in your office.

  Prompt the user for two services from the menu

Prompt the user for two services from the menu. Output an invoice for the services selected. Output the cost for each service and the total cost.

  Create an app inventor app that converts temperatures

Create an App Inventor app that converts temperatures from degrees Fahrenheit to degrees Celsius. Ask users for the temperature in degrees Fahrenheit, and use the following formula for the conversion: C = 5/9(F - 32).

  Moidifying the depth first search

Describe how to alter the depth-first search so that every vertex v is allocated an integer label cc[v] between 1 and k.

  Difference in a single-cell and a multiple-cell wireless lan

Can someone help with the following questions I have done some research on the internet and found different meanings so I am looking for something different from the internet posting. I know what each of the following devices are however I am look..

  Explore and visualize features of the game

Explore and visualize features. With access to players and teams attributes, team formations and in-game events you should be able to produce some interesting insights :)

  How might the file be compromised in the given case

UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode.

  Briefly describe your group project reflections

Briefly describe your group project reflections (some of the challenges encountered) in designing your e-business website

  List some applications for large-screen displays

Explain how viflual-reality systems can be used in design applications. List some applications for large-screen displays.

  Shows how the it and biblical concepts are related

Create a document which shows how the IT and Biblical concepts are related. (What are the similarities between these ideas?)

  Write a program to determine and output to the screen

Write a program to determine, and output to the screen, the class of an earthquake, given its magnitude.

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