return psw;
}
+void CCpu::setFlags(CDat psw) {
+ this->m_Z = ((psw & 0x1) != 0);
+ this->m_O = ((psw & 0x2) != 0);
+ this->m_C = ((psw & 0x4) != 0);
+ this->m_S = ((psw & 0x8) != 0);
+}
+
void CCpu::updateFlags(CDat val) {
this->m_Z = (val == 0);
this->m_S = ((val >> (BIT_LEN-1)) & 0x1);