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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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