projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sim] color up your simulator
[calu.git]
/
3b_sim
/
ccpu.cpp
diff --git
a/3b_sim/ccpu.cpp
b/3b_sim/ccpu.cpp
index 6bfb65481fd61162ddcb9afd2ec3a9f14f102de1..873f1b7af8160baf9907fe600981e3226f24c0cd 100644
(file)
--- a/
3b_sim/ccpu.cpp
+++ b/
3b_sim/ccpu.cpp
@@
-18,12
+18,12
@@
void CCpu::tick()
throw string("Out of Instructions!");
}
if(this->conditionMet(instr->getCondition())) {
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 {
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();
}
this->incPerf();
}