1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-01 11:49:58 +00:00

Don't post contended accesses other than on the +2a/+3.

Those machines have an actual latch for this stuff, the others don't.
This commit is contained in:
Thomas Harte 2021-04-15 21:13:06 -04:00
parent b2cf121410
commit 349b9ce502

View File

@ -323,8 +323,10 @@ template<Model model> class ConcreteMachine:
case PartialMachineCycle::Read: case PartialMachineCycle::Read:
*cycle.value = read_pointers_[address >> 14][address]; *cycle.value = read_pointers_[address >> 14][address];
if(is_contended_[address >> 14]) { if constexpr (model >= Model::Plus2a) {
video_->set_last_contended_area_access(*cycle.value); if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
}
} }
break; break;
@ -336,9 +338,11 @@ template<Model model> class ConcreteMachine:
write_pointers_[address >> 14][address] = *cycle.value; write_pointers_[address >> 14][address] = *cycle.value;
// Fill the floating bus buffer if this write is within the contended area. if constexpr (model >= Model::Plus2a) {
if(is_contended_[address >> 14]) { // Fill the floating bus buffer if this write is within the contended area.
video_->set_last_contended_area_access(*cycle.value); if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
}
} }
break; break;