MOD rd, rs, rt |
nanoMIPS |
Modulo |
Modulo. Compute signed division of register $rs by register $rt, and place the remainderin register $rd.
nanoMIPS
001000 |
rt |
rs |
rd |
x |
0101011 |
000 |
6 |
5 |
5 |
5 |
1 |
7 |
3 |
numerator = GPR[rs] denominator = GPR[rt] if denominator == 0: quotient, remainder = (UNKNOWN, UNKNOWN) else: quotient, remainder = divide_integers(numerator, denominator) GPR[rd] = sign_extend(remainder, from_nbits=32)
None.