Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following MIPS assembly codes .data a: .word -10 b: .word 8 e: .byte -10 .text lw $s0,a lw $s1,b lw $s2,e lb $s3,e

Consider the following MIPS assembly codes .data

a: .word -10

b: .word 8

e: .byte -10

.text

lw $s0,a

lw $s1,b

lw $s2,e

lb $s3,e

add $t1,$s2,$s1

add $t2,$s3,$s1 a)Observe that after executing the program $s2 has 0x000000f6 and $s3 has 0xfffffff6. Explain Why? b)Observe that we are performing the same mathematical operation, (-10+8), and storing the results in $t1 and $t2, respectively. Check which one has the correct result. Explain why?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions