disasm/sim: changed interface, added readline to sim
[calu.git] / 3b_sim / ccpu.cpp
index 3fee8752cf020539e12e78d511771c8ff6f9fc73..00b84f6e6f6c24cfaa5b82ec53dc64c8a104271e 100644 (file)
@@ -18,8 +18,13 @@ void CCpu::tick()
                throw string("Out of Instructions!");
        }
        if(this->conditionMet(instr->getCondition())) {
+               cout << "Executing: " << instr->toString() << endl;
                instr->execInstr();
        }
+       else {
+               cout << "Didn't Execute " << instr->toString() << "; condition wasn't met" << endl;
+       }
+
 }
 
 bool CCpu::conditionMet(short cond)