Assembly:

MOVN rd, rs, rt

nanoMIPS

Move if Not zero

Purpose:

Move if Not zero. Copy value of register $rs to register $rd if register $rt is not zero.

Availability:

nanoMIPS

Format:

001000

rt

rs

rd

1

1000010

000

6

5

5

5

1

7

3

Operation:

GPR[rd] = GPR[rs] if GPR[rt] != 0 else GPR[rd]

Exceptions:

None.