Fixed interpreter

This commit is contained in:
Arthur Blot committed 2013-01-03 17:01:12 +01:00
1 parent be91ad2f9c
commit decbf9da81
1 file changed
+4 -1
+4 -1
View File
@@ -301,8 +301,10 @@ namespace MIPSInt
int rt = _RT;
int rs = _RS;
if (rt == 0) //destination register is zero register
if (rt == 0) { //destination register is zero register
PC += 4;
return; //nop
}
switch (op>>26)
{
@@ -400,6 +402,7 @@ namespace MIPSInt
if (((op >> 29) & 1) == 0 && rt == 0) {
// Don't load anything into $zr
PC += 4;
return;
}