[sim] color up your simulator
[calu.git] / 3b_sim / ccpu.cpp
index 6bfb65481fd61162ddcb9afd2ec3a9f14f102de1..873f1b7af8160baf9907fe600981e3226f24c0cd 100644 (file)
@@ -18,12 +18,12 @@ void CCpu::tick()
                throw string("Out of Instructions!");
        }
        if(this->conditionMet(instr->getCondition())) {
-               cout << "Executing: " << instr->toString() << endl;
+               cout << color(green,black) << "Executing: " << color(white,black) << instr->toString() << endl;
                instr->execInstr();
                this->incPerfBy(instr->getClockCount());
        }
        else {
-               cout << "Didn't Execute " << instr->toString() << "; condition wasn't met" << endl;
+               cout << color(red,black) << "Didn't Execute " << color(white,black) << instr->toString() << "; condition wasn't met" << endl;
                this->incPerf();
        }