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)