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 below-your answer to part (a), for example, should not affect your answer to part (b) t0 -0x0000000B, $tl 0xFFFFFFFF, $t2OxABABABAC mem [ 0xABABABAC ] OxDEADBEEE mem [0xDEADBEEF]0x12345678 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 $s0, 0xABAB $s0, $s0, 0xABAC $s2, 2 ($s0) $s3, 3 ($s0) $s4, $s2, $s3 $s3, 0 ($s0) sub add $t4, $t4, $tl $t5, $t4, $tO ori lh lb and SW or ori sra $t5, $t0, $t1 $t6, $t5, 0x1110 t7, $t6, 3 e. slt beq add 1: add $s0, $zero, L t0, $t0, $t1 $t3, $t0, $t0 $t4, 0 ($t2) addi $t5, $t4, 1 SW $t5, 4 ($t2) Note: Indicate if the branch is taken. 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 below-your answer to part (a), for example, should not affect your answer to part (b) t0 -0x0000000B, $tl 0xFFFFFFFF, $t2OxABABABAC mem [ 0xABABABAC ] OxDEADBEEE mem [0xDEADBEEF]0x12345678 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 $s0, 0xABAB $s0, $s0, 0xABAC $s2, 2 ($s0) $s3, 3 ($s0) $s4, $s2, $s3 $s3, 0 ($s0) sub add $t4, $t4, $tl $t5, $t4, $tO ori lh lb and SW or ori sra $t5, $t0, $t1 $t6, $t5, 0x1110 t7, $t6, 3 e. slt beq add 1: add $s0, $zero, L t0, $t0, $t1 $t3, $t0, $t0 $t4, 0 ($t2) addi $t5, $t4, 1 SW $t5, 4 ($t2) Note: Indicate if the branch is taken
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