cleaner implementation of cpu::getBitPSW

This commit is contained in:
folkert van heusden 2022-04-12 22:10:45 +02:00
parent 439c34abab
commit b8c7d78ed6

View file

@ -157,7 +157,7 @@ void cpu::addRegister(const int nr, const bool prev_mode, const uint16_t value)
bool cpu::getBitPSW(const int bit) const
{
return !!(psw & (1 << bit));
return (psw >> bit) & 1;
}
bool cpu::getPSW_c() const