Assembly:

MOVZ rd, rs, rt

nanoMIPS

Move if Zero

Purpose:

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

Availability:

nanoMIPS

Format:

001000

rt

rs

rd

0

1000010

000

6

5

5

5

1

7

3

Operation:

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

Exceptions:

None.