void evalInstr();
void execInstr();
std::string toString();
+ Iinstr* getNew();
};
/**
return new Cldi();
}
+Iinstr* Cldi::getNew()
+{
+ return new Cldi();
+}
/**
* Name: destroy_instruction
* Purpose: if compiled as shared library, this functions destoys the
void Cldi::execInstr()
{
cout << "should exec " << this->toString() << endl;
+ this->m_cpu->setRegister(this->m_rd, this->m_imm);
}
std::string Cldi::toString()