Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (60 points) For each part of the following question, assume the following initial state. Note that your answers to each part should use the
2. (60 points) For each part of the following question, assume the following initial state. Note that your answers to each part should use the values belowyour answer to part (a), for example, should not affect your answer to part (b). $t0 = 0x00000003, $t1 = 0x00000010, $t2 = 0xABACADBA mem [ OxABACADBA] = 0xFABBBEEE mem [0xFABBBEEF] = 0x87654321 1h For each sequence of instructions below, list all changed registers or memory locations and their new values. When listing memory values, list the entire word for example, if a byte is written to 0x00273000, show the values at addresses 0x00273000-0x00273003. a. addi $t4, $t0, -3. d. lui $50, OXABAC sub $t4, $t4, $t1 ori $50, $s0, OxADB add $t5, $t4, $t0 $s2, 2 ($80) lb $s3, 3($80) b. or $t5, $t0, $t1 and $54, $s2, $s3 ori $t6, $t5, 0x1110 $t7, $t6, 3 sra $53, 0($50) e. slt $80, $t1, $t0 c. lw $t4, 0($t2) $50, $zero, L addi $t5, $t4, 1 add $t0,$t0, $t1 SW $t2, 0($t5) L: add $t3, $t0,$t0 Note: Indicate if the branch is taken. SW beg 2. (60 points) For each part of the following question, assume the following initial state. Note that your answers to each part should use the values belowyour answer to part (a), for example, should not affect your answer to part (b). $t0 = 0x00000003, $t1 = 0x00000010, $t2 = 0xABACADBA mem [ OxABACADBA] = 0xFABBBEEE mem [0xFABBBEEF] = 0x87654321 1h For each sequence of instructions below, list all changed registers or memory locations and their new values. When listing memory values, list the entire word for example, if a byte is written to 0x00273000, show the values at addresses 0x00273000-0x00273003. a. addi $t4, $t0, -3. d. lui $50, OXABAC sub $t4, $t4, $t1 ori $50, $s0, OxADB add $t5, $t4, $t0 $s2, 2 ($80) lb $s3, 3($80) b. or $t5, $t0, $t1 and $54, $s2, $s3 ori $t6, $t5, 0x1110 $t7, $t6, 3 sra $53, 0($50) e. slt $80, $t1, $t0 c. lw $t4, 0($t2) $50, $zero, L addi $t5, $t4, 1 add $t0,$t0, $t1 SW $t2, 0($t5) L: add $t3, $t0,$t0 Note: Indicate if the branch is taken. SW beg
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started