What the code below does? Consider the following code used to implement a new instruction: foo $t3,$t1,$t2: mask : . word 0xFFFFF83F start : la $t0 , mask lw $t0 , 0 ( $ t 0 ) la $t3 , s h f t r lw...



What the code below does?


Consider the following code used to implement a new instruction: foo $t3,$t1,$t2:




mask : . word 0xFFFFF83F
start : la $t0 , mask
lw $t0 , 0 ( $ t 0 )
la $t3 , s h f t r
lw $t3 , 0 ( $ t 3 )
and $t3 , $t3 , $ t 0
andi $t2 , $t2 , 0 x 0 0 1 f
sll $t2 , $t2 , 6
or $t3 , $t3 , $ t 2
la $t5 , s h f t r
sw $t3 , 0 ( $ t 5 )


shftr: sll $t3 , $t1 , 0


What does foo does?



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here