From decbf9da812074ea5f4d4a80a523d7cddfc394a0 Mon Sep 17 00:00:00 2001 From: Arthur Blot Date: Thu, 3 Jan 2013 17:01:12 +0100 Subject: [PATCH] Fixed interpreter --- Core/MIPS/MIPSInt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index 7777d71c5a..c3bcfe4ab9 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -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; }