diff --git a/Machines/ZX8081/ZX8081.cpp b/Machines/ZX8081/ZX8081.cpp index 680b78817..26a0dcb89 100644 --- a/Machines/ZX8081/ZX8081.cpp +++ b/Machines/ZX8081/ZX8081.cpp @@ -64,11 +64,8 @@ int Machine::perform_machine_cycle(const CPU::Z80::MachineCycle &cycle) { set_vsync(false); line_counter_ = 0; - switch(address & 7) { - default: break; - case 0x5: nmi_is_enabled_ = false; break; - case 0x6: nmi_is_enabled_ = is_zx81_; break; - } + if(!(address & 2)) nmi_is_enabled_ = false; + if(!(address & 1)) nmi_is_enabled_ = is_zx81_; break; case CPU::Z80::BusOperation::Input: {