projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disasm/sim: changed interface, added readline to sim
[calu.git]
/
3b_sim
/
ccpu.cpp
diff --git
a/3b_sim/ccpu.cpp
b/3b_sim/ccpu.cpp
index 3fee8752cf020539e12e78d511771c8ff6f9fc73..00b84f6e6f6c24cfaa5b82ec53dc64c8a104271e 100644
(file)
--- a/
3b_sim/ccpu.cpp
+++ b/
3b_sim/ccpu.cpp
@@
-18,8
+18,13
@@
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;
instr->execInstr();
}
instr->execInstr();
}
+ else {
+ cout << "Didn't Execute " << instr->toString() << "; condition wasn't met" << endl;
+ }
+
}
bool CCpu::conditionMet(short cond)
}
bool CCpu::conditionMet(short cond)