1 #include "../Iinstr.hpp"
3 class Cmovt : public Iinstr {
10 std::string toString();
15 * Name: create_instruction
16 * Purpose: if compiled as shared library, this functions creates the
19 * Returns: pointer to instruction object
21 extern "C" Iinstr* create_instruction() {
25 Iinstr* Cmovt::getNew() {
30 * Name: destroy_instruction
31 * Purpose: if compiled as shared library, this functions destoys the
34 * Parameter: IInstruction - the instruction object to delete
36 extern "C" void destroy_instruction(Iinstr* p) {
40 Cmovt::Cmovt() : m_type(0)
46 void Cmovt::evalInstr()
48 this->m_type = argbits[18];
57 m_rd = this->getRegister(argbits);
60 void Cmovt::execInstr()
62 //cout << "should exec " << this->toString() << endl;
63 CDat val = this->m_cpu->getRegister(this->m_rd);
65 this->m_cpu->setFlags(val);
68 this->m_cpu->setStack(val);
72 std::string Cmovt::toString()
75 op << this->getName();