Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 parts] Given: For the following sequence of MIPS instructions: li $t0,4 li $t1,7 li $t2,3 sub $t3, $t1,$t2 beg $t0,$t3, next add $50, $zero,

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
3 parts] Given: For the following sequence of MIPS instructions: li $t0,4 li $t1,7 li $t2,3 sub $t3, $t1,$t2 beg $t0,$t3, next add $50, $zero, $t3 i end next: add $50,$t1,$t2 end: Part 1: identify all registers used and their values after the code is executed. The first column of the table is filled in as an example. a) to 4.t1-7.42-3.3.4.0-4 b) 04.117.2-3.134.50-4 c) t0w4.t1.7.12 3.13-4,50-10 d) 0-4.t1-7.42-3.t3=-4.0-10 e) to 4.t1-712-3.13-4 f) t0-4.11-7,2-3,13-4 g)t0-4.t1-7.t2=3,13-10 h) 0-4.t1-7.t2-3.13=0 Answer 1: (Note: Indicate ONLY the LETTER corresponding to your choice) Part 2: What is the value of $12 after executing the following instruction? lw $12, 0($3) Register file Data Memory $3 Ox10010000 0x10010000 Ox10010001 0x10010002 0x10010003 Oxal Oxb2 Ox c3 Oxd4 $12 a) Ox10010000 b) Ox10010001 c) Ox10010002 d) Ox10010003 e) Ox00000001 f) Oxa 1000000 g) Oxd4c3b2a1 h) Oxa1b2c3d4 Answer 2: (Note: Indicate ONLY the LETTER corresponding to your choice) Part 3: Fill out each memory cell with right value after executing the instruction. sw $12, 0($3) Register file Data Memory $3 Ox10010000 Ox10010000 Ox10010001 Ox10010002 Ox10010003 $12 OxAABBCCDD a) OxAA Ox10010000 Ox10010001 Ox10010002 Ox10010003 b) Ox10010000 Ox10010001 0x10010002 Ox10010003 OxAA OXAA OXAA OXAA c) Ox10010000 Ox10010001 Ox10010002 Ox10010003 OXAA OxBB OxCC OxDD d) Ox10010000 Ox10010001 Ox10010002 Ox10010003 OxDD OxCc OxBB OxAA d) Ox10010000 Ox10010001 Ox10010002 Ox10010003 OxDD OxCC OxBB OXAA e) OxDD Ox10010000 Ox10010001 Ox10010002 Ox10010003 f) OxDD 0x10010000 Ox10010001 Ox10010002 0x10010003 g) Ox10010000 Ox10010001 Ox10010002 Ox10010003 OxDD OxDD OxDD OxDD Answer 3: (Note: Indicate ONLY the LETTER corresponding to your choice)

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_2

Step: 3

blur-text-image_3

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

Define capital structure.

Answered: 1 week ago