Assembly:

SWX rd, rs(rt)

nanoMIPS, not available in NMS

Store Word indeXed

Purpose:

Store Word indeXed. Store word from register $rt to memory address $rt + $rs (registerplus register).

Availability:

nanoMIPS, not available in NMS

Format:

001000

rt

rs

rd

1001

0

000

111

6

5

5

5

4

1

3

3

Operation:

if C0.Config5.NMS == 1:
    raise exception('RI')
va = effective_address(GPR[rs], 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.