diff --git a/Processors/Z80/Z80.hpp b/Processors/Z80/Z80.hpp index e6aadd979..edabe1a64 100644 --- a/Processors/Z80/Z80.hpp +++ b/Processors/Z80/Z80.hpp @@ -1680,7 +1680,7 @@ template class Processor: public MicroOpScheduler { case Register::IFF1: iff1_ = !!value; break; case Register::IFF2: iff2_ = !!value; break; - case Register::IM: interrupt_mode_ = value % 2; break; + case Register::IM: interrupt_mode_ = value % 3; break; default: break; }