Assembly:

SWXS rd, rs(rt)

nanoMIPS, not available in NMS

Store Word indeXed Scaled

Purpose:

Store Word indeXed Scaled. Store word from register $rt to memory address

$rt + 4*$rs

(register plus scaled register).

Availability:

nanoMIPS, not available in NMS

Format:

001000

rt

rs

rd

1001

1

000

111

6

5

5

5

4

1

3

3

Operation:

if C0.Config5.NMS == 1:
    raise exception('RI')
va = effective_address(GPR[rs]<<2, GPR[rt], 'Store')
data = zero_extend(GPR[rd], from_nbits=32)
write_memory_at_va(data, va, nbytes=4)

Exceptions:

Address Error. Bus Error. Reserved Instruction on NMS cores. TLB Invalid. TLB Modified. TLB Refill. Watch.