sim: added shift
[calu.git] / 3b_sim / ccpu.cpp
index 4974fcc64d78dfbf4fc7b30f7bc9d1eef1748e90..fb480f48fec4843aa2f9121f199d9a27023c0f10 100644 (file)
@@ -124,6 +124,16 @@ void CCpu::updateFlags(CDatd val, CDat a, CDat b) {
        this->m_O = (this->m_S != v);
 }
 
+void CCpu::updateCarry(bool c)
+{
+       this->m_C = c;
+}
+
+bool CCpu::getCarry()
+{
+       return this->m_C;
+}
+
 void CCpu::updateFlags(bool z, bool o, bool c, bool s)
 {
        this->m_Z = z;