Consider the following code:lbu $t0, 0($t1)sw $t0, 0($t2) | StudySoup

Textbook Solutions for Computer Organization and Design

Chapter 2 Problem 2.38

Question

Consider the following code:

                                        lbu    $t0,   0( $t1 )

                                        sw    $t0,    0( $t2 )

Assume that the register $t1 contains the address 0x1000 0000 and the register $t2 contains the address 0x1000 0010. Note the MIPS architecture utilizes big-endian addressing. Assume that the data (in hexadecimal) at address 0x1000 0000 is: 0x11223344. What value is stored at the address pointed to by register $t2?

Solution

Step 1 of 3)

The first step in solving 2 problem number 60 trying to solve the problem we have to refer to the textbook question: Consider the following code:                                        lbu    $t0,   0( $t1 )                                        sw    $t0,    0( $t2 )Assume that the register $t1 contains the address 0x1000 0000 and the register $t2 contains the address 0x1000 0010. Note the MIPS architecture utilizes big-endian addressing. Assume that the data (in hexadecimal) at address 0x1000 0000 is: 0x11223344. What value is stored at the address pointed to by register $t2?
From the textbook chapter Instructions: Language of the Computer you will find a few key concepts needed to solve this.

Step 2 of 7)

Visible to paid subscribers only

Step 3 of 7)

Visible to paid subscribers only

Subscribe to view the
full solution

Title Computer Organization and Design 5 
Author David A. Patterson
ISBN 9780124077263

Consider the following code:lbu $t0, 0($t1)sw $t0, 0($t2)

Chapter 2 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back