Assembly:

EXT rt, rs, pos, size

nanoMIPS, not available in NMS

Extract

Purpose:

Extract. Extract a bit field of size size at position pos from register $rs and store it rightjustified into register $rt.

Availability:

nanoMIPS, not available in NMS

Format:

100000

rt

rs

1111

0

msbd

0

lsb

6

5

5

4

1

5

1

5

Operation:

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)

Exceptions:

Reserved Instruction on NMS cores.