EXT rt, rs, pos, size |
nanoMIPS, not available in NMS |
Extract |
Extract. Extract a bit field of size size at position pos from register $rs and store it rightjustified into register $rt.
nanoMIPS, not available in NMS
100000 |
rt |
rs |
1111 |
0 |
msbd |
0 |
lsb |
6 |
5 |
5 |
4 |
1 |
5 |
1 |
5 |
if C0.Config5.NMS == 1: raise exception('RI') pos = lsb size = msbd + 1 if pos + size > 32: raise UNPREDICTABLE() result = zero_extend(GPR[rs] >> pos, from_nbits=size) GPR[rt] = sign_extend(result, from_nbits=32)
Reserved Instruction on NMS cores.