1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +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
+9 -5
View File
@@ -323,8 +323,10 @@ template<Model model> class ConcreteMachine:
case PartialMachineCycle::Read:
*cycle.value = read_pointers_[address >> 14][address];
if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
if constexpr (model >= Model::Plus2a) {
if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
}
}
break;
@@ -336,9 +338,11 @@ template<Model model> class ConcreteMachine:
write_pointers_[address >> 14][address] = *cycle.value;
// Fill the floating bus buffer if this write is within the contended area.
if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
if constexpr (model >= Model::Plus2a) {
// Fill the floating bus buffer if this write is within the contended area.
if(is_contended_[address >> 14]) {
video_->set_last_contended_area_access(*cycle.value);
}
}
break;