Chapter 2: 20 (page 169)
Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register \(t0 and uses the value of this field to replace bits 31 down to 26 in register \)t1 without changing the other 26 bits of register $t1.
Short Answer
MIPS instructions that extract bits 16 down to 11 from $t0 and uses the value to replace bits 31 down to 26 in $t1 is as follows:
srl $t0,$t0,11
sll $t0,$t0,26
ori $t2,$0,0x03ff
sll $t2,$t2,16
ori $t2,$t2,0xffff
and $t1,$t1,$t2
or $t1,$t1,$t0