instructions04 - B What are the values of the following...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Answer the following questions with respect to the MIPS program shown below and the GT MIPS datapath. Assume that the data segment starts at 0x10010000 and that the text segment starts at 0x00400000. Assume that the instructions jal and done are encoded in one word and that the opcode values for jal , bne , and syscall instructions are 3, 5, and 12 respec- tively. A. Write the values of the words stored at the following memory locations. Provide your answer in hexadecimal notation.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: B. What are the values of the following labels? .data label: .word 24, 28 .byte 64, 32 .asciiz “Example Program” .text main: jal push # procedure call instruction jal pop # procedure call instruction addi $v0, $0, 10 syscall # pop: lw $fp, 0($sp) lw $ra, 4($sp) addiu $sp, $sp, 32 ret1: jr $ra push: subi $sp, $sp, 32 sw $fp, 0($sp) sw $ra, 4($sp) ret2: jr $ra Word Address Value _0x10010008________ _0x00400008________ ret1 _______________ push _______________...
View Full Document

This note was uploaded on 10/26/2011 for the course ECE 2030 taught by Professor Wolf during the Spring '07 term at Georgia Tech.

Ask a homework question - tutors are online