1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 05:29:23 +00:00

Merge pull request #1300 from TomHarte/ElectronPaging

Don't page if acknowleding interrupts.
This commit is contained in:
Thomas Harte 2024-01-02 22:34:11 -05:00 committed by GitHub
commit 439535e44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,19 +288,19 @@ template <bool has_scsi_bus> class ConcreteMachine:
evaluate_interrupts();
// TODO: NMI
}
} else {
// Latch the paged ROM in case external hardware is being emulated.
active_rom_ = *value & 0xf;
// latch the paged ROM in case external hardware is being emulated
active_rom_ = *value & 0xf;
// apply the ULA's test
if(*value & 0x08) {
if(*value & 0x04) {
keyboard_is_active_ = false;
basic_is_active_ = false;
} else {
keyboard_is_active_ = !(*value & 0x02);
basic_is_active_ = !keyboard_is_active_;
// apply the ULA's test
if(*value & 0x08) {
if(*value & 0x04) {
keyboard_is_active_ = false;
basic_is_active_ = false;
} else {
keyboard_is_active_ = !(*value & 0x02);
basic_is_active_ = !keyboard_is_active_;
}
}
}
}