Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

addi $8, $0, 0x1000r add $9, $8, $8 addi $10, $9, 24 (Spts) Show your work & reasoning for your answer here: L1 : sw

image text in transcribed

image text in transcribed

addi $8, $0, 0x1000r add $9, $8, $8 addi $10, $9, 24 (Spts) Show your work & reasoning for your answer here: L1 : sw $8, 4 ($9) addi $9, $9, 4 addi $8, $8,-1 slt $11, $9, $10 beq $11, $0, L2 j L1 L2: add $12, $0, $0 addi $13,$0, 2 L3: lw $14, 0x2008 ($12) and $14, $14, $13 beg $14, $0, L4 addi $12, $12, 4 j L3 4: lw $15, 0x2008 ($12) sw $15, 0x2000 ($0) L5: Q1 (5pts): When PC first reaches L2: Fill in the blanks in hex: Q2 (1Opts): When PC reaches L5: Fill in the blanks in hex: Mem[0x2000] - $15 = $14- $13 - $12 - $%8 - $10 = $%11 - Number of words written into memory (in decimal): (10pts) Show your work & reasoning for your answer here: ori $7, 0, 0x72 ori $8, $o, 0x83 and $9, $7, $8 addi $9, $9, -10 xor $11, $9, $9 # $11 = 0x loop: slt $10, $9, S0 add $11, $11, $10 sll $9, $9, 1 bne $9, $0, loop add $12, $11, $o # $12 (decimal) Q3 (6pts): Fill in the blanks in above box Q4 (4pts): If the instruction s1t is changed to sltu (set less than according to unsigned representation), what will be the final result for $12? addi $8, $0, 0x1000r add $9, $8, $8 addi $10, $9, 24 (Spts) Show your work & reasoning for your answer here: L1 : sw $8, 4 ($9) addi $9, $9, 4 addi $8, $8,-1 slt $11, $9, $10 beq $11, $0, L2 j L1 L2: add $12, $0, $0 addi $13,$0, 2 L3: lw $14, 0x2008 ($12) and $14, $14, $13 beg $14, $0, L4 addi $12, $12, 4 j L3 4: lw $15, 0x2008 ($12) sw $15, 0x2000 ($0) L5: Q1 (5pts): When PC first reaches L2: Fill in the blanks in hex: Q2 (1Opts): When PC reaches L5: Fill in the blanks in hex: Mem[0x2000] - $15 = $14- $13 - $12 - $%8 - $10 = $%11 - Number of words written into memory (in decimal): (10pts) Show your work & reasoning for your answer here: ori $7, 0, 0x72 ori $8, $o, 0x83 and $9, $7, $8 addi $9, $9, -10 xor $11, $9, $9 # $11 = 0x loop: slt $10, $9, S0 add $11, $11, $10 sll $9, $9, 1 bne $9, $0, loop add $12, $11, $o # $12 (decimal) Q3 (6pts): Fill in the blanks in above box Q4 (4pts): If the instruction s1t is changed to sltu (set less than according to unsigned representation), what will be the final result for $12

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

2. Identify conflict triggers in yourself and others

Answered: 1 week ago