1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

By observation, it appears that disabling vsync occurs on any port output whatsoever, as long as NMI isn't blocking it.

This commit is contained in:
Thomas Harte 2017-07-08 21:01:52 -04:00
parent 30e93979d2
commit 4509c3ce34

View File

@ -77,11 +77,9 @@ int Machine::perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
case CPU::Z80::PartialMachineCycle::Output:
if(!(address & 2)) nmi_is_enabled_ = false;
if(!(address & 1)) nmi_is_enabled_ = is_zx81_;
if((address&3) == 3) {
if(!nmi_is_enabled_) {
set_vsync(false);
line_counter_ = 0;
}
if((address&3) == 3) line_counter_ = 0;
if(!nmi_is_enabled_) {
set_vsync(false);
}
break;