sim: new instructions, bugfix in others
[calu.git] / 3c_disasm / instr / add.cpp
index 413193236479a821769d65d8f5178068e50722f1..b5cd4f9fb6d90662941c78b3d956a2ff7f81cd09 100644 (file)
@@ -63,7 +63,9 @@ void Cadd::execInstr()
        CDat rb = this->m_cpu->getRegister(m_rb);
        CDatd val = ra + rb;
        this->m_cpu->setRegister(m_rd, val);
-       this->m_cpu->updateFlags(val, ra, rb);
+       if(!this->m_d) {
+               this->m_cpu->updateFlags(val, ra, rb);
+       }
 }
 
 std::string Cadd::toString()