Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I wanted to know the correct answers to the following questions. Thanks in advan

ID: 3732607 • Letter: I

Question

I wanted to know the correct answers to the following questions. Thanks in advance!



3. (1890) Th label next). Please answer the following questions (1) What are the values of registers Sa0 and Sto just before running the loop? e following MIPS Assembly program contains a loop construc to (from label loop data num: word 24 initA: word -20 30-40 50 10-60 blezl unitX: word ? eque text (2) What are the values of registers Sa0, St0, and Stl after the first iteration of the loop? globl mairn main: move $a0, $o tad loop: blez St0, done och to (3) What are the values of registers Sa0, Sto, and Stl after the second iteration of the loop? bltz Stl, next value is egghve ba next: b oop done: sw Sa0, unitX(SO) avolu li syscall (4) What are the values of registers Sa0, St0, and Sti after the third iteration of the loop? aee n (6) How many iterations of the loop? What is the value at memory location unitX after the program finishes? 4(12%) Translate the following ARC assembly instruction into ARC machine instrction. (1) orcc %rs, 254, %r2 rd rs simm13 rs2 3130 29 28 2726 25/24 2322 21 20 19 1 8 1716 1514 1312111009 08 070605 0403020100/-- (2) addcc %r2, %r3, %r6 rd simm 13 I rs2 29 28 27 26 2524 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 010 01 10 loooo lboolo | Dooooooooo. //

Explanation / Answer

1)
$a0 = 0
$t0 = 24


2)
$a0 = 0
$t0 = 20
$t1 = -60

3)

$a0 = 10
$t0 = 16
$t1 = 10

3)

$a0 = 60
$t0 = 12
$t1 = 50

4)

$a0 = 60
$t0 = 8
$t1 = -40


5)

$a0 = 90
$t0 = 0
$t1 = -20

6)
6 times iteration takes place.
memory location unitX contains value 90

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote