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

2. (3 points)Pseudoinstructions give MIPS a richer set of assemblylanguage instr

ID: 3613510 • Letter: 2

Question

2. (3 points)Pseudoinstructions give MIPS a richer set of assemblylanguage instructions
than those implemented by the hardware. The assembler isresponsible for translating the
pseudoinstructions into legal assembly instruction(s). The onlycost is reserving one
register, $at, for use by the assembler. For each of thepseudoinstructions shown below,
give the minimal sequence of actual MIPS instructions to accomplishthe same thing. In
the table, big refers to a specific number that requires 32 bits torepresent and small to
a specific number that can be represented in 16 bits. (Include youranswers to this
question as comments in the code submitted for Problem 1.)
move $t5, $t3 #$t5 = $t3
clear $t5 #$t5 = 0
beq $t5, small, L#if ($t5=small) go to L
lw $t5, big($t3)#$t5=Memory[$t3+big]

Explanation / Answer

please rate-thanks Hope this is what your looking for move $t5, $t3 #$t5 = $t3 add $t5,$zero,$t3 clear $t5 #$t5 = 0 add $t5,$zeo,$zero beq $t5, small, L#if ($t5=small) go to L la $t4,small lhu $t6,0($t4) beq $t5,$t6,L lw $t5, big($t3)#$t5=Memory[$t3+big] la $t2, big add $t2,$t3,$t2 lw $t5,0(t2)

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