let's suppose i have 16bit in $t0 and i need to change the 6 bit and 7 bit to 0 and 1 with preserving the other bits. So the bit 6 will have the value 0 and the bit 7 will have the value 0.
I know i can do that by using the logic instructions andi and ori.
Andi instruction can clear a bit and ori can set a value to a bit.
Let's see the code:
andi $t0,$t0,0x...
ori $t0,$t0,0x...
What hex should i put for replacing the bits? Thanks!