mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-28 09:29:07 +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:
parent
30e93979d2
commit
4509c3ce34
@ -77,11 +77,9 @@ int Machine::perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
|
|||||||
case CPU::Z80::PartialMachineCycle::Output:
|
case CPU::Z80::PartialMachineCycle::Output:
|
||||||
if(!(address & 2)) nmi_is_enabled_ = false;
|
if(!(address & 2)) nmi_is_enabled_ = false;
|
||||||
if(!(address & 1)) nmi_is_enabled_ = is_zx81_;
|
if(!(address & 1)) nmi_is_enabled_ = is_zx81_;
|
||||||
if((address&3) == 3) {
|
if((address&3) == 3) line_counter_ = 0;
|
||||||
if(!nmi_is_enabled_) {
|
if(!nmi_is_enabled_) {
|
||||||
set_vsync(false);
|
set_vsync(false);
|
||||||
line_counter_ = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user